| 1 |
// Copyright 2025 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.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/api/apikeys/v2/resources.proto |
| 20 |
|
| 21 |
package apikeyspb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 26 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 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 |
// The representation of a key managed by the API Keys API. |
| 40 |
type Key struct { |
| 41 |
state protoimpl.MessageState |
| 42 |
sizeCache protoimpl.SizeCache |
| 43 |
unknownFields protoimpl.UnknownFields |
| 44 |
|
| 45 |
// Output only. The resource name of the key. |
| 46 |
// The `name` has the form: |
| 47 |
// `projects/<PROJECT_NUMBER>/locations/global/keys/<KEY_ID>`. |
| 48 |
// For example: |
| 49 |
// `projects/123456867718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` |
| 50 |
// |
| 51 |
// NOTE: Key is a global resource; hence the only supported value for |
| 52 |
// location is `global`. |
| 53 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 54 |
// Output only. Unique id in UUID4 format. |
| 55 |
Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"` |
| 56 |
// Human-readable display name of this key that you can modify. |
| 57 |
// The maximum length is 63 characters. |
| 58 |
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| 59 |
// Output only. An encrypted and signed value held by this key. |
| 60 |
// This field can be accessed only through the `GetKeyString` method. |
| 61 |
KeyString string `protobuf:"bytes,3,opt,name=key_string,json=keyString,proto3" json:"key_string,omitempty"` |
| 62 |
// Output only. A timestamp identifying the time this key was originally |
| 63 |
// created. |
| 64 |
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| 65 |
// Output only. A timestamp identifying the time this key was last |
| 66 |
// updated. |
| 67 |
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| 68 |
// Output only. A timestamp when this key was deleted. If the resource is not |
| 69 |
// deleted, this must be empty. |
| 70 |
DeleteTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=delete_time,json=deleteTime,proto3" json:"delete_time,omitempty"` |
| 71 |
// Annotations is an unstructured key-value map stored with a policy that |
| 72 |
// may be set by external tools to store and retrieve arbitrary metadata. |
| 73 |
// They are not queryable and should be preserved when modifying objects. |
| 74 |
Annotations map[string]string `protobuf:"bytes,8,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 75 |
// Key restrictions. |
| 76 |
Restrictions *Restrictions `protobuf:"bytes,9,opt,name=restrictions,proto3" json:"restrictions,omitempty"` |
| 77 |
// Output only. A checksum computed by the server based on the current value |
| 78 |
// of the Key resource. This may be sent on update and delete requests to |
| 79 |
// ensure the client has an up-to-date value before proceeding. See |
| 80 |
// https://google.aip.dev/154. |
| 81 |
Etag string `protobuf:"bytes,11,opt,name=etag,proto3" json:"etag,omitempty"` |
| 82 |
} |
| 83 |
|
| 84 |
func (x *Key) Reset() { |
| 85 |
*x = Key{} |
| 86 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[0] |
| 87 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 88 |
ms.StoreMessageInfo(mi) |
| 89 |
} |
| 90 |
|
| 91 |
func (x *Key) String() string { |
| 92 |
return protoimpl.X.MessageStringOf(x) |
| 93 |
} |
| 94 |
|
| 95 |
func (*Key) ProtoMessage() {} |
| 96 |
|
| 97 |
func (x *Key) ProtoReflect() protoreflect.Message { |
| 98 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[0] |
| 99 |
if x != nil { |
| 100 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 101 |
if ms.LoadMessageInfo() == nil { |
| 102 |
ms.StoreMessageInfo(mi) |
| 103 |
} |
| 104 |
return ms |
| 105 |
} |
| 106 |
return mi.MessageOf(x) |
| 107 |
} |
| 108 |
|
| 109 |
// Deprecated: Use Key.ProtoReflect.Descriptor instead. |
| 110 |
func (*Key) Descriptor() ([]byte, []int) { |
| 111 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{0} |
| 112 |
} |
| 113 |
|
| 114 |
func (x *Key) GetName() string { |
| 115 |
if x != nil { |
| 116 |
return x.Name |
| 117 |
} |
| 118 |
return "" |
| 119 |
} |
| 120 |
|
| 121 |
func (x *Key) GetUid() string { |
| 122 |
if x != nil { |
| 123 |
return x.Uid |
| 124 |
} |
| 125 |
return "" |
| 126 |
} |
| 127 |
|
| 128 |
func (x *Key) GetDisplayName() string { |
| 129 |
if x != nil { |
| 130 |
return x.DisplayName |
| 131 |
} |
| 132 |
return "" |
| 133 |
} |
| 134 |
|
| 135 |
func (x *Key) GetKeyString() string { |
| 136 |
if x != nil { |
| 137 |
return x.KeyString |
| 138 |
} |
| 139 |
return "" |
| 140 |
} |
| 141 |
|
| 142 |
func (x *Key) GetCreateTime() *timestamppb.Timestamp { |
| 143 |
if x != nil { |
| 144 |
return x.CreateTime |
| 145 |
} |
| 146 |
return nil |
| 147 |
} |
| 148 |
|
| 149 |
func (x *Key) GetUpdateTime() *timestamppb.Timestamp { |
| 150 |
if x != nil { |
| 151 |
return x.UpdateTime |
| 152 |
} |
| 153 |
return nil |
| 154 |
} |
| 155 |
|
| 156 |
func (x *Key) GetDeleteTime() *timestamppb.Timestamp { |
| 157 |
if x != nil { |
| 158 |
return x.DeleteTime |
| 159 |
} |
| 160 |
return nil |
| 161 |
} |
| 162 |
|
| 163 |
func (x *Key) GetAnnotations() map[string]string { |
| 164 |
if x != nil { |
| 165 |
return x.Annotations |
| 166 |
} |
| 167 |
return nil |
| 168 |
} |
| 169 |
|
| 170 |
func (x *Key) GetRestrictions() *Restrictions { |
| 171 |
if x != nil { |
| 172 |
return x.Restrictions |
| 173 |
} |
| 174 |
return nil |
| 175 |
} |
| 176 |
|
| 177 |
func (x *Key) GetEtag() string { |
| 178 |
if x != nil { |
| 179 |
return x.Etag |
| 180 |
} |
| 181 |
return "" |
| 182 |
} |
| 183 |
|
| 184 |
// Describes the restrictions on the key. |
| 185 |
type Restrictions struct { |
| 186 |
state protoimpl.MessageState |
| 187 |
sizeCache protoimpl.SizeCache |
| 188 |
unknownFields protoimpl.UnknownFields |
| 189 |
|
| 190 |
// The websites, IP addresses, Android apps, or iOS apps (the clients) that |
| 191 |
// are allowed to use the key. You can specify only one type of client |
| 192 |
// restrictions per key. |
| 193 |
// |
| 194 |
// Types that are assignable to ClientRestrictions: |
| 195 |
// |
| 196 |
// *Restrictions_BrowserKeyRestrictions |
| 197 |
// *Restrictions_ServerKeyRestrictions |
| 198 |
// *Restrictions_AndroidKeyRestrictions |
| 199 |
// *Restrictions_IosKeyRestrictions |
| 200 |
ClientRestrictions isRestrictions_ClientRestrictions `protobuf_oneof:"client_restrictions"` |
| 201 |
// A restriction for a specific service and optionally one or |
| 202 |
// more specific methods. Requests are allowed if they |
| 203 |
// match any of these restrictions. If no restrictions are |
| 204 |
// specified, all targets are allowed. |
| 205 |
ApiTargets []*ApiTarget `protobuf:"bytes,5,rep,name=api_targets,json=apiTargets,proto3" json:"api_targets,omitempty"` |
| 206 |
} |
| 207 |
|
| 208 |
func (x *Restrictions) Reset() { |
| 209 |
*x = Restrictions{} |
| 210 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[1] |
| 211 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 212 |
ms.StoreMessageInfo(mi) |
| 213 |
} |
| 214 |
|
| 215 |
func (x *Restrictions) String() string { |
| 216 |
return protoimpl.X.MessageStringOf(x) |
| 217 |
} |
| 218 |
|
| 219 |
func (*Restrictions) ProtoMessage() {} |
| 220 |
|
| 221 |
func (x *Restrictions) ProtoReflect() protoreflect.Message { |
| 222 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[1] |
| 223 |
if x != nil { |
| 224 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 225 |
if ms.LoadMessageInfo() == nil { |
| 226 |
ms.StoreMessageInfo(mi) |
| 227 |
} |
| 228 |
return ms |
| 229 |
} |
| 230 |
return mi.MessageOf(x) |
| 231 |
} |
| 232 |
|
| 233 |
// Deprecated: Use Restrictions.ProtoReflect.Descriptor instead. |
| 234 |
func (*Restrictions) Descriptor() ([]byte, []int) { |
| 235 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{1} |
| 236 |
} |
| 237 |
|
| 238 |
func (m *Restrictions) GetClientRestrictions() isRestrictions_ClientRestrictions { |
| 239 |
if m != nil { |
| 240 |
return m.ClientRestrictions |
| 241 |
} |
| 242 |
return nil |
| 243 |
} |
| 244 |
|
| 245 |
func (x *Restrictions) GetBrowserKeyRestrictions() *BrowserKeyRestrictions { |
| 246 |
if x, ok := x.GetClientRestrictions().(*Restrictions_BrowserKeyRestrictions); ok { |
| 247 |
return x.BrowserKeyRestrictions |
| 248 |
} |
| 249 |
return nil |
| 250 |
} |
| 251 |
|
| 252 |
func (x *Restrictions) GetServerKeyRestrictions() *ServerKeyRestrictions { |
| 253 |
if x, ok := x.GetClientRestrictions().(*Restrictions_ServerKeyRestrictions); ok { |
| 254 |
return x.ServerKeyRestrictions |
| 255 |
} |
| 256 |
return nil |
| 257 |
} |
| 258 |
|
| 259 |
func (x *Restrictions) GetAndroidKeyRestrictions() *AndroidKeyRestrictions { |
| 260 |
if x, ok := x.GetClientRestrictions().(*Restrictions_AndroidKeyRestrictions); ok { |
| 261 |
return x.AndroidKeyRestrictions |
| 262 |
} |
| 263 |
return nil |
| 264 |
} |
| 265 |
|
| 266 |
func (x *Restrictions) GetIosKeyRestrictions() *IosKeyRestrictions { |
| 267 |
if x, ok := x.GetClientRestrictions().(*Restrictions_IosKeyRestrictions); ok { |
| 268 |
return x.IosKeyRestrictions |
| 269 |
} |
| 270 |
return nil |
| 271 |
} |
| 272 |
|
| 273 |
func (x *Restrictions) GetApiTargets() []*ApiTarget { |
| 274 |
if x != nil { |
| 275 |
return x.ApiTargets |
| 276 |
} |
| 277 |
return nil |
| 278 |
} |
| 279 |
|
| 280 |
type isRestrictions_ClientRestrictions interface { |
| 281 |
isRestrictions_ClientRestrictions() |
| 282 |
} |
| 283 |
|
| 284 |
type Restrictions_BrowserKeyRestrictions struct { |
| 285 |
// The HTTP referrers (websites) that are allowed to use the key. |
| 286 |
BrowserKeyRestrictions *BrowserKeyRestrictions `protobuf:"bytes,1,opt,name=browser_key_restrictions,json=browserKeyRestrictions,proto3,oneof"` |
| 287 |
} |
| 288 |
|
| 289 |
type Restrictions_ServerKeyRestrictions struct { |
| 290 |
// The IP addresses of callers that are allowed to use the key. |
| 291 |
ServerKeyRestrictions *ServerKeyRestrictions `protobuf:"bytes,2,opt,name=server_key_restrictions,json=serverKeyRestrictions,proto3,oneof"` |
| 292 |
} |
| 293 |
|
| 294 |
type Restrictions_AndroidKeyRestrictions struct { |
| 295 |
// The Android apps that are allowed to use the key. |
| 296 |
AndroidKeyRestrictions *AndroidKeyRestrictions `protobuf:"bytes,3,opt,name=android_key_restrictions,json=androidKeyRestrictions,proto3,oneof"` |
| 297 |
} |
| 298 |
|
| 299 |
type Restrictions_IosKeyRestrictions struct { |
| 300 |
// The iOS apps that are allowed to use the key. |
| 301 |
IosKeyRestrictions *IosKeyRestrictions `protobuf:"bytes,4,opt,name=ios_key_restrictions,json=iosKeyRestrictions,proto3,oneof"` |
| 302 |
} |
| 303 |
|
| 304 |
func (*Restrictions_BrowserKeyRestrictions) isRestrictions_ClientRestrictions() {} |
| 305 |
|
| 306 |
func (*Restrictions_ServerKeyRestrictions) isRestrictions_ClientRestrictions() {} |
| 307 |
|
| 308 |
func (*Restrictions_AndroidKeyRestrictions) isRestrictions_ClientRestrictions() {} |
| 309 |
|
| 310 |
func (*Restrictions_IosKeyRestrictions) isRestrictions_ClientRestrictions() {} |
| 311 |
|
| 312 |
// The HTTP referrers (websites) that are allowed to use the key. |
| 313 |
type BrowserKeyRestrictions struct { |
| 314 |
state protoimpl.MessageState |
| 315 |
sizeCache protoimpl.SizeCache |
| 316 |
unknownFields protoimpl.UnknownFields |
| 317 |
|
| 318 |
// A list of regular expressions for the referrer URLs that are allowed |
| 319 |
// to make API calls with this key. |
| 320 |
AllowedReferrers []string `protobuf:"bytes,1,rep,name=allowed_referrers,json=allowedReferrers,proto3" json:"allowed_referrers,omitempty"` |
| 321 |
} |
| 322 |
|
| 323 |
func (x *BrowserKeyRestrictions) Reset() { |
| 324 |
*x = BrowserKeyRestrictions{} |
| 325 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[2] |
| 326 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 327 |
ms.StoreMessageInfo(mi) |
| 328 |
} |
| 329 |
|
| 330 |
func (x *BrowserKeyRestrictions) String() string { |
| 331 |
return protoimpl.X.MessageStringOf(x) |
| 332 |
} |
| 333 |
|
| 334 |
func (*BrowserKeyRestrictions) ProtoMessage() {} |
| 335 |
|
| 336 |
func (x *BrowserKeyRestrictions) ProtoReflect() protoreflect.Message { |
| 337 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[2] |
| 338 |
if x != nil { |
| 339 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 340 |
if ms.LoadMessageInfo() == nil { |
| 341 |
ms.StoreMessageInfo(mi) |
| 342 |
} |
| 343 |
return ms |
| 344 |
} |
| 345 |
return mi.MessageOf(x) |
| 346 |
} |
| 347 |
|
| 348 |
// Deprecated: Use BrowserKeyRestrictions.ProtoReflect.Descriptor instead. |
| 349 |
func (*BrowserKeyRestrictions) Descriptor() ([]byte, []int) { |
| 350 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{2} |
| 351 |
} |
| 352 |
|
| 353 |
func (x *BrowserKeyRestrictions) GetAllowedReferrers() []string { |
| 354 |
if x != nil { |
| 355 |
return x.AllowedReferrers |
| 356 |
} |
| 357 |
return nil |
| 358 |
} |
| 359 |
|
| 360 |
// The IP addresses of callers that are allowed to use the key. |
| 361 |
type ServerKeyRestrictions struct { |
| 362 |
state protoimpl.MessageState |
| 363 |
sizeCache protoimpl.SizeCache |
| 364 |
unknownFields protoimpl.UnknownFields |
| 365 |
|
| 366 |
// A list of the caller IP addresses that are allowed to make API calls |
| 367 |
// with this key. |
| 368 |
AllowedIps []string `protobuf:"bytes,1,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"` |
| 369 |
} |
| 370 |
|
| 371 |
func (x *ServerKeyRestrictions) Reset() { |
| 372 |
*x = ServerKeyRestrictions{} |
| 373 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[3] |
| 374 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 375 |
ms.StoreMessageInfo(mi) |
| 376 |
} |
| 377 |
|
| 378 |
func (x *ServerKeyRestrictions) String() string { |
| 379 |
return protoimpl.X.MessageStringOf(x) |
| 380 |
} |
| 381 |
|
| 382 |
func (*ServerKeyRestrictions) ProtoMessage() {} |
| 383 |
|
| 384 |
func (x *ServerKeyRestrictions) ProtoReflect() protoreflect.Message { |
| 385 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[3] |
| 386 |
if x != nil { |
| 387 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 388 |
if ms.LoadMessageInfo() == nil { |
| 389 |
ms.StoreMessageInfo(mi) |
| 390 |
} |
| 391 |
return ms |
| 392 |
} |
| 393 |
return mi.MessageOf(x) |
| 394 |
} |
| 395 |
|
| 396 |
// Deprecated: Use ServerKeyRestrictions.ProtoReflect.Descriptor instead. |
| 397 |
func (*ServerKeyRestrictions) Descriptor() ([]byte, []int) { |
| 398 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{3} |
| 399 |
} |
| 400 |
|
| 401 |
func (x *ServerKeyRestrictions) GetAllowedIps() []string { |
| 402 |
if x != nil { |
| 403 |
return x.AllowedIps |
| 404 |
} |
| 405 |
return nil |
| 406 |
} |
| 407 |
|
| 408 |
// The Android apps that are allowed to use the key. |
| 409 |
type AndroidKeyRestrictions struct { |
| 410 |
state protoimpl.MessageState |
| 411 |
sizeCache protoimpl.SizeCache |
| 412 |
unknownFields protoimpl.UnknownFields |
| 413 |
|
| 414 |
// A list of Android applications that are allowed to make API calls with |
| 415 |
// this key. |
| 416 |
AllowedApplications []*AndroidApplication `protobuf:"bytes,1,rep,name=allowed_applications,json=allowedApplications,proto3" json:"allowed_applications,omitempty"` |
| 417 |
} |
| 418 |
|
| 419 |
func (x *AndroidKeyRestrictions) Reset() { |
| 420 |
*x = AndroidKeyRestrictions{} |
| 421 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[4] |
| 422 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 423 |
ms.StoreMessageInfo(mi) |
| 424 |
} |
| 425 |
|
| 426 |
func (x *AndroidKeyRestrictions) String() string { |
| 427 |
return protoimpl.X.MessageStringOf(x) |
| 428 |
} |
| 429 |
|
| 430 |
func (*AndroidKeyRestrictions) ProtoMessage() {} |
| 431 |
|
| 432 |
func (x *AndroidKeyRestrictions) ProtoReflect() protoreflect.Message { |
| 433 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[4] |
| 434 |
if x != nil { |
| 435 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 436 |
if ms.LoadMessageInfo() == nil { |
| 437 |
ms.StoreMessageInfo(mi) |
| 438 |
} |
| 439 |
return ms |
| 440 |
} |
| 441 |
return mi.MessageOf(x) |
| 442 |
} |
| 443 |
|
| 444 |
// Deprecated: Use AndroidKeyRestrictions.ProtoReflect.Descriptor instead. |
| 445 |
func (*AndroidKeyRestrictions) Descriptor() ([]byte, []int) { |
| 446 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{4} |
| 447 |
} |
| 448 |
|
| 449 |
func (x *AndroidKeyRestrictions) GetAllowedApplications() []*AndroidApplication { |
| 450 |
if x != nil { |
| 451 |
return x.AllowedApplications |
| 452 |
} |
| 453 |
return nil |
| 454 |
} |
| 455 |
|
| 456 |
// Identifier of an Android application for key use. |
| 457 |
type AndroidApplication struct { |
| 458 |
state protoimpl.MessageState |
| 459 |
sizeCache protoimpl.SizeCache |
| 460 |
unknownFields protoimpl.UnknownFields |
| 461 |
|
| 462 |
// The SHA1 fingerprint of the application. For example, both sha1 formats are |
| 463 |
// acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or |
| 464 |
// DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. |
| 465 |
// Output format is the latter. |
| 466 |
Sha1Fingerprint string `protobuf:"bytes,1,opt,name=sha1_fingerprint,json=sha1Fingerprint,proto3" json:"sha1_fingerprint,omitempty"` |
| 467 |
// The package name of the application. |
| 468 |
PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` |
| 469 |
} |
| 470 |
|
| 471 |
func (x *AndroidApplication) Reset() { |
| 472 |
*x = AndroidApplication{} |
| 473 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[5] |
| 474 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 475 |
ms.StoreMessageInfo(mi) |
| 476 |
} |
| 477 |
|
| 478 |
func (x *AndroidApplication) String() string { |
| 479 |
return protoimpl.X.MessageStringOf(x) |
| 480 |
} |
| 481 |
|
| 482 |
func (*AndroidApplication) ProtoMessage() {} |
| 483 |
|
| 484 |
func (x *AndroidApplication) ProtoReflect() protoreflect.Message { |
| 485 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[5] |
| 486 |
if x != nil { |
| 487 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 488 |
if ms.LoadMessageInfo() == nil { |
| 489 |
ms.StoreMessageInfo(mi) |
| 490 |
} |
| 491 |
return ms |
| 492 |
} |
| 493 |
return mi.MessageOf(x) |
| 494 |
} |
| 495 |
|
| 496 |
// Deprecated: Use AndroidApplication.ProtoReflect.Descriptor instead. |
| 497 |
func (*AndroidApplication) Descriptor() ([]byte, []int) { |
| 498 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{5} |
| 499 |
} |
| 500 |
|
| 501 |
func (x *AndroidApplication) GetSha1Fingerprint() string { |
| 502 |
if x != nil { |
| 503 |
return x.Sha1Fingerprint |
| 504 |
} |
| 505 |
return "" |
| 506 |
} |
| 507 |
|
| 508 |
func (x *AndroidApplication) GetPackageName() string { |
| 509 |
if x != nil { |
| 510 |
return x.PackageName |
| 511 |
} |
| 512 |
return "" |
| 513 |
} |
| 514 |
|
| 515 |
// The iOS apps that are allowed to use the key. |
| 516 |
type IosKeyRestrictions struct { |
| 517 |
state protoimpl.MessageState |
| 518 |
sizeCache protoimpl.SizeCache |
| 519 |
unknownFields protoimpl.UnknownFields |
| 520 |
|
| 521 |
// A list of bundle IDs that are allowed when making API calls with this key. |
| 522 |
AllowedBundleIds []string `protobuf:"bytes,1,rep,name=allowed_bundle_ids,json=allowedBundleIds,proto3" json:"allowed_bundle_ids,omitempty"` |
| 523 |
} |
| 524 |
|
| 525 |
func (x *IosKeyRestrictions) Reset() { |
| 526 |
*x = IosKeyRestrictions{} |
| 527 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[6] |
| 528 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 529 |
ms.StoreMessageInfo(mi) |
| 530 |
} |
| 531 |
|
| 532 |
func (x *IosKeyRestrictions) String() string { |
| 533 |
return protoimpl.X.MessageStringOf(x) |
| 534 |
} |
| 535 |
|
| 536 |
func (*IosKeyRestrictions) ProtoMessage() {} |
| 537 |
|
| 538 |
func (x *IosKeyRestrictions) ProtoReflect() protoreflect.Message { |
| 539 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[6] |
| 540 |
if x != nil { |
| 541 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 542 |
if ms.LoadMessageInfo() == nil { |
| 543 |
ms.StoreMessageInfo(mi) |
| 544 |
} |
| 545 |
return ms |
| 546 |
} |
| 547 |
return mi.MessageOf(x) |
| 548 |
} |
| 549 |
|
| 550 |
// Deprecated: Use IosKeyRestrictions.ProtoReflect.Descriptor instead. |
| 551 |
func (*IosKeyRestrictions) Descriptor() ([]byte, []int) { |
| 552 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{6} |
| 553 |
} |
| 554 |
|
| 555 |
func (x *IosKeyRestrictions) GetAllowedBundleIds() []string { |
| 556 |
if x != nil { |
| 557 |
return x.AllowedBundleIds |
| 558 |
} |
| 559 |
return nil |
| 560 |
} |
| 561 |
|
| 562 |
// A restriction for a specific service and optionally one or multiple |
| 563 |
// specific methods. Both fields are case insensitive. |
| 564 |
type ApiTarget struct { |
| 565 |
state protoimpl.MessageState |
| 566 |
sizeCache protoimpl.SizeCache |
| 567 |
unknownFields protoimpl.UnknownFields |
| 568 |
|
| 569 |
// The service for this restriction. It should be the canonical |
| 570 |
// service name, for example: `translate.googleapis.com`. |
| 571 |
// You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) |
| 572 |
// to get a list of services that are enabled in the project. |
| 573 |
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` |
| 574 |
// Optional. List of one or more methods that can be called. |
| 575 |
// If empty, all methods for the service are allowed. A wildcard |
| 576 |
// (*) can be used as the last symbol. |
| 577 |
// Valid examples: |
| 578 |
// |
| 579 |
// `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` |
| 580 |
// `TranslateText` |
| 581 |
// `Get*` |
| 582 |
// `translate.googleapis.com.Get*` |
| 583 |
Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"` |
| 584 |
} |
| 585 |
|
| 586 |
func (x *ApiTarget) Reset() { |
| 587 |
*x = ApiTarget{} |
| 588 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[7] |
| 589 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 590 |
ms.StoreMessageInfo(mi) |
| 591 |
} |
| 592 |
|
| 593 |
func (x *ApiTarget) String() string { |
| 594 |
return protoimpl.X.MessageStringOf(x) |
| 595 |
} |
| 596 |
|
| 597 |
func (*ApiTarget) ProtoMessage() {} |
| 598 |
|
| 599 |
func (x *ApiTarget) ProtoReflect() protoreflect.Message { |
| 600 |
mi := &file_google_api_apikeys_v2_resources_proto_msgTypes[7] |
| 601 |
if x != nil { |
| 602 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 603 |
if ms.LoadMessageInfo() == nil { |
| 604 |
ms.StoreMessageInfo(mi) |
| 605 |
} |
| 606 |
return ms |
| 607 |
} |
| 608 |
return mi.MessageOf(x) |
| 609 |
} |
| 610 |
|
| 611 |
// Deprecated: Use ApiTarget.ProtoReflect.Descriptor instead. |
| 612 |
func (*ApiTarget) Descriptor() ([]byte, []int) { |
| 613 |
return file_google_api_apikeys_v2_resources_proto_rawDescGZIP(), []int{7} |
| 614 |
} |
| 615 |
|
| 616 |
func (x *ApiTarget) GetService() string { |
| 617 |
if x != nil { |
| 618 |
return x.Service |
| 619 |
} |
| 620 |
return "" |
| 621 |
} |
| 622 |
|
| 623 |
func (x *ApiTarget) GetMethods() []string { |
| 624 |
if x != nil { |
| 625 |
return x.Methods |
| 626 |
} |
| 627 |
return nil |
| 628 |
} |
| 629 |
|
| 630 |
var File_google_api_apikeys_v2_resources_proto protoreflect.FileDescriptor |
| 631 |
|
| 632 |
var file_google_api_apikeys_v2_resources_proto_rawDesc = []byte{ |
| 633 |
0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, |
| 634 |
0x6b, 0x65, 0x79, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 635 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 636 |
0x61, 0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x1f, |
| 637 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 638 |
0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 639 |
0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, |
| 640 |
0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, |
| 641 |
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, |
| 642 |
0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x05, 0x0a, 0x03, |
| 643 |
0x4b, 0x65, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 644 |
0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, |
| 645 |
0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, |
| 646 |
0x75, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, |
| 647 |
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, |
| 648 |
0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, |
| 649 |
0x72, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, |
| 650 |
0x09, 0x6b, 0x65, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, |
| 651 |
0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 652 |
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 653 |
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, |
| 654 |
0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, |
| 655 |
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, |
| 656 |
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 657 |
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, |
| 658 |
0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, |
| 659 |
0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, |
| 660 |
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, |
| 661 |
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, |
| 662 |
0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, |
| 663 |
0x12, 0x4d, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, |
| 664 |
0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 665 |
0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4b, 0x65, |
| 666 |
0x79, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, |
| 667 |
0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, |
| 668 |
0x47, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, |
| 669 |
0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 670 |
0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, |
| 671 |
0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x74, |
| 672 |
0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, |
| 673 |
0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x65, 0x74, 0x61, |
| 674 |
0x67, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 675 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 676 |
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 677 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 678 |
0x01, 0x3a, 0x61, 0xea, 0x41, 0x5e, 0x0a, 0x1a, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, |
| 679 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4b, |
| 680 |
0x65, 0x79, 0x12, 0x32, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, |
| 681 |
0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 682 |
0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6b, 0x65, 0x79, 0x73, |
| 683 |
0x2f, 0x7b, 0x6b, 0x65, 0x79, 0x7d, 0x2a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x32, 0x03, 0x6b, 0x65, |
| 684 |
0x79, 0x52, 0x01, 0x01, 0x22, 0x85, 0x04, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, |
| 685 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x69, 0x0a, 0x18, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, |
| 686 |
0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, |
| 687 |
0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 688 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, |
| 689 |
0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, |
| 690 |
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x16, 0x62, 0x72, 0x6f, 0x77, 0x73, 0x65, |
| 691 |
0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, |
| 692 |
0x12, 0x66, 0x0a, 0x17, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x72, |
| 693 |
0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 694 |
0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, |
| 695 |
0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, |
| 696 |
0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, |
| 697 |
0x00, 0x52, 0x15, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, |
| 698 |
0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x69, 0x0a, 0x18, 0x61, 0x6e, 0x64, 0x72, |
| 699 |
0x6f, 0x69, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, |
| 700 |
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, |
| 701 |
0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, |
| 702 |
0x76, 0x32, 0x2e, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, |
| 703 |
0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x16, 0x61, 0x6e, 0x64, |
| 704 |
0x72, 0x6f, 0x69, 0x64, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, |
| 705 |
0x6f, 0x6e, 0x73, 0x12, 0x5d, 0x0a, 0x14, 0x69, 0x6f, 0x73, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x72, |
| 706 |
0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 707 |
0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, |
| 708 |
0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6f, 0x73, 0x4b, 0x65, 0x79, |
| 709 |
0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, |
| 710 |
0x69, 0x6f, 0x73, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, |
| 711 |
0x6e, 0x73, 0x12, 0x41, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, |
| 712 |
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 713 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, |
| 714 |
0x41, 0x70, 0x69, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x54, 0x61, |
| 715 |
0x72, 0x67, 0x65, 0x74, 0x73, 0x42, 0x15, 0x0a, 0x13, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, |
| 716 |
0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45, 0x0a, 0x16, |
| 717 |
0x42, 0x72, 0x6f, 0x77, 0x73, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, |
| 718 |
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, |
| 719 |
0x64, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 720 |
0x09, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x52, 0x65, 0x66, 0x65, 0x72, 0x72, |
| 721 |
0x65, 0x72, 0x73, 0x22, 0x38, 0x0a, 0x15, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4b, 0x65, 0x79, |
| 722 |
0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, |
| 723 |
0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x69, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 724 |
0x09, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x49, 0x70, 0x73, 0x22, 0x76, 0x0a, |
| 725 |
0x16, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, |
| 726 |
0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5c, 0x0a, 0x14, 0x61, 0x6c, 0x6c, 0x6f, 0x77, |
| 727 |
0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, |
| 728 |
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 729 |
0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x6e, |
| 730 |
0x64, 0x72, 0x6f, 0x69, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 731 |
0x52, 0x13, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, |
| 732 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x12, 0x41, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, |
| 733 |
0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x73, |
| 734 |
0x68, 0x61, 0x31, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x18, |
| 735 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x68, 0x61, 0x31, 0x46, 0x69, 0x6e, 0x67, 0x65, |
| 736 |
0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, |
| 737 |
0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x61, |
| 738 |
0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x42, 0x0a, 0x12, 0x49, 0x6f, 0x73, |
| 739 |
0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, |
| 740 |
0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, |
| 741 |
0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x61, 0x6c, 0x6c, |
| 742 |
0x6f, 0x77, 0x65, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x22, 0x44, 0x0a, |
| 743 |
0x09, 0x41, 0x70, 0x69, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, |
| 744 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, |
| 745 |
0x76, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, |
| 746 |
0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x68, |
| 747 |
0x6f, 0x64, 0x73, 0x42, 0xb5, 0x01, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 748 |
0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x2e, 0x76, |
| 749 |
0x32, 0x42, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, |
| 750 |
0x6f, 0x50, 0x01, 0x5a, 0x35, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 751 |
0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, |
| 752 |
0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x62, |
| 753 |
0x3b, 0x61, 0x70, 0x69, 0x6b, 0x65, 0x79, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x17, 0x47, 0x6f, 0x6f, |
| 754 |
0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, |
| 755 |
0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x17, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, |
| 756 |
0x6f, 0x75, 0x64, 0x5c, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x73, 0x5c, 0x56, 0x32, 0xea, 0x02, |
| 757 |
0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, |
| 758 |
0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, |
| 759 |
0x74, 0x6f, 0x33, |
| 760 |
} |
| 761 |
|
| 762 |
var ( |
| 763 |
file_google_api_apikeys_v2_resources_proto_rawDescOnce sync.Once |
| 764 |
file_google_api_apikeys_v2_resources_proto_rawDescData = file_google_api_apikeys_v2_resources_proto_rawDesc |
| 765 |
) |
| 766 |
|
| 767 |
func file_google_api_apikeys_v2_resources_proto_rawDescGZIP() []byte { |
| 768 |
file_google_api_apikeys_v2_resources_proto_rawDescOnce.Do(func() { |
| 769 |
file_google_api_apikeys_v2_resources_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_apikeys_v2_resources_proto_rawDescData) |
| 770 |
}) |
| 771 |
return file_google_api_apikeys_v2_resources_proto_rawDescData |
| 772 |
} |
| 773 |
|
| 774 |
var file_google_api_apikeys_v2_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 9) |
| 775 |
var file_google_api_apikeys_v2_resources_proto_goTypes = []any{ |
| 776 |
(*Key)(nil), // 0: google.api.apikeys.v2.Key |
| 777 |
(*Restrictions)(nil), // 1: google.api.apikeys.v2.Restrictions |
| 778 |
(*BrowserKeyRestrictions)(nil), // 2: google.api.apikeys.v2.BrowserKeyRestrictions |
| 779 |
(*ServerKeyRestrictions)(nil), // 3: google.api.apikeys.v2.ServerKeyRestrictions |
| 780 |
(*AndroidKeyRestrictions)(nil), // 4: google.api.apikeys.v2.AndroidKeyRestrictions |
| 781 |
(*AndroidApplication)(nil), // 5: google.api.apikeys.v2.AndroidApplication |
| 782 |
(*IosKeyRestrictions)(nil), // 6: google.api.apikeys.v2.IosKeyRestrictions |
| 783 |
(*ApiTarget)(nil), // 7: google.api.apikeys.v2.ApiTarget |
| 784 |
nil, // 8: google.api.apikeys.v2.Key.AnnotationsEntry |
| 785 |
(*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp |
| 786 |
} |
| 787 |
var file_google_api_apikeys_v2_resources_proto_depIdxs = []int32{ |
| 788 |
9, // 0: google.api.apikeys.v2.Key.create_time:type_name -> google.protobuf.Timestamp |
| 789 |
9, // 1: google.api.apikeys.v2.Key.update_time:type_name -> google.protobuf.Timestamp |
| 790 |
9, // 2: google.api.apikeys.v2.Key.delete_time:type_name -> google.protobuf.Timestamp |
| 791 |
8, // 3: google.api.apikeys.v2.Key.annotations:type_name -> google.api.apikeys.v2.Key.AnnotationsEntry |
| 792 |
1, // 4: google.api.apikeys.v2.Key.restrictions:type_name -> google.api.apikeys.v2.Restrictions |
| 793 |
2, // 5: google.api.apikeys.v2.Restrictions.browser_key_restrictions:type_name -> google.api.apikeys.v2.BrowserKeyRestrictions |
| 794 |
3, // 6: google.api.apikeys.v2.Restrictions.server_key_restrictions:type_name -> google.api.apikeys.v2.ServerKeyRestrictions |
| 795 |
4, // 7: google.api.apikeys.v2.Restrictions.android_key_restrictions:type_name -> google.api.apikeys.v2.AndroidKeyRestrictions |
| 796 |
6, // 8: google.api.apikeys.v2.Restrictions.ios_key_restrictions:type_name -> google.api.apikeys.v2.IosKeyRestrictions |
| 797 |
7, // 9: google.api.apikeys.v2.Restrictions.api_targets:type_name -> google.api.apikeys.v2.ApiTarget |
| 798 |
5, // 10: google.api.apikeys.v2.AndroidKeyRestrictions.allowed_applications:type_name -> google.api.apikeys.v2.AndroidApplication |
| 799 |
11, // [11:11] is the sub-list for method output_type |
| 800 |
11, // [11:11] is the sub-list for method input_type |
| 801 |
11, // [11:11] is the sub-list for extension type_name |
| 802 |
11, // [11:11] is the sub-list for extension extendee |
| 803 |
0, // [0:11] is the sub-list for field type_name |
| 804 |
} |
| 805 |
|
| 806 |
func init() { file_google_api_apikeys_v2_resources_proto_init() } |
| 807 |
func file_google_api_apikeys_v2_resources_proto_init() { |
| 808 |
if File_google_api_apikeys_v2_resources_proto != nil { |
| 809 |
return |
| 810 |
} |
| 811 |
file_google_api_apikeys_v2_resources_proto_msgTypes[1].OneofWrappers = []any{ |
| 812 |
(*Restrictions_BrowserKeyRestrictions)(nil), |
| 813 |
(*Restrictions_ServerKeyRestrictions)(nil), |
| 814 |
(*Restrictions_AndroidKeyRestrictions)(nil), |
| 815 |
(*Restrictions_IosKeyRestrictions)(nil), |
| 816 |
} |
| 817 |
type x struct{} |
| 818 |
out := protoimpl.TypeBuilder{ |
| 819 |
File: protoimpl.DescBuilder{ |
| 820 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 821 |
RawDescriptor: file_google_api_apikeys_v2_resources_proto_rawDesc, |
| 822 |
NumEnums: 0, |
| 823 |
NumMessages: 9, |
| 824 |
NumExtensions: 0, |
| 825 |
NumServices: 0, |
| 826 |
}, |
| 827 |
GoTypes: file_google_api_apikeys_v2_resources_proto_goTypes, |
| 828 |
DependencyIndexes: file_google_api_apikeys_v2_resources_proto_depIdxs, |
| 829 |
MessageInfos: file_google_api_apikeys_v2_resources_proto_msgTypes, |
| 830 |
}.Build() |
| 831 |
File_google_api_apikeys_v2_resources_proto = out.File |
| 832 |
file_google_api_apikeys_v2_resources_proto_rawDesc = nil |
| 833 |
file_google_api_apikeys_v2_resources_proto_goTypes = nil |
| 834 |
file_google_api_apikeys_v2_resources_proto_depIdxs = nil |
| 835 |
} |