...

Source file src/google.golang.org/genproto/googleapis/api/serviceconfig/endpoint.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/endpoint.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  // `Endpoint` describes a network address of a service that serves a set of
    39  // APIs. It is commonly known as a service endpoint. A service may expose
    40  // any number of service endpoints, and all service endpoints share the same
    41  // service definition, such as quota limits and monitoring metrics.
    42  //
    43  // Example:
    44  //
    45  //	type: google.api.Service
    46  //	name: library-example.googleapis.com
    47  //	endpoints:
    48  //	  # Declares network address `https://library-example.googleapis.com`
    49  //	  # for service `library-example.googleapis.com`. The `https` scheme
    50  //	  # is implicit for all service endpoints. Other schemes may be
    51  //	  # supported in the future.
    52  //	- name: library-example.googleapis.com
    53  //	  allow_cors: false
    54  //	- name: content-staging-library-example.googleapis.com
    55  //	  # Allows HTTP OPTIONS calls to be passed to the API frontend, for it
    56  //	  # to decide whether the subsequent cross-origin request is allowed
    57  //	  # to proceed.
    58  //	  allow_cors: true
    59  type Endpoint struct {
    60  	state         protoimpl.MessageState
    61  	sizeCache     protoimpl.SizeCache
    62  	unknownFields protoimpl.UnknownFields
    63  
    64  	// The canonical name of this endpoint.
    65  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    66  	// Unimplemented. Dot not use.
    67  	//
    68  	// DEPRECATED: This field is no longer supported. Instead of using aliases,
    69  	// please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
    70  	// of the intended aliases.
    71  	//
    72  	// Additional names that this endpoint will be hosted on.
    73  	//
    74  	// Deprecated: Do not use.
    75  	Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
    76  	// The specification of an Internet routable address of API frontend that will
    77  	// handle requests to this [API
    78  	// Endpoint](https://cloud.google.com/apis/design/glossary). It should be
    79  	// either a valid IPv4 address or a fully-qualified domain name. For example,
    80  	// "8.8.8.8" or "myservice.appspot.com".
    81  	Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
    82  	// Allowing
    83  	// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
    84  	// cross-domain traffic, would allow the backends served from this endpoint to
    85  	// receive and respond to HTTP OPTIONS requests. The response will be used by
    86  	// the browser to determine whether the subsequent cross-origin request is
    87  	// allowed to proceed.
    88  	AllowCors bool `protobuf:"varint,5,opt,name=allow_cors,json=allowCors,proto3" json:"allow_cors,omitempty"`
    89  }
    90  
    91  func (x *Endpoint) Reset() {
    92  	*x = Endpoint{}
    93  	if protoimpl.UnsafeEnabled {
    94  		mi := &file_google_api_endpoint_proto_msgTypes[0]
    95  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    96  		ms.StoreMessageInfo(mi)
    97  	}
    98  }
    99  
   100  func (x *Endpoint) String() string {
   101  	return protoimpl.X.MessageStringOf(x)
   102  }
   103  
   104  func (*Endpoint) ProtoMessage() {}
   105  
   106  func (x *Endpoint) ProtoReflect() protoreflect.Message {
   107  	mi := &file_google_api_endpoint_proto_msgTypes[0]
   108  	if protoimpl.UnsafeEnabled && x != nil {
   109  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   110  		if ms.LoadMessageInfo() == nil {
   111  			ms.StoreMessageInfo(mi)
   112  		}
   113  		return ms
   114  	}
   115  	return mi.MessageOf(x)
   116  }
   117  
   118  // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
   119  func (*Endpoint) Descriptor() ([]byte, []int) {
   120  	return file_google_api_endpoint_proto_rawDescGZIP(), []int{0}
   121  }
   122  
   123  func (x *Endpoint) GetName() string {
   124  	if x != nil {
   125  		return x.Name
   126  	}
   127  	return ""
   128  }
   129  
   130  // Deprecated: Do not use.
   131  func (x *Endpoint) GetAliases() []string {
   132  	if x != nil {
   133  		return x.Aliases
   134  	}
   135  	return nil
   136  }
   137  
   138  func (x *Endpoint) GetTarget() string {
   139  	if x != nil {
   140  		return x.Target
   141  	}
   142  	return ""
   143  }
   144  
   145  func (x *Endpoint) GetAllowCors() bool {
   146  	if x != nil {
   147  		return x.AllowCors
   148  	}
   149  	return false
   150  }
   151  
   152  var File_google_api_endpoint_proto protoreflect.FileDescriptor
   153  
   154  var file_google_api_endpoint_proto_rawDesc = []byte{
   155  	0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64,
   156  	0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f,
   157  	0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x22, 0x73, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f,
   158  	0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   159  	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73,
   160  	0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x61, 0x6c,
   161  	0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18,
   162  	0x65, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1d, 0x0a,
   163  	0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
   164  	0x08, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x72, 0x73, 0x42, 0x6f, 0x0a, 0x0e,
   165  	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0d,
   166  	0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
   167  	0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   168  	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
   169  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
   170  	0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   171  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70,
   172  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   173  }
   174  
   175  var (
   176  	file_google_api_endpoint_proto_rawDescOnce sync.Once
   177  	file_google_api_endpoint_proto_rawDescData = file_google_api_endpoint_proto_rawDesc
   178  )
   179  
   180  func file_google_api_endpoint_proto_rawDescGZIP() []byte {
   181  	file_google_api_endpoint_proto_rawDescOnce.Do(func() {
   182  		file_google_api_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_endpoint_proto_rawDescData)
   183  	})
   184  	return file_google_api_endpoint_proto_rawDescData
   185  }
   186  
   187  var file_google_api_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   188  var file_google_api_endpoint_proto_goTypes = []interface{}{
   189  	(*Endpoint)(nil), // 0: google.api.Endpoint
   190  }
   191  var file_google_api_endpoint_proto_depIdxs = []int32{
   192  	0, // [0:0] is the sub-list for method output_type
   193  	0, // [0:0] is the sub-list for method input_type
   194  	0, // [0:0] is the sub-list for extension type_name
   195  	0, // [0:0] is the sub-list for extension extendee
   196  	0, // [0:0] is the sub-list for field type_name
   197  }
   198  
   199  func init() { file_google_api_endpoint_proto_init() }
   200  func file_google_api_endpoint_proto_init() {
   201  	if File_google_api_endpoint_proto != nil {
   202  		return
   203  	}
   204  	if !protoimpl.UnsafeEnabled {
   205  		file_google_api_endpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   206  			switch v := v.(*Endpoint); i {
   207  			case 0:
   208  				return &v.state
   209  			case 1:
   210  				return &v.sizeCache
   211  			case 2:
   212  				return &v.unknownFields
   213  			default:
   214  				return nil
   215  			}
   216  		}
   217  	}
   218  	type x struct{}
   219  	out := protoimpl.TypeBuilder{
   220  		File: protoimpl.DescBuilder{
   221  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   222  			RawDescriptor: file_google_api_endpoint_proto_rawDesc,
   223  			NumEnums:      0,
   224  			NumMessages:   1,
   225  			NumExtensions: 0,
   226  			NumServices:   0,
   227  		},
   228  		GoTypes:           file_google_api_endpoint_proto_goTypes,
   229  		DependencyIndexes: file_google_api_endpoint_proto_depIdxs,
   230  		MessageInfos:      file_google_api_endpoint_proto_msgTypes,
   231  	}.Build()
   232  	File_google_api_endpoint_proto = out.File
   233  	file_google_api_endpoint_proto_rawDesc = nil
   234  	file_google_api_endpoint_proto_goTypes = nil
   235  	file_google_api_endpoint_proto_depIdxs = nil
   236  }
   237  

View as plain text