github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/api/v2/core/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/api/v2/core/http_uri.proto
     6  
     7  package envoy_api_v2_core
     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_api_v2_core_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_api_v2_core_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_api_v2_core_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_api_v2_core_http_uri_proto protoreflect.FileDescriptor
   138  
   139  var file_envoy_api_v2_core_http_uri_proto_rawDesc = []byte{
   140  	0x0a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x63,
   141  	0x6f, 0x72, 0x65, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x75, 0x72, 0x69, 0x2e, 0x70, 0x72, 0x6f,
   142  	0x74, 0x6f, 0x12, 0x11, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32,
   143  	0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
   144  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
   145  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
   146  	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x2e,
   147  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
   148  	0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70,
   149  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76,
   150  	0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01,
   151  	0x0a, 0x07, 0x48, 0x74, 0x74, 0x70, 0x55, 0x72, 0x69, 0x12, 0x19, 0x0a, 0x03, 0x75, 0x72, 0x69,
   152  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52,
   153  	0x03, 0x75, 0x72, 0x69, 0x12, 0x23, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18,
   154  	0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x48, 0x00,
   155  	0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x07, 0x74, 0x69, 0x6d,
   156  	0x65, 0x6f, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
   157  	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
   158  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0xaa, 0x01, 0x04, 0x08, 0x01, 0x32,
   159  	0x00, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x19, 0x0a, 0x12, 0x68, 0x74,
   160  	0x74, 0x70, 0x5f, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65,
   161  	0x12, 0x03, 0xf8, 0x42, 0x01, 0x42, 0x55, 0x0a, 0x1f, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f,
   162  	0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69,
   163  	0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x48, 0x74, 0x74, 0x70, 0x55, 0x72,
   164  	0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x16, 0x12, 0x14,
   165  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72,
   166  	0x65, 0x2e, 0x76, 0x33, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x62, 0x06, 0x70, 0x72,
   167  	0x6f, 0x74, 0x6f, 0x33,
   168  }
   169  
   170  var (
   171  	file_envoy_api_v2_core_http_uri_proto_rawDescOnce sync.Once
   172  	file_envoy_api_v2_core_http_uri_proto_rawDescData = file_envoy_api_v2_core_http_uri_proto_rawDesc
   173  )
   174  
   175  func file_envoy_api_v2_core_http_uri_proto_rawDescGZIP() []byte {
   176  	file_envoy_api_v2_core_http_uri_proto_rawDescOnce.Do(func() {
   177  		file_envoy_api_v2_core_http_uri_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_api_v2_core_http_uri_proto_rawDescData)
   178  	})
   179  	return file_envoy_api_v2_core_http_uri_proto_rawDescData
   180  }
   181  
   182  var file_envoy_api_v2_core_http_uri_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   183  var file_envoy_api_v2_core_http_uri_proto_goTypes = []interface{}{
   184  	(*HttpUri)(nil),           // 0: envoy.api.v2.core.HttpUri
   185  	(*duration.Duration)(nil), // 1: google.protobuf.Duration
   186  }
   187  var file_envoy_api_v2_core_http_uri_proto_depIdxs = []int32{
   188  	1, // 0: envoy.api.v2.core.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_api_v2_core_http_uri_proto_init() }
   197  func file_envoy_api_v2_core_http_uri_proto_init() {
   198  	if File_envoy_api_v2_core_http_uri_proto != nil {
   199  		return
   200  	}
   201  	if !protoimpl.UnsafeEnabled {
   202  		file_envoy_api_v2_core_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_api_v2_core_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_api_v2_core_http_uri_proto_rawDesc,
   223  			NumEnums:      0,
   224  			NumMessages:   1,
   225  			NumExtensions: 0,
   226  			NumServices:   0,
   227  		},
   228  		GoTypes:           file_envoy_api_v2_core_http_uri_proto_goTypes,
   229  		DependencyIndexes: file_envoy_api_v2_core_http_uri_proto_depIdxs,
   230  		MessageInfos:      file_envoy_api_v2_core_http_uri_proto_msgTypes,
   231  	}.Build()
   232  	File_envoy_api_v2_core_http_uri_proto = out.File
   233  	file_envoy_api_v2_core_http_uri_proto_rawDesc = nil
   234  	file_envoy_api_v2_core_http_uri_proto_goTypes = nil
   235  	file_envoy_api_v2_core_http_uri_proto_depIdxs = nil
   236  }