// Code generated by protoc-gen-go. DO NOT EDIT.
// source: yandex/cloud/endpoint/api_endpoint_service.proto

package endpoint // import "github.com/yandex-cloud/go-genproto/yandex/cloud/endpoint"

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"

import (
	context "golang.org/x/net/context"
	grpc "google.golang.org/grpc"
)

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

type GetApiEndpointRequest struct {
	ApiEndpointId        string   `protobuf:"bytes,1,opt,name=api_endpoint_id,json=apiEndpointId,proto3" json:"api_endpoint_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *GetApiEndpointRequest) Reset()         { *m = GetApiEndpointRequest{} }
func (m *GetApiEndpointRequest) String() string { return proto.CompactTextString(m) }
func (*GetApiEndpointRequest) ProtoMessage()    {}
func (*GetApiEndpointRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_api_endpoint_service_3b852f01606ed782, []int{0}
}
func (m *GetApiEndpointRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_GetApiEndpointRequest.Unmarshal(m, b)
}
func (m *GetApiEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_GetApiEndpointRequest.Marshal(b, m, deterministic)
}
func (dst *GetApiEndpointRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_GetApiEndpointRequest.Merge(dst, src)
}
func (m *GetApiEndpointRequest) XXX_Size() int {
	return xxx_messageInfo_GetApiEndpointRequest.Size(m)
}
func (m *GetApiEndpointRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_GetApiEndpointRequest.DiscardUnknown(m)
}

var xxx_messageInfo_GetApiEndpointRequest proto.InternalMessageInfo

func (m *GetApiEndpointRequest) GetApiEndpointId() string {
	if m != nil {
		return m.ApiEndpointId
	}
	return ""
}

type ListApiEndpointsRequest struct {
	PageSize             int64    `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken            string   `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ListApiEndpointsRequest) Reset()         { *m = ListApiEndpointsRequest{} }
func (m *ListApiEndpointsRequest) String() string { return proto.CompactTextString(m) }
func (*ListApiEndpointsRequest) ProtoMessage()    {}
func (*ListApiEndpointsRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_api_endpoint_service_3b852f01606ed782, []int{1}
}
func (m *ListApiEndpointsRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListApiEndpointsRequest.Unmarshal(m, b)
}
func (m *ListApiEndpointsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListApiEndpointsRequest.Marshal(b, m, deterministic)
}
func (dst *ListApiEndpointsRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListApiEndpointsRequest.Merge(dst, src)
}
func (m *ListApiEndpointsRequest) XXX_Size() int {
	return xxx_messageInfo_ListApiEndpointsRequest.Size(m)
}
func (m *ListApiEndpointsRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ListApiEndpointsRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ListApiEndpointsRequest proto.InternalMessageInfo

func (m *ListApiEndpointsRequest) GetPageSize() int64 {
	if m != nil {
		return m.PageSize
	}
	return 0
}

func (m *ListApiEndpointsRequest) GetPageToken() string {
	if m != nil {
		return m.PageToken
	}
	return ""
}

type ListApiEndpointsResponse struct {
	Endpoints            []*ApiEndpoint `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	NextPageToken        string         `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (m *ListApiEndpointsResponse) Reset()         { *m = ListApiEndpointsResponse{} }
func (m *ListApiEndpointsResponse) String() string { return proto.CompactTextString(m) }
func (*ListApiEndpointsResponse) ProtoMessage()    {}
func (*ListApiEndpointsResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_api_endpoint_service_3b852f01606ed782, []int{2}
}
func (m *ListApiEndpointsResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListApiEndpointsResponse.Unmarshal(m, b)
}
func (m *ListApiEndpointsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListApiEndpointsResponse.Marshal(b, m, deterministic)
}
func (dst *ListApiEndpointsResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListApiEndpointsResponse.Merge(dst, src)
}
func (m *ListApiEndpointsResponse) XXX_Size() int {
	return xxx_messageInfo_ListApiEndpointsResponse.Size(m)
}
func (m *ListApiEndpointsResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ListApiEndpointsResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ListApiEndpointsResponse proto.InternalMessageInfo

func (m *ListApiEndpointsResponse) GetEndpoints() []*ApiEndpoint {
	if m != nil {
		return m.Endpoints
	}
	return nil
}

func (m *ListApiEndpointsResponse) GetNextPageToken() string {
	if m != nil {
		return m.NextPageToken
	}
	return ""
}

func init() {
	proto.RegisterType((*GetApiEndpointRequest)(nil), "yandex.cloud.endpoint.GetApiEndpointRequest")
	proto.RegisterType((*ListApiEndpointsRequest)(nil), "yandex.cloud.endpoint.ListApiEndpointsRequest")
	proto.RegisterType((*ListApiEndpointsResponse)(nil), "yandex.cloud.endpoint.ListApiEndpointsResponse")
}

// 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

// ApiEndpointServiceClient is the client API for ApiEndpointService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ApiEndpointServiceClient interface {
	Get(ctx context.Context, in *GetApiEndpointRequest, opts ...grpc.CallOption) (*ApiEndpoint, error)
	List(ctx context.Context, in *ListApiEndpointsRequest, opts ...grpc.CallOption) (*ListApiEndpointsResponse, error)
}

type apiEndpointServiceClient struct {
	cc *grpc.ClientConn
}

func NewApiEndpointServiceClient(cc *grpc.ClientConn) ApiEndpointServiceClient {
	return &apiEndpointServiceClient{cc}
}

func (c *apiEndpointServiceClient) Get(ctx context.Context, in *GetApiEndpointRequest, opts ...grpc.CallOption) (*ApiEndpoint, error) {
	out := new(ApiEndpoint)
	err := c.cc.Invoke(ctx, "/yandex.cloud.endpoint.ApiEndpointService/Get", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *apiEndpointServiceClient) List(ctx context.Context, in *ListApiEndpointsRequest, opts ...grpc.CallOption) (*ListApiEndpointsResponse, error) {
	out := new(ListApiEndpointsResponse)
	err := c.cc.Invoke(ctx, "/yandex.cloud.endpoint.ApiEndpointService/List", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// ApiEndpointServiceServer is the server API for ApiEndpointService service.
type ApiEndpointServiceServer interface {
	Get(context.Context, *GetApiEndpointRequest) (*ApiEndpoint, error)
	List(context.Context, *ListApiEndpointsRequest) (*ListApiEndpointsResponse, error)
}

func RegisterApiEndpointServiceServer(s *grpc.Server, srv ApiEndpointServiceServer) {
	s.RegisterService(&_ApiEndpointService_serviceDesc, srv)
}

func _ApiEndpointService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(GetApiEndpointRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ApiEndpointServiceServer).Get(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/yandex.cloud.endpoint.ApiEndpointService/Get",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ApiEndpointServiceServer).Get(ctx, req.(*GetApiEndpointRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _ApiEndpointService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListApiEndpointsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ApiEndpointServiceServer).List(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/yandex.cloud.endpoint.ApiEndpointService/List",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ApiEndpointServiceServer).List(ctx, req.(*ListApiEndpointsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _ApiEndpointService_serviceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.endpoint.ApiEndpointService",
	HandlerType: (*ApiEndpointServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _ApiEndpointService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ApiEndpointService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/endpoint/api_endpoint_service.proto",
}

func init() {
	proto.RegisterFile("yandex/cloud/endpoint/api_endpoint_service.proto", fileDescriptor_api_endpoint_service_3b852f01606ed782)
}

var fileDescriptor_api_endpoint_service_3b852f01606ed782 = []byte{
	// 370 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0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