go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/auth_service/api/rpcpb/allowlists.pb.go (about) 1 // Copyright 2021 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/allowlists.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 emptypb "google.golang.org/protobuf/types/known/emptypb" 27 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 28 reflect "reflect" 29 sync "sync" 30 ) 31 32 const ( 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 // ListAllowlistsResponse is all the allowlists present in LUCI Auth Service. 40 type ListAllowlistsResponse struct { 41 state protoimpl.MessageState 42 sizeCache protoimpl.SizeCache 43 unknownFields protoimpl.UnknownFields 44 45 // List of all allowlists. 46 Allowlists []*Allowlist `protobuf:"bytes,1,rep,name=allowlists,proto3" json:"allowlists,omitempty"` 47 } 48 49 func (x *ListAllowlistsResponse) Reset() { 50 *x = ListAllowlistsResponse{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *ListAllowlistsResponse) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*ListAllowlistsResponse) ProtoMessage() {} 63 64 func (x *ListAllowlistsResponse) ProtoReflect() protoreflect.Message { 65 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use ListAllowlistsResponse.ProtoReflect.Descriptor instead. 77 func (*ListAllowlistsResponse) Descriptor() ([]byte, []int) { 78 return file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *ListAllowlistsResponse) GetAllowlists() []*Allowlist { 82 if x != nil { 83 return x.Allowlists 84 } 85 return nil 86 } 87 88 // GetAllowlistRequest is to specify the allowlist being requested. 89 type GetAllowlistRequest struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g: "some-allowlist" 95 } 96 97 func (x *GetAllowlistRequest) Reset() { 98 *x = GetAllowlistRequest{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[1] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *GetAllowlistRequest) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*GetAllowlistRequest) ProtoMessage() {} 111 112 func (x *GetAllowlistRequest) ProtoReflect() protoreflect.Message { 113 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[1] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use GetAllowlistRequest.ProtoReflect.Descriptor instead. 125 func (*GetAllowlistRequest) Descriptor() ([]byte, []int) { 126 return file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescGZIP(), []int{1} 127 } 128 129 func (x *GetAllowlistRequest) GetName() string { 130 if x != nil { 131 return x.Name 132 } 133 return "" 134 } 135 136 // Allowlist defines the allowlist for a service using LUCI Auth Service. 137 type Allowlist struct { 138 state protoimpl.MessageState 139 sizeCache protoimpl.SizeCache 140 unknownFields protoimpl.UnknownFields 141 142 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g: "some-allowlist" 143 Subnets []string `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"` // e.g: ["127.0.0.1/24"] 144 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // e.g: "This allowlist is for ..." 145 CreatedTs *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` // e.g: "1972-01-01T10:00:20.021Z" 146 CreatedBy string `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // e.g: "user:test@example.com" 147 } 148 149 func (x *Allowlist) Reset() { 150 *x = Allowlist{} 151 if protoimpl.UnsafeEnabled { 152 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[2] 153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 154 ms.StoreMessageInfo(mi) 155 } 156 } 157 158 func (x *Allowlist) String() string { 159 return protoimpl.X.MessageStringOf(x) 160 } 161 162 func (*Allowlist) ProtoMessage() {} 163 164 func (x *Allowlist) ProtoReflect() protoreflect.Message { 165 mi := &file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[2] 166 if protoimpl.UnsafeEnabled && x != nil { 167 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 168 if ms.LoadMessageInfo() == nil { 169 ms.StoreMessageInfo(mi) 170 } 171 return ms 172 } 173 return mi.MessageOf(x) 174 } 175 176 // Deprecated: Use Allowlist.ProtoReflect.Descriptor instead. 177 func (*Allowlist) Descriptor() ([]byte, []int) { 178 return file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescGZIP(), []int{2} 179 } 180 181 func (x *Allowlist) GetName() string { 182 if x != nil { 183 return x.Name 184 } 185 return "" 186 } 187 188 func (x *Allowlist) GetSubnets() []string { 189 if x != nil { 190 return x.Subnets 191 } 192 return nil 193 } 194 195 func (x *Allowlist) GetDescription() string { 196 if x != nil { 197 return x.Description 198 } 199 return "" 200 } 201 202 func (x *Allowlist) GetCreatedTs() *timestamppb.Timestamp { 203 if x != nil { 204 return x.CreatedTs 205 } 206 return nil 207 } 208 209 func (x *Allowlist) GetCreatedBy() string { 210 if x != nil { 211 return x.CreatedBy 212 } 213 return "" 214 } 215 216 var File_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto protoreflect.FileDescriptor 217 218 var file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDesc = []byte{ 219 0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 220 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 221 0x69, 0x63, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2f, 0x61, 0x6c, 222 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 223 0x61, 0x75, 0x74, 0x68, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1b, 0x67, 0x6f, 224 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 225 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 226 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 227 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x16, 0x4c, 0x69, 228 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 229 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 230 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 231 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 232 0x74, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x22, 0x29, 0x0a, 233 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 234 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 235 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x09, 0x41, 0x6c, 0x6c, 236 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 237 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 238 0x62, 0x6e, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 239 0x6e, 0x65, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 240 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 241 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 242 0x64, 0x5f, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 243 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 244 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 245 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 246 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 247 0x32, 0xa8, 0x01, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x12, 248 0x4e, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 249 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 250 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x61, 0x75, 0x74, 0x68, 251 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 252 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 253 0x4a, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 254 0x21, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 255 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 256 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 257 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 258 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 259 0x75, 0x63, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 260 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x70, 0x63, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 261 0x6f, 0x33, 262 } 263 264 var ( 265 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescOnce sync.Once 266 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescData = file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDesc 267 ) 268 269 func file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescGZIP() []byte { 270 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescOnce.Do(func() { 271 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescData) 272 }) 273 return file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDescData 274 } 275 276 var file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 277 var file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_goTypes = []interface{}{ 278 (*ListAllowlistsResponse)(nil), // 0: auth.service.ListAllowlistsResponse 279 (*GetAllowlistRequest)(nil), // 1: auth.service.GetAllowlistRequest 280 (*Allowlist)(nil), // 2: auth.service.Allowlist 281 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp 282 (*emptypb.Empty)(nil), // 4: google.protobuf.Empty 283 } 284 var file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_depIdxs = []int32{ 285 2, // 0: auth.service.ListAllowlistsResponse.allowlists:type_name -> auth.service.Allowlist 286 3, // 1: auth.service.Allowlist.created_ts:type_name -> google.protobuf.Timestamp 287 4, // 2: auth.service.Allowlists.ListAllowlists:input_type -> google.protobuf.Empty 288 1, // 3: auth.service.Allowlists.GetAllowlist:input_type -> auth.service.GetAllowlistRequest 289 0, // 4: auth.service.Allowlists.ListAllowlists:output_type -> auth.service.ListAllowlistsResponse 290 2, // 5: auth.service.Allowlists.GetAllowlist:output_type -> auth.service.Allowlist 291 4, // [4:6] is the sub-list for method output_type 292 2, // [2:4] is the sub-list for method input_type 293 2, // [2:2] is the sub-list for extension type_name 294 2, // [2:2] is the sub-list for extension extendee 295 0, // [0:2] is the sub-list for field type_name 296 } 297 298 func init() { file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_init() } 299 func file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_init() { 300 if File_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto != nil { 301 return 302 } 303 if !protoimpl.UnsafeEnabled { 304 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 305 switch v := v.(*ListAllowlistsResponse); i { 306 case 0: 307 return &v.state 308 case 1: 309 return &v.sizeCache 310 case 2: 311 return &v.unknownFields 312 default: 313 return nil 314 } 315 } 316 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 317 switch v := v.(*GetAllowlistRequest); i { 318 case 0: 319 return &v.state 320 case 1: 321 return &v.sizeCache 322 case 2: 323 return &v.unknownFields 324 default: 325 return nil 326 } 327 } 328 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 329 switch v := v.(*Allowlist); i { 330 case 0: 331 return &v.state 332 case 1: 333 return &v.sizeCache 334 case 2: 335 return &v.unknownFields 336 default: 337 return nil 338 } 339 } 340 } 341 type x struct{} 342 out := protoimpl.TypeBuilder{ 343 File: protoimpl.DescBuilder{ 344 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 345 RawDescriptor: file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDesc, 346 NumEnums: 0, 347 NumMessages: 3, 348 NumExtensions: 0, 349 NumServices: 1, 350 }, 351 GoTypes: file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_goTypes, 352 DependencyIndexes: file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_depIdxs, 353 MessageInfos: file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_msgTypes, 354 }.Build() 355 File_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto = out.File 356 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_rawDesc = nil 357 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_goTypes = nil 358 file_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto_depIdxs = nil 359 }