github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-control-plane/envoy/service/endpoint/v3/eds.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/service/endpoint/v3/eds.proto
     6  
     7  package envoy_service_endpoint_v3
     8  
     9  import (
    10  	context "context"
    11  	_ "github.com/cncf/xds/go/udpa/annotations"
    12  	_ "github.com/hxx258456/ccgo/go-control-plane/envoy/annotations"
    13  	v3 "github.com/hxx258456/ccgo/go-control-plane/envoy/service/discovery/v3"
    14  	proto "github.com/golang/protobuf/proto"
    15  	_ "google.golang.org/genproto/googleapis/api/annotations"
    16  	grpc "github.com/hxx258456/ccgo/grpc"
    17  	codes "github.com/hxx258456/ccgo/grpc/codes"
    18  	status "github.com/hxx258456/ccgo/grpc/status"
    19  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    20  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    21  	reflect "reflect"
    22  	sync "sync"
    23  )
    24  
    25  const (
    26  	// Verify that this generated code is sufficiently up-to-date.
    27  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    28  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    29  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    30  )
    31  
    32  // This is a compile-time assertion that a sufficiently up-to-date version
    33  // of the legacy proto package is being used.
    34  const _ = proto.ProtoPackageIsVersion4
    35  
    36  // [#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing
    37  // services: https://github.com/google/protobuf/issues/4221 and protoxform to upgrade the file.
    38  type EdsDummy struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  }
    43  
    44  func (x *EdsDummy) Reset() {
    45  	*x = EdsDummy{}
    46  	if protoimpl.UnsafeEnabled {
    47  		mi := &file_envoy_service_endpoint_v3_eds_proto_msgTypes[0]
    48  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  		ms.StoreMessageInfo(mi)
    50  	}
    51  }
    52  
    53  func (x *EdsDummy) String() string {
    54  	return protoimpl.X.MessageStringOf(x)
    55  }
    56  
    57  func (*EdsDummy) ProtoMessage() {}
    58  
    59  func (x *EdsDummy) ProtoReflect() protoreflect.Message {
    60  	mi := &file_envoy_service_endpoint_v3_eds_proto_msgTypes[0]
    61  	if protoimpl.UnsafeEnabled && x != nil {
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		if ms.LoadMessageInfo() == nil {
    64  			ms.StoreMessageInfo(mi)
    65  		}
    66  		return ms
    67  	}
    68  	return mi.MessageOf(x)
    69  }
    70  
    71  // Deprecated: Use EdsDummy.ProtoReflect.Descriptor instead.
    72  func (*EdsDummy) Descriptor() ([]byte, []int) {
    73  	return file_envoy_service_endpoint_v3_eds_proto_rawDescGZIP(), []int{0}
    74  }
    75  
    76  var File_envoy_service_endpoint_v3_eds_proto protoreflect.FileDescriptor
    77  
    78  var file_envoy_service_endpoint_v3_eds_proto_rawDesc = []byte{
    79  	0x0a, 0x23, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
    80  	0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x64, 0x73, 0x2e,
    81  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72,
    82  	0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33,
    83  	0x1a, 0x2a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
    84  	0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x33, 0x2f, 0x64, 0x69, 0x73,
    85  	0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f,
    86  	0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
    87  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x65, 0x6e, 0x76, 0x6f,
    88  	0x79, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65,
    89  	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64,
    90  	0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
    91  	0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70,
    92  	0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65,
    93  	0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28,
    94  	0x0a, 0x08, 0x45, 0x64, 0x73, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x3a, 0x1c, 0x9a, 0xc5, 0x88, 0x1e,
    95  	0x17, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e,
    96  	0x45, 0x64, 0x73, 0x44, 0x75, 0x6d, 0x6d, 0x79, 0x32, 0xe1, 0x03, 0x0a, 0x18, 0x45, 0x6e, 0x64,
    97  	0x70, 0x6f, 0x69, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x53, 0x65,
    98  	0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45,
    99  	0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79,
   100  	0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65,
   101  	0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52,
   102  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73,
   103  	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79,
   104  	0x2e, 0x76, 0x33, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73,
   105  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x7d, 0x0a, 0x0e, 0x44,
   106  	0x65, 0x6c, 0x74, 0x61, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x31, 0x2e,
   107  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69,
   108  	0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65, 0x6c, 0x74, 0x61,
   109  	0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   110  	0x1a, 0x32, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
   111  	0x2e, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65,
   112  	0x6c, 0x74, 0x61, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
   113  	0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x97, 0x01, 0x0a, 0x0e, 0x46,
   114  	0x65, 0x74, 0x63, 0x68, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2c, 0x2e,
   115  	0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69,
   116  	0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f,
   117  	0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6e,
   118  	0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x64, 0x69, 0x73, 0x63,
   119  	0x6f, 0x76, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65,
   120  	0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93,
   121  	0x02, 0x19, 0x22, 0x17, 0x2f, 0x76, 0x33, 0x2f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72,
   122  	0x79, 0x3a, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x82, 0xd3, 0xe4, 0x93, 0x02,
   123  	0x03, 0x3a, 0x01, 0x2a, 0x1a, 0x36, 0x8a, 0xa4, 0x96, 0xf3, 0x07, 0x30, 0x0a, 0x2e, 0x65, 0x6e,
   124  	0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f,
   125  	0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x6f,
   126  	0x61, 0x64, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x40, 0x0a, 0x27,
   127  	0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e,
   128  	0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x65, 0x6e, 0x64, 0x70,
   129  	0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x33, 0x42, 0x08, 0x45, 0x64, 0x73, 0x50, 0x72, 0x6f, 0x74,
   130  	0x6f, 0x50, 0x01, 0x88, 0x01, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x62, 0x06,
   131  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   132  }
   133  
   134  var (
   135  	file_envoy_service_endpoint_v3_eds_proto_rawDescOnce sync.Once
   136  	file_envoy_service_endpoint_v3_eds_proto_rawDescData = file_envoy_service_endpoint_v3_eds_proto_rawDesc
   137  )
   138  
   139  func file_envoy_service_endpoint_v3_eds_proto_rawDescGZIP() []byte {
   140  	file_envoy_service_endpoint_v3_eds_proto_rawDescOnce.Do(func() {
   141  		file_envoy_service_endpoint_v3_eds_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_endpoint_v3_eds_proto_rawDescData)
   142  	})
   143  	return file_envoy_service_endpoint_v3_eds_proto_rawDescData
   144  }
   145  
   146  var file_envoy_service_endpoint_v3_eds_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   147  var file_envoy_service_endpoint_v3_eds_proto_goTypes = []interface{}{
   148  	(*EdsDummy)(nil),                  // 0: envoy.service.endpoint.v3.EdsDummy
   149  	(*v3.DiscoveryRequest)(nil),       // 1: envoy.service.discovery.v3.DiscoveryRequest
   150  	(*v3.DeltaDiscoveryRequest)(nil),  // 2: envoy.service.discovery.v3.DeltaDiscoveryRequest
   151  	(*v3.DiscoveryResponse)(nil),      // 3: envoy.service.discovery.v3.DiscoveryResponse
   152  	(*v3.DeltaDiscoveryResponse)(nil), // 4: envoy.service.discovery.v3.DeltaDiscoveryResponse
   153  }
   154  var file_envoy_service_endpoint_v3_eds_proto_depIdxs = []int32{
   155  	1, // 0: envoy.service.endpoint.v3.EndpointDiscoveryService.StreamEndpoints:input_type -> envoy.service.discovery.v3.DiscoveryRequest
   156  	2, // 1: envoy.service.endpoint.v3.EndpointDiscoveryService.DeltaEndpoints:input_type -> envoy.service.discovery.v3.DeltaDiscoveryRequest
   157  	1, // 2: envoy.service.endpoint.v3.EndpointDiscoveryService.FetchEndpoints:input_type -> envoy.service.discovery.v3.DiscoveryRequest
   158  	3, // 3: envoy.service.endpoint.v3.EndpointDiscoveryService.StreamEndpoints:output_type -> envoy.service.discovery.v3.DiscoveryResponse
   159  	4, // 4: envoy.service.endpoint.v3.EndpointDiscoveryService.DeltaEndpoints:output_type -> envoy.service.discovery.v3.DeltaDiscoveryResponse
   160  	3, // 5: envoy.service.endpoint.v3.EndpointDiscoveryService.FetchEndpoints:output_type -> envoy.service.discovery.v3.DiscoveryResponse
   161  	3, // [3:6] is the sub-list for method output_type
   162  	0, // [0:3] is the sub-list for method input_type
   163  	0, // [0:0] is the sub-list for extension type_name
   164  	0, // [0:0] is the sub-list for extension extendee
   165  	0, // [0:0] is the sub-list for field type_name
   166  }
   167  
   168  func init() { file_envoy_service_endpoint_v3_eds_proto_init() }
   169  func file_envoy_service_endpoint_v3_eds_proto_init() {
   170  	if File_envoy_service_endpoint_v3_eds_proto != nil {
   171  		return
   172  	}
   173  	if !protoimpl.UnsafeEnabled {
   174  		file_envoy_service_endpoint_v3_eds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   175  			switch v := v.(*EdsDummy); i {
   176  			case 0:
   177  				return &v.state
   178  			case 1:
   179  				return &v.sizeCache
   180  			case 2:
   181  				return &v.unknownFields
   182  			default:
   183  				return nil
   184  			}
   185  		}
   186  	}
   187  	type x struct{}
   188  	out := protoimpl.TypeBuilder{
   189  		File: protoimpl.DescBuilder{
   190  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   191  			RawDescriptor: file_envoy_service_endpoint_v3_eds_proto_rawDesc,
   192  			NumEnums:      0,
   193  			NumMessages:   1,
   194  			NumExtensions: 0,
   195  			NumServices:   1,
   196  		},
   197  		GoTypes:           file_envoy_service_endpoint_v3_eds_proto_goTypes,
   198  		DependencyIndexes: file_envoy_service_endpoint_v3_eds_proto_depIdxs,
   199  		MessageInfos:      file_envoy_service_endpoint_v3_eds_proto_msgTypes,
   200  	}.Build()
   201  	File_envoy_service_endpoint_v3_eds_proto = out.File
   202  	file_envoy_service_endpoint_v3_eds_proto_rawDesc = nil
   203  	file_envoy_service_endpoint_v3_eds_proto_goTypes = nil
   204  	file_envoy_service_endpoint_v3_eds_proto_depIdxs = nil
   205  }
   206  
   207  // Reference imports to suppress errors if they are not otherwise used.
   208  var _ context.Context
   209  var _ grpc.ClientConnInterface
   210  
   211  // This is a compile-time assertion to ensure that this generated file
   212  // is compatible with the grpc package it is being compiled against.
   213  const _ = grpc.SupportPackageIsVersion6
   214  
   215  // EndpointDiscoveryServiceClient is the client API for EndpointDiscoveryService service.
   216  //
   217  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   218  type EndpointDiscoveryServiceClient interface {
   219  	// The resource_names field in DiscoveryRequest specifies a list of clusters
   220  	// to subscribe to updates for.
   221  	StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error)
   222  	DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error)
   223  	FetchEndpoints(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error)
   224  }
   225  
   226  type endpointDiscoveryServiceClient struct {
   227  	cc grpc.ClientConnInterface
   228  }
   229  
   230  func NewEndpointDiscoveryServiceClient(cc grpc.ClientConnInterface) EndpointDiscoveryServiceClient {
   231  	return &endpointDiscoveryServiceClient{cc}
   232  }
   233  
   234  func (c *endpointDiscoveryServiceClient) StreamEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_StreamEndpointsClient, error) {
   235  	stream, err := c.cc.NewStream(ctx, &_EndpointDiscoveryService_serviceDesc.Streams[0], "/envoy.service.endpoint.v3.EndpointDiscoveryService/StreamEndpoints", opts...)
   236  	if err != nil {
   237  		return nil, err
   238  	}
   239  	x := &endpointDiscoveryServiceStreamEndpointsClient{stream}
   240  	return x, nil
   241  }
   242  
   243  type EndpointDiscoveryService_StreamEndpointsClient interface {
   244  	Send(*v3.DiscoveryRequest) error
   245  	Recv() (*v3.DiscoveryResponse, error)
   246  	grpc.ClientStream
   247  }
   248  
   249  type endpointDiscoveryServiceStreamEndpointsClient struct {
   250  	grpc.ClientStream
   251  }
   252  
   253  func (x *endpointDiscoveryServiceStreamEndpointsClient) Send(m *v3.DiscoveryRequest) error {
   254  	return x.ClientStream.SendMsg(m)
   255  }
   256  
   257  func (x *endpointDiscoveryServiceStreamEndpointsClient) Recv() (*v3.DiscoveryResponse, error) {
   258  	m := new(v3.DiscoveryResponse)
   259  	if err := x.ClientStream.RecvMsg(m); err != nil {
   260  		return nil, err
   261  	}
   262  	return m, nil
   263  }
   264  
   265  func (c *endpointDiscoveryServiceClient) DeltaEndpoints(ctx context.Context, opts ...grpc.CallOption) (EndpointDiscoveryService_DeltaEndpointsClient, error) {
   266  	stream, err := c.cc.NewStream(ctx, &_EndpointDiscoveryService_serviceDesc.Streams[1], "/envoy.service.endpoint.v3.EndpointDiscoveryService/DeltaEndpoints", opts...)
   267  	if err != nil {
   268  		return nil, err
   269  	}
   270  	x := &endpointDiscoveryServiceDeltaEndpointsClient{stream}
   271  	return x, nil
   272  }
   273  
   274  type EndpointDiscoveryService_DeltaEndpointsClient interface {
   275  	Send(*v3.DeltaDiscoveryRequest) error
   276  	Recv() (*v3.DeltaDiscoveryResponse, error)
   277  	grpc.ClientStream
   278  }
   279  
   280  type endpointDiscoveryServiceDeltaEndpointsClient struct {
   281  	grpc.ClientStream
   282  }
   283  
   284  func (x *endpointDiscoveryServiceDeltaEndpointsClient) Send(m *v3.DeltaDiscoveryRequest) error {
   285  	return x.ClientStream.SendMsg(m)
   286  }
   287  
   288  func (x *endpointDiscoveryServiceDeltaEndpointsClient) Recv() (*v3.DeltaDiscoveryResponse, error) {
   289  	m := new(v3.DeltaDiscoveryResponse)
   290  	if err := x.ClientStream.RecvMsg(m); err != nil {
   291  		return nil, err
   292  	}
   293  	return m, nil
   294  }
   295  
   296  func (c *endpointDiscoveryServiceClient) FetchEndpoints(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) {
   297  	out := new(v3.DiscoveryResponse)
   298  	err := c.cc.Invoke(ctx, "/envoy.service.endpoint.v3.EndpointDiscoveryService/FetchEndpoints", in, out, opts...)
   299  	if err != nil {
   300  		return nil, err
   301  	}
   302  	return out, nil
   303  }
   304  
   305  // EndpointDiscoveryServiceServer is the server API for EndpointDiscoveryService service.
   306  type EndpointDiscoveryServiceServer interface {
   307  	// The resource_names field in DiscoveryRequest specifies a list of clusters
   308  	// to subscribe to updates for.
   309  	StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error
   310  	DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error
   311  	FetchEndpoints(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error)
   312  }
   313  
   314  // UnimplementedEndpointDiscoveryServiceServer can be embedded to have forward compatible implementations.
   315  type UnimplementedEndpointDiscoveryServiceServer struct {
   316  }
   317  
   318  func (*UnimplementedEndpointDiscoveryServiceServer) StreamEndpoints(EndpointDiscoveryService_StreamEndpointsServer) error {
   319  	return status.Errorf(codes.Unimplemented, "method StreamEndpoints not implemented")
   320  }
   321  func (*UnimplementedEndpointDiscoveryServiceServer) DeltaEndpoints(EndpointDiscoveryService_DeltaEndpointsServer) error {
   322  	return status.Errorf(codes.Unimplemented, "method DeltaEndpoints not implemented")
   323  }
   324  func (*UnimplementedEndpointDiscoveryServiceServer) FetchEndpoints(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) {
   325  	return nil, status.Errorf(codes.Unimplemented, "method FetchEndpoints not implemented")
   326  }
   327  
   328  func RegisterEndpointDiscoveryServiceServer(s *grpc.Server, srv EndpointDiscoveryServiceServer) {
   329  	s.RegisterService(&_EndpointDiscoveryService_serviceDesc, srv)
   330  }
   331  
   332  func _EndpointDiscoveryService_StreamEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error {
   333  	return srv.(EndpointDiscoveryServiceServer).StreamEndpoints(&endpointDiscoveryServiceStreamEndpointsServer{stream})
   334  }
   335  
   336  type EndpointDiscoveryService_StreamEndpointsServer interface {
   337  	Send(*v3.DiscoveryResponse) error
   338  	Recv() (*v3.DiscoveryRequest, error)
   339  	grpc.ServerStream
   340  }
   341  
   342  type endpointDiscoveryServiceStreamEndpointsServer struct {
   343  	grpc.ServerStream
   344  }
   345  
   346  func (x *endpointDiscoveryServiceStreamEndpointsServer) Send(m *v3.DiscoveryResponse) error {
   347  	return x.ServerStream.SendMsg(m)
   348  }
   349  
   350  func (x *endpointDiscoveryServiceStreamEndpointsServer) Recv() (*v3.DiscoveryRequest, error) {
   351  	m := new(v3.DiscoveryRequest)
   352  	if err := x.ServerStream.RecvMsg(m); err != nil {
   353  		return nil, err
   354  	}
   355  	return m, nil
   356  }
   357  
   358  func _EndpointDiscoveryService_DeltaEndpoints_Handler(srv interface{}, stream grpc.ServerStream) error {
   359  	return srv.(EndpointDiscoveryServiceServer).DeltaEndpoints(&endpointDiscoveryServiceDeltaEndpointsServer{stream})
   360  }
   361  
   362  type EndpointDiscoveryService_DeltaEndpointsServer interface {
   363  	Send(*v3.DeltaDiscoveryResponse) error
   364  	Recv() (*v3.DeltaDiscoveryRequest, error)
   365  	grpc.ServerStream
   366  }
   367  
   368  type endpointDiscoveryServiceDeltaEndpointsServer struct {
   369  	grpc.ServerStream
   370  }
   371  
   372  func (x *endpointDiscoveryServiceDeltaEndpointsServer) Send(m *v3.DeltaDiscoveryResponse) error {
   373  	return x.ServerStream.SendMsg(m)
   374  }
   375  
   376  func (x *endpointDiscoveryServiceDeltaEndpointsServer) Recv() (*v3.DeltaDiscoveryRequest, error) {
   377  	m := new(v3.DeltaDiscoveryRequest)
   378  	if err := x.ServerStream.RecvMsg(m); err != nil {
   379  		return nil, err
   380  	}
   381  	return m, nil
   382  }
   383  
   384  func _EndpointDiscoveryService_FetchEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   385  	in := new(v3.DiscoveryRequest)
   386  	if err := dec(in); err != nil {
   387  		return nil, err
   388  	}
   389  	if interceptor == nil {
   390  		return srv.(EndpointDiscoveryServiceServer).FetchEndpoints(ctx, in)
   391  	}
   392  	info := &grpc.UnaryServerInfo{
   393  		Server:     srv,
   394  		FullMethod: "/envoy.service.endpoint.v3.EndpointDiscoveryService/FetchEndpoints",
   395  	}
   396  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   397  		return srv.(EndpointDiscoveryServiceServer).FetchEndpoints(ctx, req.(*v3.DiscoveryRequest))
   398  	}
   399  	return interceptor(ctx, in, info, handler)
   400  }
   401  
   402  var _EndpointDiscoveryService_serviceDesc = grpc.ServiceDesc{
   403  	ServiceName: "envoy.service.endpoint.v3.EndpointDiscoveryService",
   404  	HandlerType: (*EndpointDiscoveryServiceServer)(nil),
   405  	Methods: []grpc.MethodDesc{
   406  		{
   407  			MethodName: "FetchEndpoints",
   408  			Handler:    _EndpointDiscoveryService_FetchEndpoints_Handler,
   409  		},
   410  	},
   411  	Streams: []grpc.StreamDesc{
   412  		{
   413  			StreamName:    "StreamEndpoints",
   414  			Handler:       _EndpointDiscoveryService_StreamEndpoints_Handler,
   415  			ServerStreams: true,
   416  			ClientStreams: true,
   417  		},
   418  		{
   419  			StreamName:    "DeltaEndpoints",
   420  			Handler:       _EndpointDiscoveryService_DeltaEndpoints_Handler,
   421  			ServerStreams: true,
   422  			ClientStreams: true,
   423  		},
   424  	},
   425  	Metadata: "envoy/service/endpoint/v3/eds.proto",
   426  }