open-consul/vendor/github.com/envoyproxy/go-control-plane/envoy/api/v2/lds.pb.go

315 lines
12 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: envoy/api/v2/lds.proto
package envoy_api_v2
import (
context "context"
fmt "fmt"
_ "github.com/cncf/udpa/go/udpa/annotations"
_ "github.com/envoyproxy/go-control-plane/envoy/annotations"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/duration"
_ "github.com/golang/protobuf/ptypes/wrappers"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type LdsDummy struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LdsDummy) Reset() { *m = LdsDummy{} }
func (m *LdsDummy) String() string { return proto.CompactTextString(m) }
func (*LdsDummy) ProtoMessage() {}
func (*LdsDummy) Descriptor() ([]byte, []int) {
return fileDescriptor_34e2cd84a105bcd1, []int{0}
}
func (m *LdsDummy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LdsDummy.Unmarshal(m, b)
}
func (m *LdsDummy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LdsDummy.Marshal(b, m, deterministic)
}
func (m *LdsDummy) XXX_Merge(src proto.Message) {
xxx_messageInfo_LdsDummy.Merge(m, src)
}
func (m *LdsDummy) XXX_Size() int {
return xxx_messageInfo_LdsDummy.Size(m)
}
func (m *LdsDummy) XXX_DiscardUnknown() {
xxx_messageInfo_LdsDummy.DiscardUnknown(m)
}
var xxx_messageInfo_LdsDummy proto.InternalMessageInfo
func init() {
proto.RegisterType((*LdsDummy)(nil), "envoy.api.v2.LdsDummy")
}
func init() { proto.RegisterFile("envoy/api/v2/lds.proto", fileDescriptor_34e2cd84a105bcd1) }
var fileDescriptor_34e2cd84a105bcd1 = []byte{
// 394 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xbd, 0x4e, 0xe3, 0x40,
0x14, 0x85, 0xd7, 0x59, 0x6d, 0x36, 0x1a, 0xad, 0xb2, 0xc8, 0x12, 0x84, 0x38, 0x3f, 0xa0, 0x40,
0x11, 0x51, 0xd8, 0x28, 0xe9, 0x52, 0x46, 0x11, 0x55, 0x8a, 0x88, 0x50, 0xd0, 0x4e, 0xec, 0x4b,
0x18, 0xc9, 0xf6, 0x0c, 0x33, 0x63, 0x83, 0x45, 0x83, 0xa8, 0x10, 0x0d, 0x05, 0x12, 0xe2, 0x01,
0x78, 0x0a, 0x9e, 0x80, 0x16, 0xf1, 0x0a, 0x3c, 0x01, 0xe9, 0x11, 0x8a, 0xed, 0x49, 0x70, 0x50,
0xa8, 0xe8, 0x6c, 0x7f, 0xe7, 0x9e, 0x7b, 0x75, 0x8e, 0xd1, 0x1a, 0xf8, 0x21, 0x8d, 0x2c, 0xcc,
0x88, 0x15, 0xb6, 0x2c, 0xd7, 0x11, 0x26, 0xe3, 0x54, 0x52, 0xfd, 0x5f, 0xfc, 0xdd, 0xc4, 0x8c,
0x98, 0x61, 0xcb, 0xa8, 0x66, 0x54, 0x0e, 0x11, 0x36, 0x0d, 0x81, 0x47, 0x89, 0xd6, 0xa8, 0x8e,
0x29, 0x1d, 0xbb, 0x10, 0x63, 0xec, 0xfb, 0x54, 0x62, 0x49, 0xa8, 0x9f, 0x3a, 0x19, 0xf5, 0x94,
0xc6, 0x6f, 0xa3, 0xe0, 0xc8, 0x72, 0x02,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f, 0x45,
0x2f, 0x27, 0x58, 0x24, 0x79, 0x9b, 0xb3, 0x9e, 0xc2, 0xf6, 0xe3, 0xc5, 0xd3, 0x73, 0x3e, 0xb7,
0xa2, 0x21, 0x83, 0xd0, 0xe4, 0x2c, 0xc6, 0xe9, 0x59, 0x94, 0xb9, 0xb0, 0x3b, 0xad, 0x71, 0x30,
0xad, 0x74, 0xa0, 0x5d, 0x69, 0xda, 0xa0, 0x30, 0xca, 0xc7, 0x05, 0xb7, 0x3f, 0x02, 0x00, 0x00,
0xff, 0xff, 0x34, 0x66, 0x06, 0x72, 0x1b, 0x03, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ListenerDiscoveryServiceClient is the client API for ListenerDiscoveryService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ListenerDiscoveryServiceClient interface {
DeltaListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_DeltaListenersClient, error)
StreamListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_StreamListenersClient, error)
FetchListeners(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error)
}
type listenerDiscoveryServiceClient struct {
cc *grpc.ClientConn
}
func NewListenerDiscoveryServiceClient(cc *grpc.ClientConn) ListenerDiscoveryServiceClient {
return &listenerDiscoveryServiceClient{cc}
}
func (c *listenerDiscoveryServiceClient) DeltaListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_DeltaListenersClient, error) {
stream, err := c.cc.NewStream(ctx, &_ListenerDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.ListenerDiscoveryService/DeltaListeners", opts...)
if err != nil {
return nil, err
}
x := &listenerDiscoveryServiceDeltaListenersClient{stream}
return x, nil
}
type ListenerDiscoveryService_DeltaListenersClient interface {
Send(*DeltaDiscoveryRequest) error
Recv() (*DeltaDiscoveryResponse, error)
grpc.ClientStream
}
type listenerDiscoveryServiceDeltaListenersClient struct {
grpc.ClientStream
}
func (x *listenerDiscoveryServiceDeltaListenersClient) Send(m *DeltaDiscoveryRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *listenerDiscoveryServiceDeltaListenersClient) Recv() (*DeltaDiscoveryResponse, error) {
m := new(DeltaDiscoveryResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *listenerDiscoveryServiceClient) StreamListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_StreamListenersClient, error) {
stream, err := c.cc.NewStream(ctx, &_ListenerDiscoveryService_serviceDesc.Streams[1], "/envoy.api.v2.ListenerDiscoveryService/StreamListeners", opts...)
if err != nil {
return nil, err
}
x := &listenerDiscoveryServiceStreamListenersClient{stream}
return x, nil
}
type ListenerDiscoveryService_StreamListenersClient interface {
Send(*DiscoveryRequest) error
Recv() (*DiscoveryResponse, error)
grpc.ClientStream
}
type listenerDiscoveryServiceStreamListenersClient struct {
grpc.ClientStream
}
func (x *listenerDiscoveryServiceStreamListenersClient) Send(m *DiscoveryRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *listenerDiscoveryServiceStreamListenersClient) Recv() (*DiscoveryResponse, error) {
m := new(DiscoveryResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *listenerDiscoveryServiceClient) FetchListeners(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) {
out := new(DiscoveryResponse)
err := c.cc.Invoke(ctx, "/envoy.api.v2.ListenerDiscoveryService/FetchListeners", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ListenerDiscoveryServiceServer is the server API for ListenerDiscoveryService service.
type ListenerDiscoveryServiceServer interface {
DeltaListeners(ListenerDiscoveryService_DeltaListenersServer) error
StreamListeners(ListenerDiscoveryService_StreamListenersServer) error
FetchListeners(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error)
}
// UnimplementedListenerDiscoveryServiceServer can be embedded to have forward compatible implementations.
type UnimplementedListenerDiscoveryServiceServer struct {
}
func (*UnimplementedListenerDiscoveryServiceServer) DeltaListeners(srv ListenerDiscoveryService_DeltaListenersServer) error {
return status.Errorf(codes.Unimplemented, "method DeltaListeners not implemented")
}
func (*UnimplementedListenerDiscoveryServiceServer) StreamListeners(srv ListenerDiscoveryService_StreamListenersServer) error {
return status.Errorf(codes.Unimplemented, "method StreamListeners not implemented")
}
func (*UnimplementedListenerDiscoveryServiceServer) FetchListeners(ctx context.Context, req *DiscoveryRequest) (*DiscoveryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FetchListeners not implemented")
}
func RegisterListenerDiscoveryServiceServer(s *grpc.Server, srv ListenerDiscoveryServiceServer) {
s.RegisterService(&_ListenerDiscoveryService_serviceDesc, srv)
}
func _ListenerDiscoveryService_DeltaListeners_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ListenerDiscoveryServiceServer).DeltaListeners(&listenerDiscoveryServiceDeltaListenersServer{stream})
}
type ListenerDiscoveryService_DeltaListenersServer interface {
Send(*DeltaDiscoveryResponse) error
Recv() (*DeltaDiscoveryRequest, error)
grpc.ServerStream
}
type listenerDiscoveryServiceDeltaListenersServer struct {
grpc.ServerStream
}
func (x *listenerDiscoveryServiceDeltaListenersServer) Send(m *DeltaDiscoveryResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *listenerDiscoveryServiceDeltaListenersServer) Recv() (*DeltaDiscoveryRequest, error) {
m := new(DeltaDiscoveryRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _ListenerDiscoveryService_StreamListeners_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ListenerDiscoveryServiceServer).StreamListeners(&listenerDiscoveryServiceStreamListenersServer{stream})
}
type ListenerDiscoveryService_StreamListenersServer interface {
Send(*DiscoveryResponse) error
Recv() (*DiscoveryRequest, error)
grpc.ServerStream
}
type listenerDiscoveryServiceStreamListenersServer struct {
grpc.ServerStream
}
func (x *listenerDiscoveryServiceStreamListenersServer) Send(m *DiscoveryResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *listenerDiscoveryServiceStreamListenersServer) Recv() (*DiscoveryRequest, error) {
m := new(DiscoveryRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _ListenerDiscoveryService_FetchListeners_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DiscoveryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ListenerDiscoveryServiceServer).FetchListeners(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/envoy.api.v2.ListenerDiscoveryService/FetchListeners",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ListenerDiscoveryServiceServer).FetchListeners(ctx, req.(*DiscoveryRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ListenerDiscoveryService_serviceDesc = grpc.ServiceDesc{
ServiceName: "envoy.api.v2.ListenerDiscoveryService",
HandlerType: (*ListenerDiscoveryServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "FetchListeners",
Handler: _ListenerDiscoveryService_FetchListeners_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "DeltaListeners",
Handler: _ListenerDiscoveryService_DeltaListeners_Handler,
ServerStreams: true,
ClientStreams: true,
},
{
StreamName: "StreamListeners",
Handler: _ListenerDiscoveryService_StreamListeners_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "envoy/api/v2/lds.proto",
}