go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/auth_service/api/rpcpb/authdb.pb.go (about) 1 // Copyright 2022 The LUCI Authors. 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.31.0 18 // protoc v3.21.7 19 // source: go.chromium.org/luci/auth_service/api/rpcpb/authdb.proto 20 21 package rpcpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 27 reflect "reflect" 28 sync "sync" 29 ) 30 31 const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36 ) 37 38 // GetSnapshotRequest is passed to GetSnapshot rpc. 39 type GetSnapshotRequest struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // Version of the snapshot to get or 0 to get the latest one. 45 // Not all versions may be available (i.e. there may be gaps in revision 46 // numbers). 47 Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` 48 // If true response will not return actual snapshot, just its SHA256 49 // hash, revision number and timestamp. 50 SkipBody bool `protobuf:"varint,2,opt,name=skip_body,json=skipBody,proto3" json:"skip_body,omitempty"` 51 } 52 53 func (x *GetSnapshotRequest) Reset() { 54 *x = GetSnapshotRequest{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *GetSnapshotRequest) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*GetSnapshotRequest) ProtoMessage() {} 67 68 func (x *GetSnapshotRequest) ProtoReflect() protoreflect.Message { 69 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use GetSnapshotRequest.ProtoReflect.Descriptor instead. 81 func (*GetSnapshotRequest) Descriptor() ([]byte, []int) { 82 return file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *GetSnapshotRequest) GetRevision() int64 { 86 if x != nil { 87 return x.Revision 88 } 89 return 0 90 } 91 92 func (x *GetSnapshotRequest) GetSkipBody() bool { 93 if x != nil { 94 return x.SkipBody 95 } 96 return false 97 } 98 99 // Snapshot contains information about a specific AuthDB revision. 100 // The revision number is used to identify this snapshot. 101 type Snapshot struct { 102 state protoimpl.MessageState 103 sizeCache protoimpl.SizeCache 104 unknownFields protoimpl.UnknownFields 105 106 // Revision number of this Snapshot. 107 AuthDbRev int64 `protobuf:"varint,1,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"` 108 // SHA256 hash for this Snapshot. 109 AuthDbSha256 string `protobuf:"bytes,2,opt,name=auth_db_sha256,json=authDbSha256,proto3" json:"auth_db_sha256,omitempty"` 110 // Deflated AuthDB proto message, omitted if skip_body is true. 111 AuthDbDeflated []byte `protobuf:"bytes,3,opt,name=auth_db_deflated,json=authDbDeflated,proto3" json:"auth_db_deflated,omitempty"` 112 // Time that this Snapshot was created. 113 CreatedTs *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` 114 } 115 116 func (x *Snapshot) Reset() { 117 *x = Snapshot{} 118 if protoimpl.UnsafeEnabled { 119 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes[1] 120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 121 ms.StoreMessageInfo(mi) 122 } 123 } 124 125 func (x *Snapshot) String() string { 126 return protoimpl.X.MessageStringOf(x) 127 } 128 129 func (*Snapshot) ProtoMessage() {} 130 131 func (x *Snapshot) ProtoReflect() protoreflect.Message { 132 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes[1] 133 if protoimpl.UnsafeEnabled && x != nil { 134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 135 if ms.LoadMessageInfo() == nil { 136 ms.StoreMessageInfo(mi) 137 } 138 return ms 139 } 140 return mi.MessageOf(x) 141 } 142 143 // Deprecated: Use Snapshot.ProtoReflect.Descriptor instead. 144 func (*Snapshot) Descriptor() ([]byte, []int) { 145 return file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescGZIP(), []int{1} 146 } 147 148 func (x *Snapshot) GetAuthDbRev() int64 { 149 if x != nil { 150 return x.AuthDbRev 151 } 152 return 0 153 } 154 155 func (x *Snapshot) GetAuthDbSha256() string { 156 if x != nil { 157 return x.AuthDbSha256 158 } 159 return "" 160 } 161 162 func (x *Snapshot) GetAuthDbDeflated() []byte { 163 if x != nil { 164 return x.AuthDbDeflated 165 } 166 return nil 167 } 168 169 func (x *Snapshot) GetCreatedTs() *timestamppb.Timestamp { 170 if x != nil { 171 return x.CreatedTs 172 } 173 return nil 174 } 175 176 var File_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto protoreflect.FileDescriptor 177 178 var file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDesc = []byte{ 179 0x0a, 0x38, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 180 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 181 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2f, 0x61, 0x75, 182 0x74, 0x68, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x61, 0x75, 0x74, 0x68, 183 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 184 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 185 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4d, 0x0a, 0x12, 0x47, 0x65, 0x74, 186 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 187 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 188 0x03, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 189 0x6b, 0x69, 0x70, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 190 0x73, 0x6b, 0x69, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0xb5, 0x01, 0x0a, 0x08, 0x53, 0x6e, 0x61, 191 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x64, 0x62, 192 0x5f, 0x72, 0x65, 0x76, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 193 0x44, 0x62, 0x52, 0x65, 0x76, 0x12, 0x24, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x64, 0x62, 194 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 195 0x75, 0x74, 0x68, 0x44, 0x62, 0x53, 0x68, 0x61, 0x32, 0x35, 0x36, 0x12, 0x28, 0x0a, 0x10, 0x61, 196 0x75, 0x74, 0x68, 0x5f, 0x64, 0x62, 0x5f, 0x64, 0x65, 0x66, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x18, 197 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x44, 0x62, 0x44, 0x65, 0x66, 198 0x6c, 0x61, 0x74, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 199 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 200 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 201 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x73, 202 0x32, 0x51, 0x0a, 0x06, 0x41, 0x75, 0x74, 0x68, 0x44, 0x42, 0x12, 0x47, 0x0a, 0x0b, 0x47, 0x65, 203 0x74, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x61, 0x75, 0x74, 0x68, 204 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x6e, 0x61, 0x70, 205 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x75, 206 0x74, 0x68, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 207 0x68, 0x6f, 0x74, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 208 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 209 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 210 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 211 } 212 213 var ( 214 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescOnce sync.Once 215 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescData = file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDesc 216 ) 217 218 func file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescGZIP() []byte { 219 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescOnce.Do(func() { 220 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescData) 221 }) 222 return file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDescData 223 } 224 225 var file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 226 var file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_goTypes = []interface{}{ 227 (*GetSnapshotRequest)(nil), // 0: auth.service.GetSnapshotRequest 228 (*Snapshot)(nil), // 1: auth.service.Snapshot 229 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp 230 } 231 var file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_depIdxs = []int32{ 232 2, // 0: auth.service.Snapshot.created_ts:type_name -> google.protobuf.Timestamp 233 0, // 1: auth.service.AuthDB.GetSnapshot:input_type -> auth.service.GetSnapshotRequest 234 1, // 2: auth.service.AuthDB.GetSnapshot:output_type -> auth.service.Snapshot 235 2, // [2:3] is the sub-list for method output_type 236 1, // [1:2] is the sub-list for method input_type 237 1, // [1:1] is the sub-list for extension type_name 238 1, // [1:1] is the sub-list for extension extendee 239 0, // [0:1] is the sub-list for field type_name 240 } 241 242 func init() { file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_init() } 243 func file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_init() { 244 if File_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto != nil { 245 return 246 } 247 if !protoimpl.UnsafeEnabled { 248 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 249 switch v := v.(*GetSnapshotRequest); i { 250 case 0: 251 return &v.state 252 case 1: 253 return &v.sizeCache 254 case 2: 255 return &v.unknownFields 256 default: 257 return nil 258 } 259 } 260 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 261 switch v := v.(*Snapshot); i { 262 case 0: 263 return &v.state 264 case 1: 265 return &v.sizeCache 266 case 2: 267 return &v.unknownFields 268 default: 269 return nil 270 } 271 } 272 } 273 type x struct{} 274 out := protoimpl.TypeBuilder{ 275 File: protoimpl.DescBuilder{ 276 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 277 RawDescriptor: file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDesc, 278 NumEnums: 0, 279 NumMessages: 2, 280 NumExtensions: 0, 281 NumServices: 1, 282 }, 283 GoTypes: file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_goTypes, 284 DependencyIndexes: file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_depIdxs, 285 MessageInfos: file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_msgTypes, 286 }.Build() 287 File_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto = out.File 288 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_rawDesc = nil 289 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_goTypes = nil 290 file_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto_depIdxs = nil 291 }