Debian Codegraph @

envoy/config/core/v3/http_uri.pb.go

raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.30.0
4 // protoc v5.29.1
5 // source: envoy/config/core/v3/http_uri.proto
6
7 package corev3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 _ "github.com/envoyproxy/protoc-gen-validate/validate"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 durationpb "google.golang.org/protobuf/types/known/durationpb"
15 reflect "reflect"
16 sync "sync"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 // Envoy external URI descriptor
27 type HttpUri struct {
28 state protoimpl.MessageState
29 sizeCache protoimpl.SizeCache
30 unknownFields protoimpl.UnknownFields
31
32 // The HTTP server URI. It should be a full FQDN with protocol, host and path.
33 //
34 // Example:
35 //
36 // .. code-block:: yaml
37 //
38 // uri: https://www.googleapis.com/oauth2/v1/certs
39 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
40 // Specify how “uri“ is to be fetched. Today, this requires an explicit
41 // cluster, but in the future we may support dynamic cluster creation or
42 // inline DNS resolution. See `issue
43 // <https://github.com/envoyproxy/envoy/issues/1606>`_.
44 //
45 // Types that are assignable to HttpUpstreamType:
46 //
47 // *HttpUri_Cluster
48 HttpUpstreamType isHttpUri_HttpUpstreamType `protobuf_oneof:"http_upstream_type"`
49 // Sets the maximum duration in milliseconds that a response can take to arrive upon request.
50 Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
51 }
52
53 func (x *HttpUri) Reset() {
54 *x = HttpUri{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_envoy_config_core_v3_http_uri_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *HttpUri) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*HttpUri) ProtoMessage() {}
67
68 func (x *HttpUri) ProtoReflect() protoreflect.Message {
69 mi := &file_envoy_config_core_v3_http_uri_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use HttpUri.ProtoReflect.Descriptor instead.
81 func (*HttpUri) Descriptor() ([]byte, []int) {
82 return file_envoy_config_core_v3_http_uri_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *HttpUri) GetUri() string {
86 if x != nil {
87 return x.Uri
88 }
89 return ""
90 }
91
92 func (m *HttpUri) GetHttpUpstreamType() isHttpUri_HttpUpstreamType {
93 if m != nil {
94 return m.HttpUpstreamType
95 }
96 return nil
97 }
98
99 func (x *HttpUri) GetCluster() string {
100 if x, ok := x.GetHttpUpstreamType().(*HttpUri_Cluster); ok {
101 return x.Cluster
102 }
103 return ""
104 }
105
106 func (x *HttpUri) GetTimeout() *durationpb.Duration {
107 if x != nil {
108 return x.Timeout
109 }
110 return nil
111 }
112
113 type isHttpUri_HttpUpstreamType interface {
114 isHttpUri_HttpUpstreamType()
115 }
116
117 type HttpUri_Cluster struct {
118 // A cluster is created in the Envoy "cluster_manager" config
119 // section. This field specifies the cluster name.
120 //
121 // Example:
122 //
123 // .. code-block:: yaml
124 //
125 // cluster: jwks_cluster
126 Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3,oneof"`
127 }
128
129 func (*HttpUri_Cluster) isHttpUri_HttpUpstreamType() {}
130
131 var File_envoy_config_core_v3_http_uri_proto protoreflect.FileDescriptor
132
133 var file_envoy_config_core_v3_http_uri_proto_rawDesc = []byte{
134 0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63,
135 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x75, 0x72, 0x69, 0x2e,
136 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e,
137 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x1a, 0x1e, 0x67, 0x6f, 0x6f,
138 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72,
139 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70,
140 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74,
141 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61,
142 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72,
143 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76,
144 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65,
145 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcf, 0x01, 0x0a, 0x07, 0x48, 0x74, 0x74, 0x70, 0x55,
146 0x72, 0x69, 0x12, 0x19, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
147 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x23, 0x0a,
148 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07,
149 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74,
150 0x65, 0x72, 0x12, 0x47, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20,
151 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
152 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12,
153 0xfa, 0x42, 0x0f, 0xaa, 0x01, 0x0c, 0x08, 0x01, 0x1a, 0x06, 0x08, 0x80, 0x80, 0x80, 0x80, 0x10,
154 0x32, 0x00, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x3a, 0x20, 0x9a, 0xc5, 0x88,
155 0x1e, 0x1b, 0x0a, 0x19, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32,
156 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x55, 0x72, 0x69, 0x42, 0x19, 0x0a,
157 0x12, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x74,
158 0x79, 0x70, 0x65, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x80, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06,
159 0x02, 0x10, 0x02, 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f,
160 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
161 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x48, 0x74, 0x74, 0x70, 0x55, 0x72, 0x69,
162 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
163 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67,
164 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f,
165 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72,
166 0x65, 0x2f, 0x76, 0x33, 0x3b, 0x63, 0x6f, 0x72, 0x65, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f,
167 0x74, 0x6f, 0x33,
168 }
169
170 var (
171 file_envoy_config_core_v3_http_uri_proto_rawDescOnce sync.Once
172 file_envoy_config_core_v3_http_uri_proto_rawDescData = file_envoy_config_core_v3_http_uri_proto_rawDesc
173 )
174
175 func file_envoy_config_core_v3_http_uri_proto_rawDescGZIP() []byte {
176 file_envoy_config_core_v3_http_uri_proto_rawDescOnce.Do(func() {
177 file_envoy_config_core_v3_http_uri_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_core_v3_http_uri_proto_rawDescData)
178 })
179 return file_envoy_config_core_v3_http_uri_proto_rawDescData
180 }
181
182 var file_envoy_config_core_v3_http_uri_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
183 var file_envoy_config_core_v3_http_uri_proto_goTypes = []interface{}{
184 (*HttpUri)(nil), // 0: envoy.config.core.v3.HttpUri
185 (*durationpb.Duration)(nil), // 1: google.protobuf.Duration
186 }
187 var file_envoy_config_core_v3_http_uri_proto_depIdxs = []int32{
188 1, // 0: envoy.config.core.v3.HttpUri.timeout:type_name -> google.protobuf.Duration
189 1, // [1:1] is the sub-list for method output_type
190 1, // [1:1] is the sub-list for method input_type
191 1, // [1:1] is the sub-list for extension type_name
192 1, // [1:1] is the sub-list for extension extendee
193 0, // [0:1] is the sub-list for field type_name
194 }
195
196 func init() { file_envoy_config_core_v3_http_uri_proto_init() }
197 func file_envoy_config_core_v3_http_uri_proto_init() {
198 if File_envoy_config_core_v3_http_uri_proto != nil {
199 return
200 }
201 if !protoimpl.UnsafeEnabled {
202 file_envoy_config_core_v3_http_uri_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
203 switch v := v.(*HttpUri); i {
204 case 0:
205 return &v.state
206 case 1:
207 return &v.sizeCache
208 case 2:
209 return &v.unknownFields
210 default:
211 return nil
212 }
213 }
214 }
215 file_envoy_config_core_v3_http_uri_proto_msgTypes[0].OneofWrappers = []interface{}{
216 (*HttpUri_Cluster)(nil),
217 }
218 type x struct{}
219 out := protoimpl.TypeBuilder{
220 File: protoimpl.DescBuilder{
221 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
222 RawDescriptor: file_envoy_config_core_v3_http_uri_proto_rawDesc,
223 NumEnums: 0,
224 NumMessages: 1,
225 NumExtensions: 0,
226 NumServices: 0,
227 },
228 GoTypes: file_envoy_config_core_v3_http_uri_proto_goTypes,
229 DependencyIndexes: file_envoy_config_core_v3_http_uri_proto_depIdxs,
230 MessageInfos: file_envoy_config_core_v3_http_uri_proto_msgTypes,
231 }.Build()
232 File_envoy_config_core_v3_http_uri_proto = out.File
233 file_envoy_config_core_v3_http_uri_proto_rawDesc = nil
234 file_envoy_config_core_v3_http_uri_proto_goTypes = nil
235 file_envoy_config_core_v3_http_uri_proto_depIdxs = nil
236 }