1// Copyright 2021 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.26.0 18// protoc v3.12.2 19// source: google/devtools/resultstore/v2/upload_metadata.proto 20 21package resultstore 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 _ "google.golang.org/genproto/googleapis/api/annotations" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37) 38 39// The upload metadata for an invocation 40type UploadMetadata struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // The name of the upload metadata. Its format will be: 46 // invocations/${INVOCATION_ID}/uploadMetadata 47 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 48 // The resume token of the last batch that was committed in the most recent 49 // batch upload. 50 // More information with resume_token could be found in 51 // resultstore_upload.proto 52 ResumeToken string `protobuf:"bytes,2,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty"` 53 // Client-specific data used to resume batch upload if an error occurs and 54 // retry action is needed. 55 UploaderState []byte `protobuf:"bytes,3,opt,name=uploader_state,json=uploaderState,proto3" json:"uploader_state,omitempty"` 56} 57 58func (x *UploadMetadata) Reset() { 59 *x = UploadMetadata{} 60 if protoimpl.UnsafeEnabled { 61 mi := &file_google_devtools_resultstore_v2_upload_metadata_proto_msgTypes[0] 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 ms.StoreMessageInfo(mi) 64 } 65} 66 67func (x *UploadMetadata) String() string { 68 return protoimpl.X.MessageStringOf(x) 69} 70 71func (*UploadMetadata) ProtoMessage() {} 72 73func (x *UploadMetadata) ProtoReflect() protoreflect.Message { 74 mi := &file_google_devtools_resultstore_v2_upload_metadata_proto_msgTypes[0] 75 if protoimpl.UnsafeEnabled && x != nil { 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 if ms.LoadMessageInfo() == nil { 78 ms.StoreMessageInfo(mi) 79 } 80 return ms 81 } 82 return mi.MessageOf(x) 83} 84 85// Deprecated: Use UploadMetadata.ProtoReflect.Descriptor instead. 86func (*UploadMetadata) Descriptor() ([]byte, []int) { 87 return file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescGZIP(), []int{0} 88} 89 90func (x *UploadMetadata) GetName() string { 91 if x != nil { 92 return x.Name 93 } 94 return "" 95} 96 97func (x *UploadMetadata) GetResumeToken() string { 98 if x != nil { 99 return x.ResumeToken 100 } 101 return "" 102} 103 104func (x *UploadMetadata) GetUploaderState() []byte { 105 if x != nil { 106 return x.UploaderState 107 } 108 return nil 109} 110 111var File_google_devtools_resultstore_v2_upload_metadata_proto protoreflect.FileDescriptor 112 113var file_google_devtools_resultstore_v2_upload_metadata_proto_rawDesc = []byte{ 114 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 115 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, 116 0x2f, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 117 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 118 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 119 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 120 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 121 0x6f, 0x22, 0xc7, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x74, 0x61, 122 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 123 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x75, 124 0x6d, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 125 0x72, 0x65, 0x73, 0x75, 0x6d, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x75, 126 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 127 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 128 0x74, 0x65, 0x3a, 0x57, 0xea, 0x41, 0x54, 0x0a, 0x29, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 129 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 130 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 131 0x74, 0x61, 0x12, 0x27, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 132 0x7b, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x75, 0x70, 0x6c, 133 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x86, 0x01, 0x0a, 0x22, 134 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 135 0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 136 0x76, 0x32, 0x42, 0x13, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 137 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 138 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 139 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 140 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 141 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 142 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 143} 144 145var ( 146 file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescOnce sync.Once 147 file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescData = file_google_devtools_resultstore_v2_upload_metadata_proto_rawDesc 148) 149 150func file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescGZIP() []byte { 151 file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescOnce.Do(func() { 152 file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescData) 153 }) 154 return file_google_devtools_resultstore_v2_upload_metadata_proto_rawDescData 155} 156 157var file_google_devtools_resultstore_v2_upload_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 158var file_google_devtools_resultstore_v2_upload_metadata_proto_goTypes = []interface{}{ 159 (*UploadMetadata)(nil), // 0: google.devtools.resultstore.v2.UploadMetadata 160} 161var file_google_devtools_resultstore_v2_upload_metadata_proto_depIdxs = []int32{ 162 0, // [0:0] is the sub-list for method output_type 163 0, // [0:0] is the sub-list for method input_type 164 0, // [0:0] is the sub-list for extension type_name 165 0, // [0:0] is the sub-list for extension extendee 166 0, // [0:0] is the sub-list for field type_name 167} 168 169func init() { file_google_devtools_resultstore_v2_upload_metadata_proto_init() } 170func file_google_devtools_resultstore_v2_upload_metadata_proto_init() { 171 if File_google_devtools_resultstore_v2_upload_metadata_proto != nil { 172 return 173 } 174 if !protoimpl.UnsafeEnabled { 175 file_google_devtools_resultstore_v2_upload_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 176 switch v := v.(*UploadMetadata); i { 177 case 0: 178 return &v.state 179 case 1: 180 return &v.sizeCache 181 case 2: 182 return &v.unknownFields 183 default: 184 return nil 185 } 186 } 187 } 188 type x struct{} 189 out := protoimpl.TypeBuilder{ 190 File: protoimpl.DescBuilder{ 191 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 192 RawDescriptor: file_google_devtools_resultstore_v2_upload_metadata_proto_rawDesc, 193 NumEnums: 0, 194 NumMessages: 1, 195 NumExtensions: 0, 196 NumServices: 0, 197 }, 198 GoTypes: file_google_devtools_resultstore_v2_upload_metadata_proto_goTypes, 199 DependencyIndexes: file_google_devtools_resultstore_v2_upload_metadata_proto_depIdxs, 200 MessageInfos: file_google_devtools_resultstore_v2_upload_metadata_proto_msgTypes, 201 }.Build() 202 File_google_devtools_resultstore_v2_upload_metadata_proto = out.File 203 file_google_devtools_resultstore_v2_upload_metadata_proto_rawDesc = nil 204 file_google_devtools_resultstore_v2_upload_metadata_proto_goTypes = nil 205 file_google_devtools_resultstore_v2_upload_metadata_proto_depIdxs = nil 206} 207