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