1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 type Endpoint struct {
60 state protoimpl.MessageState
61 sizeCache protoimpl.SizeCache
62 unknownFields protoimpl.UnknownFields
63
64
65 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
66
67
68
69
70
71
72
73
74
75 Aliases []string `protobuf:"bytes,2,rep,name=aliases,proto3" json:"aliases,omitempty"`
76
77
78
79
80
81 Target string `protobuf:"bytes,101,opt,name=target,proto3" json:"target,omitempty"`
82
83
84
85
86
87
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
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
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),
190 }
191 var file_google_api_endpoint_proto_depIdxs = []int32{
192 0,
193 0,
194 0,
195 0,
196 0,
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