github.com/microsoft/moc@v0.17.1/rpc/cloudagent/cloud/moc_cloudagent_etcdserver.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_etcdserver.proto
     3  
     4  package cloud
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	wrappers "github.com/golang/protobuf/ptypes/wrappers"
    11  	common "github.com/microsoft/moc/rpc/common"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type EtcdServerRequest struct {
    30  	EtcdServers          []*EtcdServer    `protobuf:"bytes,1,rep,name=EtcdServers,proto3" json:"EtcdServers,omitempty"`
    31  	OperationType        common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    33  	XXX_unrecognized     []byte           `json:"-"`
    34  	XXX_sizecache        int32            `json:"-"`
    35  }
    36  
    37  func (m *EtcdServerRequest) Reset()         { *m = EtcdServerRequest{} }
    38  func (m *EtcdServerRequest) String() string { return proto.CompactTextString(m) }
    39  func (*EtcdServerRequest) ProtoMessage()    {}
    40  func (*EtcdServerRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_d0ace618052d3694, []int{0}
    42  }
    43  
    44  func (m *EtcdServerRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_EtcdServerRequest.Unmarshal(m, b)
    46  }
    47  func (m *EtcdServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_EtcdServerRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *EtcdServerRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_EtcdServerRequest.Merge(m, src)
    52  }
    53  func (m *EtcdServerRequest) XXX_Size() int {
    54  	return xxx_messageInfo_EtcdServerRequest.Size(m)
    55  }
    56  func (m *EtcdServerRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_EtcdServerRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_EtcdServerRequest proto.InternalMessageInfo
    61  
    62  func (m *EtcdServerRequest) GetEtcdServers() []*EtcdServer {
    63  	if m != nil {
    64  		return m.EtcdServers
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *EtcdServerRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type EtcdServerResponse struct {
    77  	EtcdServers          []*EtcdServer       `protobuf:"bytes,1,rep,name=EtcdServers,proto3" json:"EtcdServers,omitempty"`
    78  	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
    79  	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
    80  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    81  	XXX_unrecognized     []byte              `json:"-"`
    82  	XXX_sizecache        int32               `json:"-"`
    83  }
    84  
    85  func (m *EtcdServerResponse) Reset()         { *m = EtcdServerResponse{} }
    86  func (m *EtcdServerResponse) String() string { return proto.CompactTextString(m) }
    87  func (*EtcdServerResponse) ProtoMessage()    {}
    88  func (*EtcdServerResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_d0ace618052d3694, []int{1}
    90  }
    91  
    92  func (m *EtcdServerResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_EtcdServerResponse.Unmarshal(m, b)
    94  }
    95  func (m *EtcdServerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_EtcdServerResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *EtcdServerResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_EtcdServerResponse.Merge(m, src)
   100  }
   101  func (m *EtcdServerResponse) XXX_Size() int {
   102  	return xxx_messageInfo_EtcdServerResponse.Size(m)
   103  }
   104  func (m *EtcdServerResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_EtcdServerResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_EtcdServerResponse proto.InternalMessageInfo
   109  
   110  func (m *EtcdServerResponse) GetEtcdServers() []*EtcdServer {
   111  	if m != nil {
   112  		return m.EtcdServers
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *EtcdServerResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *EtcdServerResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type EtcdServer struct {
   132  	Id              string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   133  	Name            string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
   134  	EtcdClusterName string `protobuf:"bytes,3,opt,name=etcdClusterName,proto3" json:"etcdClusterName,omitempty"`
   135  	ClusterId       string `protobuf:"bytes,4,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
   136  	LocationName    string `protobuf:"bytes,5,opt,name=locationName,proto3" json:"locationName,omitempty"`
   137  	GroupName       string `protobuf:"bytes,6,opt,name=groupName,proto3" json:"groupName,omitempty"`
   138  	// fqdn is the fqdn, hostname, or ip address that this EtcdServer will
   139  	// advertise on
   140  	Fqdn string `protobuf:"bytes,7,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
   141  	// etcd client port to listen on
   142  	ClientPort           uint32         `protobuf:"varint,8,opt,name=clientPort,proto3" json:"clientPort,omitempty"`
   143  	Status               *common.Status `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
   144  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   145  	XXX_unrecognized     []byte         `json:"-"`
   146  	XXX_sizecache        int32          `json:"-"`
   147  }
   148  
   149  func (m *EtcdServer) Reset()         { *m = EtcdServer{} }
   150  func (m *EtcdServer) String() string { return proto.CompactTextString(m) }
   151  func (*EtcdServer) ProtoMessage()    {}
   152  func (*EtcdServer) Descriptor() ([]byte, []int) {
   153  	return fileDescriptor_d0ace618052d3694, []int{2}
   154  }
   155  
   156  func (m *EtcdServer) XXX_Unmarshal(b []byte) error {
   157  	return xxx_messageInfo_EtcdServer.Unmarshal(m, b)
   158  }
   159  func (m *EtcdServer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   160  	return xxx_messageInfo_EtcdServer.Marshal(b, m, deterministic)
   161  }
   162  func (m *EtcdServer) XXX_Merge(src proto.Message) {
   163  	xxx_messageInfo_EtcdServer.Merge(m, src)
   164  }
   165  func (m *EtcdServer) XXX_Size() int {
   166  	return xxx_messageInfo_EtcdServer.Size(m)
   167  }
   168  func (m *EtcdServer) XXX_DiscardUnknown() {
   169  	xxx_messageInfo_EtcdServer.DiscardUnknown(m)
   170  }
   171  
   172  var xxx_messageInfo_EtcdServer proto.InternalMessageInfo
   173  
   174  func (m *EtcdServer) GetId() string {
   175  	if m != nil {
   176  		return m.Id
   177  	}
   178  	return ""
   179  }
   180  
   181  func (m *EtcdServer) GetName() string {
   182  	if m != nil {
   183  		return m.Name
   184  	}
   185  	return ""
   186  }
   187  
   188  func (m *EtcdServer) GetEtcdClusterName() string {
   189  	if m != nil {
   190  		return m.EtcdClusterName
   191  	}
   192  	return ""
   193  }
   194  
   195  func (m *EtcdServer) GetClusterId() string {
   196  	if m != nil {
   197  		return m.ClusterId
   198  	}
   199  	return ""
   200  }
   201  
   202  func (m *EtcdServer) GetLocationName() string {
   203  	if m != nil {
   204  		return m.LocationName
   205  	}
   206  	return ""
   207  }
   208  
   209  func (m *EtcdServer) GetGroupName() string {
   210  	if m != nil {
   211  		return m.GroupName
   212  	}
   213  	return ""
   214  }
   215  
   216  func (m *EtcdServer) GetFqdn() string {
   217  	if m != nil {
   218  		return m.Fqdn
   219  	}
   220  	return ""
   221  }
   222  
   223  func (m *EtcdServer) GetClientPort() uint32 {
   224  	if m != nil {
   225  		return m.ClientPort
   226  	}
   227  	return 0
   228  }
   229  
   230  func (m *EtcdServer) GetStatus() *common.Status {
   231  	if m != nil {
   232  		return m.Status
   233  	}
   234  	return nil
   235  }
   236  
   237  func init() {
   238  	proto.RegisterType((*EtcdServerRequest)(nil), "moc.cloudagent.etcd.EtcdServerRequest")
   239  	proto.RegisterType((*EtcdServerResponse)(nil), "moc.cloudagent.etcd.EtcdServerResponse")
   240  	proto.RegisterType((*EtcdServer)(nil), "moc.cloudagent.etcd.EtcdServer")
   241  }
   242  
   243  func init() { proto.RegisterFile("moc_cloudagent_etcdserver.proto", fileDescriptor_d0ace618052d3694) }
   244  
   245  var fileDescriptor_d0ace618052d3694 = []byte{
   246  	// 445 bytes of a gzipped FileDescriptorProto
   247  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0x4d, 0x6f, 0xd4, 0x30,
   248  	0x10, 0x25, 0xdb, 0x36, 0xb0, 0xb3, 0x74, 0x2b, 0x0c, 0x12, 0xd1, 0x0a, 0xb5, 0xab, 0x20, 0x41,
   249  	0x2e, 0x38, 0x52, 0xe0, 0x0f, 0xb4, 0xa8, 0x87, 0x5e, 0x00, 0xa5, 0x88, 0x03, 0x1c, 0xaa, 0xac,
   250  	0xe3, 0x0d, 0x11, 0x89, 0xc7, 0xf5, 0x47, 0x11, 0xff, 0x81, 0x1b, 0xbf, 0x80, 0x7f, 0x8a, 0x32,
   251  	0x5e, 0x9a, 0x2d, 0x42, 0xea, 0xa5, 0xa7, 0x8c, 0xdf, 0xbc, 0x79, 0x7e, 0x79, 0x63, 0x38, 0xea,
   252  	0x51, 0x5c, 0x88, 0x0e, 0x7d, 0x5d, 0x35, 0x52, 0xb9, 0x0b, 0xe9, 0x44, 0x6d, 0xa5, 0xb9, 0x92,
   253  	0x86, 0x6b, 0x83, 0x0e, 0xd9, 0xe3, 0x1e, 0x05, 0x1f, 0x09, 0x7c, 0x20, 0x2c, 0x0e, 0x1b, 0xc4,
   254  	0xa6, 0x93, 0x39, 0x51, 0x56, 0x7e, 0x9d, 0x7f, 0x37, 0x95, 0xd6, 0xd2, 0xd8, 0x30, 0xb4, 0x78,
   255  	0x4a, 0xaa, 0xd8, 0xf7, 0xa8, 0x36, 0x9f, 0xd0, 0x48, 0x7f, 0x46, 0xf0, 0xe8, 0xd4, 0x89, 0xfa,
   256  	0x9c, 0xae, 0x28, 0xe5, 0xa5, 0x97, 0xd6, 0xb1, 0x63, 0x98, 0x8d, 0xa0, 0x4d, 0xa2, 0xe5, 0x4e,
   257  	0x36, 0x2b, 0x8e, 0xf8, 0x7f, 0x6e, 0xe6, 0x5b, 0xc3, 0xdb, 0x33, 0xec, 0x0d, 0xec, 0xbf, 0xd7,
   258  	0xd2, 0x54, 0xae, 0x45, 0xf5, 0xf1, 0x87, 0x96, 0xc9, 0x64, 0x19, 0x65, 0xf3, 0x62, 0x4e, 0x22,
   259  	0xd7, 0x9d, 0xf2, 0x26, 0x29, 0xfd, 0x1d, 0x01, 0xdb, 0xb6, 0x63, 0x35, 0x2a, 0x2b, 0xef, 0xc2,
   260  	0x4f, 0x01, 0x71, 0x29, 0xad, 0xef, 0x1c, 0x19, 0x99, 0x15, 0x0b, 0x1e, 0x22, 0xe3, 0x7f, 0x23,
   261  	0xe3, 0x27, 0x88, 0xdd, 0xa7, 0xaa, 0xf3, 0xb2, 0xdc, 0x30, 0xd9, 0x13, 0xd8, 0x3b, 0x35, 0x06,
   262  	0x4d, 0xb2, 0xb3, 0x8c, 0xb2, 0x69, 0x19, 0x0e, 0xe9, 0xaf, 0x09, 0xc0, 0xa8, 0xcc, 0xe6, 0x30,
   263  	0x69, 0xeb, 0x24, 0x22, 0xc6, 0xa4, 0xad, 0x19, 0x83, 0x5d, 0x55, 0xf5, 0xe1, 0x7f, 0xa7, 0x25,
   264  	0xd5, 0x2c, 0x83, 0x83, 0xc1, 0xdc, 0xdb, 0xce, 0x5b, 0x27, 0xcd, 0xbb, 0xa1, 0x1d, 0x24, 0xff,
   265  	0x85, 0xd9, 0x33, 0x98, 0x8a, 0x70, 0x3c, 0xab, 0x93, 0x5d, 0xe2, 0x8c, 0x00, 0x4b, 0xe1, 0x61,
   266  	0x87, 0x82, 0xe2, 0x22, 0x91, 0x3d, 0x22, 0xdc, 0xc0, 0x06, 0x85, 0xc6, 0xa0, 0xd7, 0x44, 0x88,
   267  	0x83, 0xc2, 0x35, 0x30, 0xb8, 0x5b, 0x5f, 0xd6, 0x2a, 0xb9, 0x1f, 0xdc, 0x0d, 0x35, 0x3b, 0x04,
   268  	0x10, 0x5d, 0x2b, 0x95, 0xfb, 0x80, 0xc6, 0x25, 0x0f, 0x96, 0x51, 0xb6, 0x5f, 0x6e, 0x21, 0xec,
   269  	0x39, 0xc4, 0xd6, 0x55, 0xce, 0xdb, 0x64, 0x4a, 0xd1, 0xcd, 0x28, 0xf8, 0x73, 0x82, 0xca, 0x4d,
   270  	0xab, 0x50, 0x70, 0x30, 0x86, 0x72, 0x3c, 0xec, 0x83, 0x7d, 0x81, 0xf8, 0x4c, 0x5d, 0xe1, 0x37,
   271  	0xc9, 0x5e, 0xdc, 0xb6, 0xaa, 0xf0, 0xee, 0x16, 0x2f, 0x6f, 0xe5, 0x85, 0x07, 0x91, 0xde, 0x3b,
   272  	0xc9, 0x3f, 0xbf, 0x6a, 0x5a, 0xf7, 0xd5, 0xaf, 0xb8, 0xc0, 0x3e, 0xef, 0x5b, 0x61, 0xd0, 0xe2,
   273  	0xda, 0xe5, 0x3d, 0x8a, 0xdc, 0x68, 0x91, 0x8f, 0x22, 0xa1, 0x5c, 0xc5, 0xb4, 0xe8, 0xd7, 0x7f,
   274  	0x02, 0x00, 0x00, 0xff, 0xff, 0x10, 0xa8, 0x36, 0x47, 0x61, 0x03, 0x00, 0x00,
   275  }
   276  
   277  // Reference imports to suppress errors if they are not otherwise used.
   278  var _ context.Context
   279  var _ grpc.ClientConn
   280  
   281  // This is a compile-time assertion to ensure that this generated file
   282  // is compatible with the grpc package it is being compiled against.
   283  const _ = grpc.SupportPackageIsVersion4
   284  
   285  // EtcdServerAgentClient is the client API for EtcdServerAgent service.
   286  //
   287  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   288  type EtcdServerAgentClient interface {
   289  	Invoke(ctx context.Context, in *EtcdServerRequest, opts ...grpc.CallOption) (*EtcdServerResponse, error)
   290  }
   291  
   292  type etcdServerAgentClient struct {
   293  	cc *grpc.ClientConn
   294  }
   295  
   296  func NewEtcdServerAgentClient(cc *grpc.ClientConn) EtcdServerAgentClient {
   297  	return &etcdServerAgentClient{cc}
   298  }
   299  
   300  func (c *etcdServerAgentClient) Invoke(ctx context.Context, in *EtcdServerRequest, opts ...grpc.CallOption) (*EtcdServerResponse, error) {
   301  	out := new(EtcdServerResponse)
   302  	err := c.cc.Invoke(ctx, "/moc.cloudagent.etcd.EtcdServerAgent/Invoke", in, out, opts...)
   303  	if err != nil {
   304  		return nil, err
   305  	}
   306  	return out, nil
   307  }
   308  
   309  // EtcdServerAgentServer is the server API for EtcdServerAgent service.
   310  type EtcdServerAgentServer interface {
   311  	Invoke(context.Context, *EtcdServerRequest) (*EtcdServerResponse, error)
   312  }
   313  
   314  // UnimplementedEtcdServerAgentServer can be embedded to have forward compatible implementations.
   315  type UnimplementedEtcdServerAgentServer struct {
   316  }
   317  
   318  func (*UnimplementedEtcdServerAgentServer) Invoke(ctx context.Context, req *EtcdServerRequest) (*EtcdServerResponse, error) {
   319  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   320  }
   321  
   322  func RegisterEtcdServerAgentServer(s *grpc.Server, srv EtcdServerAgentServer) {
   323  	s.RegisterService(&_EtcdServerAgent_serviceDesc, srv)
   324  }
   325  
   326  func _EtcdServerAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   327  	in := new(EtcdServerRequest)
   328  	if err := dec(in); err != nil {
   329  		return nil, err
   330  	}
   331  	if interceptor == nil {
   332  		return srv.(EtcdServerAgentServer).Invoke(ctx, in)
   333  	}
   334  	info := &grpc.UnaryServerInfo{
   335  		Server:     srv,
   336  		FullMethod: "/moc.cloudagent.etcd.EtcdServerAgent/Invoke",
   337  	}
   338  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   339  		return srv.(EtcdServerAgentServer).Invoke(ctx, req.(*EtcdServerRequest))
   340  	}
   341  	return interceptor(ctx, in, info, handler)
   342  }
   343  
   344  var _EtcdServerAgent_serviceDesc = grpc.ServiceDesc{
   345  	ServiceName: "moc.cloudagent.etcd.EtcdServerAgent",
   346  	HandlerType: (*EtcdServerAgentServer)(nil),
   347  	Methods: []grpc.MethodDesc{
   348  		{
   349  			MethodName: "Invoke",
   350  			Handler:    _EtcdServerAgent_Invoke_Handler,
   351  		},
   352  	},
   353  	Streams:  []grpc.StreamDesc{},
   354  	Metadata: "moc_cloudagent_etcdserver.proto",
   355  }