Debian Codegraph @

googleapis/api/serviceconfig/endpoint.pb.go

raw
1 // Copyright 2026 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 // Aliases for this endpoint, these will be served by the same UrlMap as the
67 // parent endpoint, and will be provisioned in the GCP stack for the Regional
68 // Endpoints.
69 Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
70 // The specification of an Internet routable address of API frontend that will
71 // handle requests to this [API
72 // Endpoint](https://cloud.google.com/apis/design/glossary). It should be
73 // either a valid IPv4 address or a fully-qualified domain name. For example,
74 // "8.8.8.8" or "myservice.appspot.com".
75 Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
76 // Allowing
77 // [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
78 // cross-domain traffic, would allow the backends served from this endpoint to
79 // receive and respond to HTTP OPTIONS requests. The response will be used by
80 // the browser to determine whether the subsequent cross-origin request is
81 // allowed to proceed.
82 AllowCors bool `protobuf:"varint,5,opt,name=allow_cors,json=allowCors,proto3" json:"allow_cors,omitempty"`
83 }
84
85 func (x *Endpoint) Reset() {
86 *x = Endpoint{}
87 if protoimpl.UnsafeEnabled {
88 mi := &file_google_api_endpoint_proto_msgTypes[0]
89 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
90 ms.StoreMessageInfo(mi)
91 }
92 }
93
94 func (x *Endpoint) String() string {
95 return protoimpl.X.MessageStringOf(x)
96 }
97
98 func (*Endpoint) ProtoMessage() {}
99
100 func (x *Endpoint) ProtoReflect() protoreflect.Message {
101 mi := &file_google_api_endpoint_proto_msgTypes[0]
102 if protoimpl.UnsafeEnabled && x != nil {
103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104 if ms.LoadMessageInfo() == nil {
105 ms.StoreMessageInfo(mi)
106 }
107 return ms
108 }
109 return mi.MessageOf(x)
110 }
111
112 // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
113 func (*Endpoint) Descriptor() ([]byte, []int) {
114 return file_google_api_endpoint_proto_rawDescGZIP(), []int{0}
115 }
116
117 func (x *Endpoint) GetName() string {
118 if x != nil {
119 return x.Name
120 }
121 return ""
122 }
123
124 func (x *Endpoint) GetAliases() []string {
125 if x != nil {
126 return x.Aliases
127 }
128 return nil
129 }
130
131 func (x *Endpoint) GetTarget() string {
132 if x != nil {
133 return x.Target
134 }
135 return ""
136 }
137
138 func (x *Endpoint) GetAllowCors() bool {
139 if x != nil {
140 return x.AllowCors
141 }
142 return false
143 }
144
145 var File_google_api_endpoint_proto protoreflect.FileDescriptor
146
147 var file_google_api_endpoint_proto_rawDesc = []byte{
148 0x0a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 0x64,
149 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f,
150 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x22, 0x6f, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f,
151 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
152 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73,
153 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65,
154 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28,
155 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x6c, 0x6c,
156 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61,
157 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x72, 0x73, 0x42, 0x6f, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e,
158 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0d, 0x45, 0x6e, 0x64, 0x70,
159 0x6f, 0x69, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f,
160 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67,
161 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
162 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f,
163 0x6e, 0x66, 0x69, 0x67, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66,
164 0x69, 0x67, 0xa2, 0x02, 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
165 0x33,
166 }
167
168 var (
169 file_google_api_endpoint_proto_rawDescOnce sync.Once
170 file_google_api_endpoint_proto_rawDescData = file_google_api_endpoint_proto_rawDesc
171 )
172
173 func file_google_api_endpoint_proto_rawDescGZIP() []byte {
174 file_google_api_endpoint_proto_rawDescOnce.Do(func() {
175 file_google_api_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_endpoint_proto_rawDescData)
176 })
177 return file_google_api_endpoint_proto_rawDescData
178 }
179
180 var file_google_api_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
181 var file_google_api_endpoint_proto_goTypes = []interface{}{
182 (*Endpoint)(nil), // 0: google.api.Endpoint
183 }
184 var file_google_api_endpoint_proto_depIdxs = []int32{
185 0, // [0:0] is the sub-list for method output_type
186 0, // [0:0] is the sub-list for method input_type
187 0, // [0:0] is the sub-list for extension type_name
188 0, // [0:0] is the sub-list for extension extendee
189 0, // [0:0] is the sub-list for field type_name
190 }
191
192 func init() { file_google_api_endpoint_proto_init() }
193 func file_google_api_endpoint_proto_init() {
194 if File_google_api_endpoint_proto != nil {
195 return
196 }
197 if !protoimpl.UnsafeEnabled {
198 file_google_api_endpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
199 switch v := v.(*Endpoint); i {
200 case 0:
201 return &v.state
202 case 1:
203 return &v.sizeCache
204 case 2:
205 return &v.unknownFields
206 default:
207 return nil
208 }
209 }
210 }
211 type x struct{}
212 out := protoimpl.TypeBuilder{
213 File: protoimpl.DescBuilder{
214 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
215 RawDescriptor: file_google_api_endpoint_proto_rawDesc,
216 NumEnums: 0,
217 NumMessages: 1,
218 NumExtensions: 0,
219 NumServices: 0,
220 },
221 GoTypes: file_google_api_endpoint_proto_goTypes,
222 DependencyIndexes: file_google_api_endpoint_proto_depIdxs,
223 MessageInfos: file_google_api_endpoint_proto_msgTypes,
224 }.Build()
225 File_google_api_endpoint_proto = out.File
226 file_google_api_endpoint_proto_rawDesc = nil
227 file_google_api_endpoint_proto_goTypes = nil
228 file_google_api_endpoint_proto_depIdxs = nil
229 }