...

Source file src/google.golang.org/genproto/googleapis/api/serviceconfig/backend.pb.go

Documentation: google.golang.org/genproto/googleapis/api/serviceconfig

     1  // Copyright 2024 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        v4.24.4
    19  // source: google/api/backend.proto
    20  
    21  package serviceconfig
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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  // Path Translation specifies how to combine the backend address with the
    39  // request path in order to produce the appropriate forwarding URL for the
    40  // request.
    41  //
    42  // Path Translation is applicable only to HTTP-based backends. Backends which
    43  // do not accept requests over HTTP/HTTPS should leave `path_translation`
    44  // unspecified.
    45  type BackendRule_PathTranslation int32
    46  
    47  const (
    48  	BackendRule_PATH_TRANSLATION_UNSPECIFIED BackendRule_PathTranslation = 0
    49  	// Use the backend address as-is, with no modification to the path. If the
    50  	// URL pattern contains variables, the variable names and values will be
    51  	// appended to the query string. If a query string parameter and a URL
    52  	// pattern variable have the same name, this may result in duplicate keys in
    53  	// the query string.
    54  	//
    55  	// # Examples
    56  	//
    57  	// Given the following operation config:
    58  	//
    59  	//	Method path:        /api/company/{cid}/user/{uid}
    60  	//	Backend address:    https://example.cloudfunctions.net/getUser
    61  	//
    62  	// Requests to the following request paths will call the backend at the
    63  	// translated path:
    64  	//
    65  	//	Request path: /api/company/widgetworks/user/johndoe
    66  	//	Translated:
    67  	//	https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
    68  	//
    69  	//	Request path: /api/company/widgetworks/user/johndoe?timezone=EST
    70  	//	Translated:
    71  	//	https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
    72  	BackendRule_CONSTANT_ADDRESS BackendRule_PathTranslation = 1
    73  	// The request path will be appended to the backend address.
    74  	//
    75  	// # Examples
    76  	//
    77  	// Given the following operation config:
    78  	//
    79  	//	Method path:        /api/company/{cid}/user/{uid}
    80  	//	Backend address:    https://example.appspot.com
    81  	//
    82  	// Requests to the following request paths will call the backend at the
    83  	// translated path:
    84  	//
    85  	//	Request path: /api/company/widgetworks/user/johndoe
    86  	//	Translated:
    87  	//	https://example.appspot.com/api/company/widgetworks/user/johndoe
    88  	//
    89  	//	Request path: /api/company/widgetworks/user/johndoe?timezone=EST
    90  	//	Translated:
    91  	//	https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
    92  	BackendRule_APPEND_PATH_TO_ADDRESS BackendRule_PathTranslation = 2
    93  )
    94  
    95  // Enum value maps for BackendRule_PathTranslation.
    96  var (
    97  	BackendRule_PathTranslation_name = map[int32]string{
    98  		0: "PATH_TRANSLATION_UNSPECIFIED",
    99  		1: "CONSTANT_ADDRESS",
   100  		2: "APPEND_PATH_TO_ADDRESS",
   101  	}
   102  	BackendRule_PathTranslation_value = map[string]int32{
   103  		"PATH_TRANSLATION_UNSPECIFIED": 0,
   104  		"CONSTANT_ADDRESS":             1,
   105  		"APPEND_PATH_TO_ADDRESS":       2,
   106  	}
   107  )
   108  
   109  func (x BackendRule_PathTranslation) Enum() *BackendRule_PathTranslation {
   110  	p := new(BackendRule_PathTranslation)
   111  	*p = x
   112  	return p
   113  }
   114  
   115  func (x BackendRule_PathTranslation) String() string {
   116  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
   117  }
   118  
   119  func (BackendRule_PathTranslation) Descriptor() protoreflect.EnumDescriptor {
   120  	return file_google_api_backend_proto_enumTypes[0].Descriptor()
   121  }
   122  
   123  func (BackendRule_PathTranslation) Type() protoreflect.EnumType {
   124  	return &file_google_api_backend_proto_enumTypes[0]
   125  }
   126  
   127  func (x BackendRule_PathTranslation) Number() protoreflect.EnumNumber {
   128  	return protoreflect.EnumNumber(x)
   129  }
   130  
   131  // Deprecated: Use BackendRule_PathTranslation.Descriptor instead.
   132  func (BackendRule_PathTranslation) EnumDescriptor() ([]byte, []int) {
   133  	return file_google_api_backend_proto_rawDescGZIP(), []int{1, 0}
   134  }
   135  
   136  // `Backend` defines the backend configuration for a service.
   137  type Backend struct {
   138  	state         protoimpl.MessageState
   139  	sizeCache     protoimpl.SizeCache
   140  	unknownFields protoimpl.UnknownFields
   141  
   142  	// A list of API backend rules that apply to individual API methods.
   143  	//
   144  	// **NOTE:** All service configuration rules follow "last one wins" order.
   145  	Rules []*BackendRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
   146  }
   147  
   148  func (x *Backend) Reset() {
   149  	*x = Backend{}
   150  	if protoimpl.UnsafeEnabled {
   151  		mi := &file_google_api_backend_proto_msgTypes[0]
   152  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   153  		ms.StoreMessageInfo(mi)
   154  	}
   155  }
   156  
   157  func (x *Backend) String() string {
   158  	return protoimpl.X.MessageStringOf(x)
   159  }
   160  
   161  func (*Backend) ProtoMessage() {}
   162  
   163  func (x *Backend) ProtoReflect() protoreflect.Message {
   164  	mi := &file_google_api_backend_proto_msgTypes[0]
   165  	if protoimpl.UnsafeEnabled && x != nil {
   166  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   167  		if ms.LoadMessageInfo() == nil {
   168  			ms.StoreMessageInfo(mi)
   169  		}
   170  		return ms
   171  	}
   172  	return mi.MessageOf(x)
   173  }
   174  
   175  // Deprecated: Use Backend.ProtoReflect.Descriptor instead.
   176  func (*Backend) Descriptor() ([]byte, []int) {
   177  	return file_google_api_backend_proto_rawDescGZIP(), []int{0}
   178  }
   179  
   180  func (x *Backend) GetRules() []*BackendRule {
   181  	if x != nil {
   182  		return x.Rules
   183  	}
   184  	return nil
   185  }
   186  
   187  // A backend rule provides configuration for an individual API element.
   188  type BackendRule struct {
   189  	state         protoimpl.MessageState
   190  	sizeCache     protoimpl.SizeCache
   191  	unknownFields protoimpl.UnknownFields
   192  
   193  	// Selects the methods to which this rule applies.
   194  	//
   195  	// Refer to [selector][google.api.DocumentationRule.selector] for syntax
   196  	// details.
   197  	Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
   198  	// The address of the API backend.
   199  	//
   200  	// The scheme is used to determine the backend protocol and security.
   201  	// The following schemes are accepted:
   202  	//
   203  	//	SCHEME        PROTOCOL    SECURITY
   204  	//	http://       HTTP        None
   205  	//	https://      HTTP        TLS
   206  	//	grpc://       gRPC        None
   207  	//	grpcs://      gRPC        TLS
   208  	//
   209  	// It is recommended to explicitly include a scheme. Leaving out the scheme
   210  	// may cause constrasting behaviors across platforms.
   211  	//
   212  	// If the port is unspecified, the default is:
   213  	// - 80 for schemes without TLS
   214  	// - 443 for schemes with TLS
   215  	//
   216  	// For HTTP backends, use [protocol][google.api.BackendRule.protocol]
   217  	// to specify the protocol version.
   218  	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
   219  	// The number of seconds to wait for a response from a request. The default
   220  	// varies based on the request protocol and deployment environment.
   221  	Deadline float64 `protobuf:"fixed64,3,opt,name=deadline,proto3" json:"deadline,omitempty"`
   222  	// Deprecated, do not use.
   223  	//
   224  	// Deprecated: Do not use.
   225  	MinDeadline float64 `protobuf:"fixed64,4,opt,name=min_deadline,json=minDeadline,proto3" json:"min_deadline,omitempty"`
   226  	// The number of seconds to wait for the completion of a long running
   227  	// operation. The default is no deadline.
   228  	OperationDeadline float64                     `protobuf:"fixed64,5,opt,name=operation_deadline,json=operationDeadline,proto3" json:"operation_deadline,omitempty"`
   229  	PathTranslation   BackendRule_PathTranslation `protobuf:"varint,6,opt,name=path_translation,json=pathTranslation,proto3,enum=google.api.BackendRule_PathTranslation" json:"path_translation,omitempty"`
   230  	// Authentication settings used by the backend.
   231  	//
   232  	// These are typically used to provide service management functionality to
   233  	// a backend served on a publicly-routable URL. The `authentication`
   234  	// details should match the authentication behavior used by the backend.
   235  	//
   236  	// For example, specifying `jwt_audience` implies that the backend expects
   237  	// authentication via a JWT.
   238  	//
   239  	// When authentication is unspecified, the resulting behavior is the same
   240  	// as `disable_auth` set to `true`.
   241  	//
   242  	// Refer to https://developers.google.com/identity/protocols/OpenIDConnect for
   243  	// JWT ID token.
   244  	//
   245  	// Types that are assignable to Authentication:
   246  	//
   247  	//	*BackendRule_JwtAudience
   248  	//	*BackendRule_DisableAuth
   249  	Authentication isBackendRule_Authentication `protobuf_oneof:"authentication"`
   250  	// The protocol used for sending a request to the backend.
   251  	// The supported values are "http/1.1" and "h2".
   252  	//
   253  	// The default value is inferred from the scheme in the
   254  	// [address][google.api.BackendRule.address] field:
   255  	//
   256  	//	SCHEME        PROTOCOL
   257  	//	http://       http/1.1
   258  	//	https://      http/1.1
   259  	//	grpc://       h2
   260  	//	grpcs://      h2
   261  	//
   262  	// For secure HTTP backends (https://) that support HTTP/2, set this field
   263  	// to "h2" for improved performance.
   264  	//
   265  	// Configuring this field to non-default values is only supported for secure
   266  	// HTTP backends. This field will be ignored for all other backends.
   267  	//
   268  	// See
   269  	// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
   270  	// for more details on the supported values.
   271  	Protocol string `protobuf:"bytes,9,opt,name=protocol,proto3" json:"protocol,omitempty"`
   272  	// The map between request protocol and the backend address.
   273  	OverridesByRequestProtocol map[string]*BackendRule `protobuf:"bytes,10,rep,name=overrides_by_request_protocol,json=overridesByRequestProtocol,proto3" json:"overrides_by_request_protocol,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   274  }
   275  
   276  func (x *BackendRule) Reset() {
   277  	*x = BackendRule{}
   278  	if protoimpl.UnsafeEnabled {
   279  		mi := &file_google_api_backend_proto_msgTypes[1]
   280  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   281  		ms.StoreMessageInfo(mi)
   282  	}
   283  }
   284  
   285  func (x *BackendRule) String() string {
   286  	return protoimpl.X.MessageStringOf(x)
   287  }
   288  
   289  func (*BackendRule) ProtoMessage() {}
   290  
   291  func (x *BackendRule) ProtoReflect() protoreflect.Message {
   292  	mi := &file_google_api_backend_proto_msgTypes[1]
   293  	if protoimpl.UnsafeEnabled && x != nil {
   294  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   295  		if ms.LoadMessageInfo() == nil {
   296  			ms.StoreMessageInfo(mi)
   297  		}
   298  		return ms
   299  	}
   300  	return mi.MessageOf(x)
   301  }
   302  
   303  // Deprecated: Use BackendRule.ProtoReflect.Descriptor instead.
   304  func (*BackendRule) Descriptor() ([]byte, []int) {
   305  	return file_google_api_backend_proto_rawDescGZIP(), []int{1}
   306  }
   307  
   308  func (x *BackendRule) GetSelector() string {
   309  	if x != nil {
   310  		return x.Selector
   311  	}
   312  	return ""
   313  }
   314  
   315  func (x *BackendRule) GetAddress() string {
   316  	if x != nil {
   317  		return x.Address
   318  	}
   319  	return ""
   320  }
   321  
   322  func (x *BackendRule) GetDeadline() float64 {
   323  	if x != nil {
   324  		return x.Deadline
   325  	}
   326  	return 0
   327  }
   328  
   329  // Deprecated: Do not use.
   330  func (x *BackendRule) GetMinDeadline() float64 {
   331  	if x != nil {
   332  		return x.MinDeadline
   333  	}
   334  	return 0
   335  }
   336  
   337  func (x *BackendRule) GetOperationDeadline() float64 {
   338  	if x != nil {
   339  		return x.OperationDeadline
   340  	}
   341  	return 0
   342  }
   343  
   344  func (x *BackendRule) GetPathTranslation() BackendRule_PathTranslation {
   345  	if x != nil {
   346  		return x.PathTranslation
   347  	}
   348  	return BackendRule_PATH_TRANSLATION_UNSPECIFIED
   349  }
   350  
   351  func (m *BackendRule) GetAuthentication() isBackendRule_Authentication {
   352  	if m != nil {
   353  		return m.Authentication
   354  	}
   355  	return nil
   356  }
   357  
   358  func (x *BackendRule) GetJwtAudience() string {
   359  	if x, ok := x.GetAuthentication().(*BackendRule_JwtAudience); ok {
   360  		return x.JwtAudience
   361  	}
   362  	return ""
   363  }
   364  
   365  func (x *BackendRule) GetDisableAuth() bool {
   366  	if x, ok := x.GetAuthentication().(*BackendRule_DisableAuth); ok {
   367  		return x.DisableAuth
   368  	}
   369  	return false
   370  }
   371  
   372  func (x *BackendRule) GetProtocol() string {
   373  	if x != nil {
   374  		return x.Protocol
   375  	}
   376  	return ""
   377  }
   378  
   379  func (x *BackendRule) GetOverridesByRequestProtocol() map[string]*BackendRule {
   380  	if x != nil {
   381  		return x.OverridesByRequestProtocol
   382  	}
   383  	return nil
   384  }
   385  
   386  type isBackendRule_Authentication interface {
   387  	isBackendRule_Authentication()
   388  }
   389  
   390  type BackendRule_JwtAudience struct {
   391  	// The JWT audience is used when generating a JWT ID token for the backend.
   392  	// This ID token will be added in the HTTP "authorization" header, and sent
   393  	// to the backend.
   394  	JwtAudience string `protobuf:"bytes,7,opt,name=jwt_audience,json=jwtAudience,proto3,oneof"`
   395  }
   396  
   397  type BackendRule_DisableAuth struct {
   398  	// When disable_auth is true, a JWT ID token won't be generated and the
   399  	// original "Authorization" HTTP header will be preserved. If the header is
   400  	// used to carry the original token and is expected by the backend, this
   401  	// field must be set to true to preserve the header.
   402  	DisableAuth bool `protobuf:"varint,8,opt,name=disable_auth,json=disableAuth,proto3,oneof"`
   403  }
   404  
   405  func (*BackendRule_JwtAudience) isBackendRule_Authentication() {}
   406  
   407  func (*BackendRule_DisableAuth) isBackendRule_Authentication() {}
   408  
   409  var File_google_api_backend_proto protoreflect.FileDescriptor
   410  
   411  var file_google_api_backend_proto_rawDesc = []byte{
   412  	0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x63,
   413  	0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67,
   414  	0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x22, 0x38, 0x0a, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e,
   415  	0x64, 0x12, 0x2d, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
   416  	0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61,
   417  	0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73,
   418  	0x22, 0xcc, 0x05, 0x0a, 0x0b, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65,
   419  	0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01,
   420  	0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07,
   421  	0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61,
   422  	0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69,
   423  	0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69,
   424  	0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69,
   425  	0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6d, 0x69,
   426  	0x6e, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x70, 0x65,
   427  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18,
   428  	0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   429  	0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x52, 0x0a, 0x10, 0x70, 0x61, 0x74, 0x68,
   430  	0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01,
   431  	0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
   432  	0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x61, 0x74, 0x68,
   433  	0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x61, 0x74,
   434  	0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0c,
   435  	0x6a, 0x77, 0x74, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01,
   436  	0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6a, 0x77, 0x74, 0x41, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63,
   437  	0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74,
   438  	0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x62,
   439  	0x6c, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
   440  	0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
   441  	0x6f, 0x6c, 0x12, 0x7a, 0x0a, 0x1d, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x5f,
   442  	0x62, 0x79, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   443  	0x63, 0x6f, 0x6c, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   444  	0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x75,
   445  	0x6c, 0x65, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65,
   446  	0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x45, 0x6e, 0x74,
   447  	0x72, 0x79, 0x52, 0x1a, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x42, 0x79, 0x52,
   448  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x66,
   449  	0x0a, 0x1f, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65, 0x71,
   450  	0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x45, 0x6e, 0x74, 0x72,
   451  	0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
   452  	0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
   453  	0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
   454  	0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c,
   455  	0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x65, 0x0a, 0x0f, 0x50, 0x61, 0x74, 0x68, 0x54, 0x72,
   456  	0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x41, 0x54,
   457  	0x48, 0x5f, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e,
   458  	0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x43,
   459  	0x4f, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x10,
   460  	0x01, 0x12, 0x1a, 0x0a, 0x16, 0x41, 0x50, 0x50, 0x45, 0x4e, 0x44, 0x5f, 0x50, 0x41, 0x54, 0x48,
   461  	0x5f, 0x54, 0x4f, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x42, 0x10, 0x0a,
   462  	0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42,
   463  	0x6e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
   464  	0x69, 0x42, 0x0c, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
   465  	0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
   466  	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
   467  	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72,
   468  	0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69,
   469  	0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62,
   470  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   471  }
   472  
   473  var (
   474  	file_google_api_backend_proto_rawDescOnce sync.Once
   475  	file_google_api_backend_proto_rawDescData = file_google_api_backend_proto_rawDesc
   476  )
   477  
   478  func file_google_api_backend_proto_rawDescGZIP() []byte {
   479  	file_google_api_backend_proto_rawDescOnce.Do(func() {
   480  		file_google_api_backend_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_backend_proto_rawDescData)
   481  	})
   482  	return file_google_api_backend_proto_rawDescData
   483  }
   484  
   485  var file_google_api_backend_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   486  var file_google_api_backend_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   487  var file_google_api_backend_proto_goTypes = []interface{}{
   488  	(BackendRule_PathTranslation)(0), // 0: google.api.BackendRule.PathTranslation
   489  	(*Backend)(nil),                  // 1: google.api.Backend
   490  	(*BackendRule)(nil),              // 2: google.api.BackendRule
   491  	nil,                              // 3: google.api.BackendRule.OverridesByRequestProtocolEntry
   492  }
   493  var file_google_api_backend_proto_depIdxs = []int32{
   494  	2, // 0: google.api.Backend.rules:type_name -> google.api.BackendRule
   495  	0, // 1: google.api.BackendRule.path_translation:type_name -> google.api.BackendRule.PathTranslation
   496  	3, // 2: google.api.BackendRule.overrides_by_request_protocol:type_name -> google.api.BackendRule.OverridesByRequestProtocolEntry
   497  	2, // 3: google.api.BackendRule.OverridesByRequestProtocolEntry.value:type_name -> google.api.BackendRule
   498  	4, // [4:4] is the sub-list for method output_type
   499  	4, // [4:4] is the sub-list for method input_type
   500  	4, // [4:4] is the sub-list for extension type_name
   501  	4, // [4:4] is the sub-list for extension extendee
   502  	0, // [0:4] is the sub-list for field type_name
   503  }
   504  
   505  func init() { file_google_api_backend_proto_init() }
   506  func file_google_api_backend_proto_init() {
   507  	if File_google_api_backend_proto != nil {
   508  		return
   509  	}
   510  	if !protoimpl.UnsafeEnabled {
   511  		file_google_api_backend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   512  			switch v := v.(*Backend); i {
   513  			case 0:
   514  				return &v.state
   515  			case 1:
   516  				return &v.sizeCache
   517  			case 2:
   518  				return &v.unknownFields
   519  			default:
   520  				return nil
   521  			}
   522  		}
   523  		file_google_api_backend_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   524  			switch v := v.(*BackendRule); i {
   525  			case 0:
   526  				return &v.state
   527  			case 1:
   528  				return &v.sizeCache
   529  			case 2:
   530  				return &v.unknownFields
   531  			default:
   532  				return nil
   533  			}
   534  		}
   535  	}
   536  	file_google_api_backend_proto_msgTypes[1].OneofWrappers = []interface{}{
   537  		(*BackendRule_JwtAudience)(nil),
   538  		(*BackendRule_DisableAuth)(nil),
   539  	}
   540  	type x struct{}
   541  	out := protoimpl.TypeBuilder{
   542  		File: protoimpl.DescBuilder{
   543  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   544  			RawDescriptor: file_google_api_backend_proto_rawDesc,
   545  			NumEnums:      1,
   546  			NumMessages:   3,
   547  			NumExtensions: 0,
   548  			NumServices:   0,
   549  		},
   550  		GoTypes:           file_google_api_backend_proto_goTypes,
   551  		DependencyIndexes: file_google_api_backend_proto_depIdxs,
   552  		EnumInfos:         file_google_api_backend_proto_enumTypes,
   553  		MessageInfos:      file_google_api_backend_proto_msgTypes,
   554  	}.Build()
   555  	File_google_api_backend_proto = out.File
   556  	file_google_api_backend_proto_rawDesc = nil
   557  	file_google_api_backend_proto_goTypes = nil
   558  	file_google_api_backend_proto_depIdxs = nil
   559  }
   560  

View as plain text