blob: 222d22a1162ad4a61acdf646fd7769e357cda370 [file] [log] [blame]
// Copyright 2020 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.12.1
// source: go.chromium.org/luci/cv/api/migration/migration.proto
package migrationpb
import (
v1 "go.chromium.org/luci/cv/api/bigquery/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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)
)
type ReportRunsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Runs []*ReportedRun `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"`
}
func (x *ReportRunsRequest) Reset() {
*x = ReportRunsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportRunsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReportRunsRequest) ProtoMessage() {}
func (x *ReportRunsRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_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 ReportRunsRequest.ProtoReflect.Descriptor instead.
func (*ReportRunsRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescGZIP(), []int{0}
}
func (x *ReportRunsRequest) GetRuns() []*ReportedRun {
if x != nil {
return x.Runs
}
return nil
}
type ReportedRun struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Re-use BQ attempt for now.
Attempt *v1.Attempt `protobuf:"bytes,1,opt,name=attempt,proto3" json:"attempt,omitempty"`
}
func (x *ReportedRun) Reset() {
*x = ReportedRun{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportedRun) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReportedRun) ProtoMessage() {}
func (x *ReportedRun) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[1]
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 ReportedRun.ProtoReflect.Descriptor instead.
func (*ReportedRun) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescGZIP(), []int{1}
}
func (x *ReportedRun) GetAttempt() *v1.Attempt {
if x != nil {
return x.Attempt
}
return nil
}
type ReportFinishedRunRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Run *ReportedRun `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
}
func (x *ReportFinishedRunRequest) Reset() {
*x = ReportFinishedRunRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportFinishedRunRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReportFinishedRunRequest) ProtoMessage() {}
func (x *ReportFinishedRunRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[2]
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 ReportFinishedRunRequest.ProtoReflect.Descriptor instead.
func (*ReportFinishedRunRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescGZIP(), []int{2}
}
func (x *ReportFinishedRunRequest) GetRun() *ReportedRun {
if x != nil {
return x.Run
}
return nil
}
type ReportUsedNetrcRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
GerritHost string `protobuf:"bytes,1,opt,name=gerrit_host,json=gerritHost,proto3" json:"gerrit_host,omitempty"`
AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
}
func (x *ReportUsedNetrcRequest) Reset() {
*x = ReportUsedNetrcRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReportUsedNetrcRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReportUsedNetrcRequest) ProtoMessage() {}
func (x *ReportUsedNetrcRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[3]
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 ReportUsedNetrcRequest.ProtoReflect.Descriptor instead.
func (*ReportUsedNetrcRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescGZIP(), []int{3}
}
func (x *ReportUsedNetrcRequest) GetGerritHost() string {
if x != nil {
return x.GerritHost
}
return ""
}
func (x *ReportUsedNetrcRequest) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
var File_go_chromium_org_luci_cv_api_migration_migration_proto protoreflect.FileDescriptor
var file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDesc = []byte{
0x0a, 0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x69,
0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x35, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x69, 0x67,
0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,
0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x04, 0x72,
0x75, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x69, 0x67, 0x72,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x75,
0x6e, 0x52, 0x04, 0x72, 0x75, 0x6e, 0x73, 0x22, 0x3a, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x65, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70,
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
0x72, 0x79, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65,
0x6d, 0x70, 0x74, 0x22, 0x44, 0x0a, 0x18, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x69, 0x6e,
0x69, 0x73, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x28, 0x0a, 0x03, 0x72, 0x75, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d,
0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65,
0x64, 0x52, 0x75, 0x6e, 0x52, 0x03, 0x72, 0x75, 0x6e, 0x22, 0x5c, 0x0a, 0x16, 0x52, 0x65, 0x70,
0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x72, 0x63, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74, 0x5f, 0x68, 0x6f,
0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x65, 0x72, 0x72, 0x69, 0x74,
0x48, 0x6f, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74,
0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x65,
0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xef, 0x01, 0x0a, 0x09, 0x4d, 0x69, 0x67, 0x72,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0a, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52,
0x75, 0x6e, 0x73, 0x12, 0x1c, 0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x75, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x50, 0x0a, 0x11, 0x52, 0x65, 0x70,
0x6f, 0x72, 0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6e, 0x12, 0x23,
0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4c, 0x0a, 0x0f, 0x52,
0x65, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x72, 0x63, 0x12, 0x21,
0x2e, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x55, 0x73, 0x65, 0x64, 0x4e, 0x65, 0x74, 0x72, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63,
0x69, 0x2f, 0x63, 0x76, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x3b, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x70, 0x62, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescOnce sync.Once
file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescData = file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDesc
)
func file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescGZIP() []byte {
file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescOnce.Do(func() {
file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescData)
})
return file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDescData
}
var file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_go_chromium_org_luci_cv_api_migration_migration_proto_goTypes = []interface{}{
(*ReportRunsRequest)(nil), // 0: migration.ReportRunsRequest
(*ReportedRun)(nil), // 1: migration.ReportedRun
(*ReportFinishedRunRequest)(nil), // 2: migration.ReportFinishedRunRequest
(*ReportUsedNetrcRequest)(nil), // 3: migration.ReportUsedNetrcRequest
(*v1.Attempt)(nil), // 4: bigquery.Attempt
(*emptypb.Empty)(nil), // 5: google.protobuf.Empty
}
var file_go_chromium_org_luci_cv_api_migration_migration_proto_depIdxs = []int32{
1, // 0: migration.ReportRunsRequest.runs:type_name -> migration.ReportedRun
4, // 1: migration.ReportedRun.attempt:type_name -> bigquery.Attempt
1, // 2: migration.ReportFinishedRunRequest.run:type_name -> migration.ReportedRun
0, // 3: migration.Migration.ReportRuns:input_type -> migration.ReportRunsRequest
2, // 4: migration.Migration.ReportFinishedRun:input_type -> migration.ReportFinishedRunRequest
3, // 5: migration.Migration.ReportUsedNetrc:input_type -> migration.ReportUsedNetrcRequest
5, // 6: migration.Migration.ReportRuns:output_type -> google.protobuf.Empty
5, // 7: migration.Migration.ReportFinishedRun:output_type -> google.protobuf.Empty
5, // 8: migration.Migration.ReportUsedNetrc:output_type -> google.protobuf.Empty
6, // [6:9] is the sub-list for method output_type
3, // [3:6] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_go_chromium_org_luci_cv_api_migration_migration_proto_init() }
func file_go_chromium_org_luci_cv_api_migration_migration_proto_init() {
if File_go_chromium_org_luci_cv_api_migration_migration_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReportRunsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReportedRun); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReportFinishedRunRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReportUsedNetrcRequest); 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_go_chromium_org_luci_cv_api_migration_migration_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_go_chromium_org_luci_cv_api_migration_migration_proto_goTypes,
DependencyIndexes: file_go_chromium_org_luci_cv_api_migration_migration_proto_depIdxs,
MessageInfos: file_go_chromium_org_luci_cv_api_migration_migration_proto_msgTypes,
}.Build()
File_go_chromium_org_luci_cv_api_migration_migration_proto = out.File
file_go_chromium_org_luci_cv_api_migration_migration_proto_rawDesc = nil
file_go_chromium_org_luci_cv_api_migration_migration_proto_goTypes = nil
file_go_chromium_org_luci_cv_api_migration_migration_proto_depIdxs = nil
}