blob: 5e9bb81d36cb3b83f6ac025cf9c8a1279bf14349 [file]
// Copyright 2020 The Chromium Authors. All Rights Reserved.
// Use of this source code is governed by the Apache v2.0 license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.1
// source: infra/appengine/rubber-stamper/tasks/taskspb/tasks.proto
package taskspb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// ChangeReviewTask describes a task to start reviewing a CL's metadata.
type ChangeReviewTask struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The Gerrit Host.
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// The change number.
Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
// Current revision of the change.
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
// The Gerrit Repo.
Repo string `protobuf:"bytes,4,opt,name=repo,proto3" json:"repo,omitempty"`
// Whether the change has Auto-Submit label.
AutoSubmit bool `protobuf:"varint,5,opt,name=auto_submit,json=autoSubmit,proto3" json:"auto_submit,omitempty"`
// The numeric Change-Id of the change that this change reverts.
RevertOf int64 `protobuf:"varint,6,opt,name=revert_of,json=revertOf,proto3" json:"revert_of,omitempty"`
// The numeric Change-Id of the change that this change was cherry-picked
// from.
CherryPickOfChange int64 `protobuf:"varint,7,opt,name=cherry_pick_of_change,json=cherryPickOfChange,proto3" json:"cherry_pick_of_change,omitempty"`
// The number of revisions.
RevisionsCount int64 `protobuf:"varint,8,opt,name=revisions_count,json=revisionsCount,proto3" json:"revisions_count,omitempty"`
// Timestamp of when the change was created.
Created *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created,proto3" json:"created,omitempty"`
}
func (x *ChangeReviewTask) Reset() {
*x = ChangeReviewTask{}
if protoimpl.UnsafeEnabled {
mi := &file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChangeReviewTask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChangeReviewTask) ProtoMessage() {}
func (x *ChangeReviewTask) ProtoReflect() protoreflect.Message {
mi := &file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChangeReviewTask.ProtoReflect.Descriptor instead.
func (*ChangeReviewTask) Descriptor() ([]byte, []int) {
return file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescGZIP(), []int{0}
}
func (x *ChangeReviewTask) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *ChangeReviewTask) GetNumber() int64 {
if x != nil {
return x.Number
}
return 0
}
func (x *ChangeReviewTask) GetRevision() string {
if x != nil {
return x.Revision
}
return ""
}
func (x *ChangeReviewTask) GetRepo() string {
if x != nil {
return x.Repo
}
return ""
}
func (x *ChangeReviewTask) GetAutoSubmit() bool {
if x != nil {
return x.AutoSubmit
}
return false
}
func (x *ChangeReviewTask) GetRevertOf() int64 {
if x != nil {
return x.RevertOf
}
return 0
}
func (x *ChangeReviewTask) GetCherryPickOfChange() int64 {
if x != nil {
return x.CherryPickOfChange
}
return 0
}
func (x *ChangeReviewTask) GetRevisionsCount() int64 {
if x != nil {
return x.RevisionsCount
}
return 0
}
func (x *ChangeReviewTask) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
var File_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto protoreflect.FileDescriptor
var file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDesc = []byte{
0x0a, 0x38, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e,
0x65, 0x2f, 0x72, 0x75, 0x62, 0x62, 0x65, 0x72, 0x2d, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x72,
0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, 0x62, 0x2f, 0x74,
0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x72, 0x75, 0x62, 0x62,
0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x72, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73,
0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x02, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65,
0x76, 0x69, 0x65, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75,
0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e,
0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x72, 0x65, 0x70, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x73, 0x75, 0x62,
0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x53,
0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x76, 0x65, 0x72, 0x74, 0x5f,
0x6f, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x72, 0x65, 0x76, 0x65, 0x72, 0x74,
0x4f, 0x66, 0x12, 0x31, 0x0a, 0x15, 0x63, 0x68, 0x65, 0x72, 0x72, 0x79, 0x5f, 0x70, 0x69, 0x63,
0x6b, 0x5f, 0x6f, 0x66, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
0x03, 0x52, 0x12, 0x63, 0x68, 0x65, 0x72, 0x72, 0x79, 0x50, 0x69, 0x63, 0x6b, 0x4f, 0x66, 0x43,
0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f,
0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e,
0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34,
0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x63, 0x72, 0x65,
0x61, 0x74, 0x65, 0x64, 0x42, 0x2e, 0x5a, 0x2c, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x61, 0x70,
0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x72, 0x75, 0x62, 0x62, 0x65, 0x72, 0x2d, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x65, 0x72, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x74, 0x61, 0x73,
0x6b, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescOnce sync.Once
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescData = file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDesc
)
func file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescGZIP() []byte {
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescOnce.Do(func() {
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescData)
})
return file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDescData
}
var file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_goTypes = []interface{}{
(*ChangeReviewTask)(nil), // 0: rubber_stamper.taskspb.ChangeReviewTask
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_depIdxs = []int32{
1, // 0: rubber_stamper.taskspb.ChangeReviewTask.created:type_name -> google.protobuf.Timestamp
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_init() }
func file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_init() {
if File_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ChangeReviewTask); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_goTypes,
DependencyIndexes: file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_depIdxs,
MessageInfos: file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_msgTypes,
}.Build()
File_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto = out.File
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_rawDesc = nil
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_goTypes = nil
file_infra_appengine_rubber_stamper_tasks_taskspb_tasks_proto_depIdxs = nil
}