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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_etcdcluster.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 EtcdClusterRequest struct {
    30  	EtcdClusters         []*EtcdCluster   `protobuf:"bytes,1,rep,name=EtcdClusters,proto3" json:"EtcdClusters,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 *EtcdClusterRequest) Reset()         { *m = EtcdClusterRequest{} }
    38  func (m *EtcdClusterRequest) String() string { return proto.CompactTextString(m) }
    39  func (*EtcdClusterRequest) ProtoMessage()    {}
    40  func (*EtcdClusterRequest) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_8d73c226ba9892c4, []int{0}
    42  }
    43  
    44  func (m *EtcdClusterRequest) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_EtcdClusterRequest.Unmarshal(m, b)
    46  }
    47  func (m *EtcdClusterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_EtcdClusterRequest.Marshal(b, m, deterministic)
    49  }
    50  func (m *EtcdClusterRequest) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_EtcdClusterRequest.Merge(m, src)
    52  }
    53  func (m *EtcdClusterRequest) XXX_Size() int {
    54  	return xxx_messageInfo_EtcdClusterRequest.Size(m)
    55  }
    56  func (m *EtcdClusterRequest) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_EtcdClusterRequest.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_EtcdClusterRequest proto.InternalMessageInfo
    61  
    62  func (m *EtcdClusterRequest) GetEtcdClusters() []*EtcdCluster {
    63  	if m != nil {
    64  		return m.EtcdClusters
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *EtcdClusterRequest) GetOperationType() common.Operation {
    70  	if m != nil {
    71  		return m.OperationType
    72  	}
    73  	return common.Operation_GET
    74  }
    75  
    76  type EtcdClusterResponse struct {
    77  	EtcdClusters         []*EtcdCluster      `protobuf:"bytes,1,rep,name=EtcdClusters,proto3" json:"EtcdClusters,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 *EtcdClusterResponse) Reset()         { *m = EtcdClusterResponse{} }
    86  func (m *EtcdClusterResponse) String() string { return proto.CompactTextString(m) }
    87  func (*EtcdClusterResponse) ProtoMessage()    {}
    88  func (*EtcdClusterResponse) Descriptor() ([]byte, []int) {
    89  	return fileDescriptor_8d73c226ba9892c4, []int{1}
    90  }
    91  
    92  func (m *EtcdClusterResponse) XXX_Unmarshal(b []byte) error {
    93  	return xxx_messageInfo_EtcdClusterResponse.Unmarshal(m, b)
    94  }
    95  func (m *EtcdClusterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    96  	return xxx_messageInfo_EtcdClusterResponse.Marshal(b, m, deterministic)
    97  }
    98  func (m *EtcdClusterResponse) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_EtcdClusterResponse.Merge(m, src)
   100  }
   101  func (m *EtcdClusterResponse) XXX_Size() int {
   102  	return xxx_messageInfo_EtcdClusterResponse.Size(m)
   103  }
   104  func (m *EtcdClusterResponse) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_EtcdClusterResponse.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_EtcdClusterResponse proto.InternalMessageInfo
   109  
   110  func (m *EtcdClusterResponse) GetEtcdClusters() []*EtcdCluster {
   111  	if m != nil {
   112  		return m.EtcdClusters
   113  	}
   114  	return nil
   115  }
   116  
   117  func (m *EtcdClusterResponse) GetResult() *wrappers.BoolValue {
   118  	if m != nil {
   119  		return m.Result
   120  	}
   121  	return nil
   122  }
   123  
   124  func (m *EtcdClusterResponse) GetError() string {
   125  	if m != nil {
   126  		return m.Error
   127  	}
   128  	return ""
   129  }
   130  
   131  type EtcdCluster 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  	LocationName string `protobuf:"bytes,3,opt,name=locationName,proto3" json:"locationName,omitempty"`
   135  	GroupName    string `protobuf:"bytes,4,opt,name=groupName,proto3" json:"groupName,omitempty"`
   136  	// etcd ca certificate that works as RoT for client and peer connections
   137  	CaCertificate string `protobuf:"bytes,5,opt,name=caCertificate,proto3" json:"caCertificate,omitempty"`
   138  	// etcd ca key associated with the ca certificate
   139  	CaKey                string         `protobuf:"bytes,6,opt,name=caKey,proto3" json:"caKey,omitempty"`
   140  	Status               *common.Status `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
   141  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   142  	XXX_unrecognized     []byte         `json:"-"`
   143  	XXX_sizecache        int32          `json:"-"`
   144  }
   145  
   146  func (m *EtcdCluster) Reset()         { *m = EtcdCluster{} }
   147  func (m *EtcdCluster) String() string { return proto.CompactTextString(m) }
   148  func (*EtcdCluster) ProtoMessage()    {}
   149  func (*EtcdCluster) Descriptor() ([]byte, []int) {
   150  	return fileDescriptor_8d73c226ba9892c4, []int{2}
   151  }
   152  
   153  func (m *EtcdCluster) XXX_Unmarshal(b []byte) error {
   154  	return xxx_messageInfo_EtcdCluster.Unmarshal(m, b)
   155  }
   156  func (m *EtcdCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   157  	return xxx_messageInfo_EtcdCluster.Marshal(b, m, deterministic)
   158  }
   159  func (m *EtcdCluster) XXX_Merge(src proto.Message) {
   160  	xxx_messageInfo_EtcdCluster.Merge(m, src)
   161  }
   162  func (m *EtcdCluster) XXX_Size() int {
   163  	return xxx_messageInfo_EtcdCluster.Size(m)
   164  }
   165  func (m *EtcdCluster) XXX_DiscardUnknown() {
   166  	xxx_messageInfo_EtcdCluster.DiscardUnknown(m)
   167  }
   168  
   169  var xxx_messageInfo_EtcdCluster proto.InternalMessageInfo
   170  
   171  func (m *EtcdCluster) GetId() string {
   172  	if m != nil {
   173  		return m.Id
   174  	}
   175  	return ""
   176  }
   177  
   178  func (m *EtcdCluster) GetName() string {
   179  	if m != nil {
   180  		return m.Name
   181  	}
   182  	return ""
   183  }
   184  
   185  func (m *EtcdCluster) GetLocationName() string {
   186  	if m != nil {
   187  		return m.LocationName
   188  	}
   189  	return ""
   190  }
   191  
   192  func (m *EtcdCluster) GetGroupName() string {
   193  	if m != nil {
   194  		return m.GroupName
   195  	}
   196  	return ""
   197  }
   198  
   199  func (m *EtcdCluster) GetCaCertificate() string {
   200  	if m != nil {
   201  		return m.CaCertificate
   202  	}
   203  	return ""
   204  }
   205  
   206  func (m *EtcdCluster) GetCaKey() string {
   207  	if m != nil {
   208  		return m.CaKey
   209  	}
   210  	return ""
   211  }
   212  
   213  func (m *EtcdCluster) GetStatus() *common.Status {
   214  	if m != nil {
   215  		return m.Status
   216  	}
   217  	return nil
   218  }
   219  
   220  func init() {
   221  	proto.RegisterType((*EtcdClusterRequest)(nil), "moc.cloudagent.etcd.EtcdClusterRequest")
   222  	proto.RegisterType((*EtcdClusterResponse)(nil), "moc.cloudagent.etcd.EtcdClusterResponse")
   223  	proto.RegisterType((*EtcdCluster)(nil), "moc.cloudagent.etcd.EtcdCluster")
   224  }
   225  
   226  func init() { proto.RegisterFile("moc_cloudagent_etcdcluster.proto", fileDescriptor_8d73c226ba9892c4) }
   227  
   228  var fileDescriptor_8d73c226ba9892c4 = []byte{
   229  	// 430 bytes of a gzipped FileDescriptorProto
   230  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xdf, 0x8a, 0xd3, 0x40,
   231  	0x14, 0xc6, 0x4d, 0xb7, 0x8d, 0xf4, 0x74, 0xb7, 0xc8, 0xac, 0x60, 0x08, 0x22, 0x21, 0x5e, 0x58,
   232  	0x04, 0x27, 0x10, 0x7d, 0x01, 0xbb, 0xee, 0x85, 0x08, 0x0a, 0x51, 0xbc, 0x10, 0x64, 0x99, 0x4e,
   233  	0x4e, 0x63, 0x30, 0xc9, 0xc9, 0xce, 0x1f, 0x65, 0xdf, 0xc0, 0x4b, 0x5f, 0xc2, 0x47, 0xf0, 0x7d,
   234  	0x7c, 0x14, 0xe9, 0x4c, 0xb5, 0x09, 0x08, 0xbd, 0xf1, 0xaa, 0xd3, 0xf3, 0xfd, 0xce, 0x37, 0xe7,
   235  	0x7c, 0x13, 0x48, 0x5a, 0x92, 0x57, 0xb2, 0x21, 0x5b, 0x8a, 0x0a, 0x3b, 0x73, 0x85, 0x46, 0x96,
   236  	0xb2, 0xb1, 0xda, 0xa0, 0xe2, 0xbd, 0x22, 0x43, 0xec, 0xbc, 0x25, 0xc9, 0x0f, 0x04, 0xdf, 0x11,
   237  	0xf1, 0x83, 0x8a, 0xa8, 0x6a, 0x30, 0x73, 0xc8, 0xc6, 0x6e, 0xb3, 0xaf, 0x4a, 0xf4, 0x3d, 0x2a,
   238  	0xed, 0x9b, 0xe2, 0x7b, 0xce, 0x96, 0xda, 0x96, 0xba, 0xfd, 0x8f, 0x17, 0xd2, 0xef, 0x01, 0xb0,
   239  	0x4b, 0x23, 0xcb, 0x0b, 0x7f, 0x47, 0x81, 0xd7, 0x16, 0xb5, 0x61, 0x2f, 0xe0, 0x74, 0x50, 0xd5,
   240  	0x51, 0x90, 0x9c, 0xac, 0x16, 0x79, 0xc2, 0xff, 0x71, 0x37, 0x1f, 0xb6, 0x8f, 0xba, 0xd8, 0x33,
   241  	0x38, 0x7b, 0xd3, 0xa3, 0x12, 0xa6, 0xa6, 0xee, 0xdd, 0x4d, 0x8f, 0xd1, 0x24, 0x09, 0x56, 0xcb,
   242  	0x7c, 0xe9, 0x6c, 0xfe, 0x2a, 0xc5, 0x18, 0x4a, 0x7f, 0x04, 0x70, 0x3e, 0x1a, 0x49, 0xf7, 0xd4,
   243  	0x69, 0xfc, 0x4f, 0x33, 0xe5, 0x10, 0x16, 0xa8, 0x6d, 0x63, 0xdc, 0x30, 0x8b, 0x3c, 0xe6, 0x3e,
   244  	0x3a, 0xfe, 0x27, 0x3a, 0xbe, 0x26, 0x6a, 0xde, 0x8b, 0xc6, 0x62, 0xb1, 0x27, 0xd9, 0x5d, 0x98,
   245  	0x5d, 0x2a, 0x45, 0x2a, 0x3a, 0x49, 0x82, 0xd5, 0xbc, 0xf0, 0x7f, 0xd2, 0x5f, 0x01, 0x2c, 0x06,
   246  	0xd6, 0x6c, 0x09, 0x93, 0xba, 0x8c, 0x02, 0x87, 0x4c, 0xea, 0x92, 0x31, 0x98, 0x76, 0xa2, 0xf5,
   247  	0x4b, 0xcf, 0x0b, 0x77, 0x66, 0x29, 0x9c, 0x36, 0x24, 0xdd, 0xae, 0xaf, 0x77, 0x9a, 0x37, 0x1c,
   248  	0xd5, 0xd8, 0x7d, 0x98, 0x57, 0x8a, 0x6c, 0xef, 0x80, 0xa9, 0x03, 0x0e, 0x05, 0xf6, 0x18, 0xce,
   249  	0xa4, 0xb8, 0x40, 0x65, 0xea, 0x6d, 0x2d, 0x85, 0xc1, 0x68, 0xb6, 0x23, 0xd6, 0xd3, 0x6f, 0x3f,
   250  	0xa3, 0xa0, 0x18, 0x4b, 0x2c, 0x86, 0x99, 0x14, 0xaf, 0xf0, 0x26, 0x0a, 0x07, 0x8c, 0x2f, 0xb1,
   251  	0x87, 0x10, 0x6a, 0x23, 0x8c, 0xd5, 0xd1, 0x6d, 0x97, 0xc3, 0xc2, 0xe5, 0xf8, 0xd6, 0x95, 0x8a,
   252  	0xbd, 0x94, 0x5f, 0xc3, 0x9d, 0xc1, 0x86, 0xcf, 0x77, 0xf9, 0xb2, 0x8f, 0x10, 0xbe, 0xec, 0xbe,
   253  	0xd0, 0x67, 0x64, 0x8f, 0x8e, 0x46, 0xef, 0xbf, 0xa6, 0x78, 0x75, 0x1c, 0xf4, 0x6f, 0x9c, 0xde,
   254  	0x5a, 0x67, 0x1f, 0x9e, 0x54, 0xb5, 0xf9, 0x64, 0x37, 0x5c, 0x52, 0x9b, 0xb5, 0xb5, 0x54, 0xa4,
   255  	0x69, 0x6b, 0xb2, 0x96, 0x64, 0xa6, 0x7a, 0x99, 0x1d, 0x5c, 0xfc, 0x71, 0x13, 0xba, 0x87, 0x7b,
   256  	0xfa, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x41, 0xe7, 0xd5, 0xeb, 0x3a, 0x03, 0x00, 0x00,
   257  }
   258  
   259  // Reference imports to suppress errors if they are not otherwise used.
   260  var _ context.Context
   261  var _ grpc.ClientConn
   262  
   263  // This is a compile-time assertion to ensure that this generated file
   264  // is compatible with the grpc package it is being compiled against.
   265  const _ = grpc.SupportPackageIsVersion4
   266  
   267  // EtcdClusterAgentClient is the client API for EtcdClusterAgent service.
   268  //
   269  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   270  type EtcdClusterAgentClient interface {
   271  	Invoke(ctx context.Context, in *EtcdClusterRequest, opts ...grpc.CallOption) (*EtcdClusterResponse, error)
   272  }
   273  
   274  type etcdClusterAgentClient struct {
   275  	cc *grpc.ClientConn
   276  }
   277  
   278  func NewEtcdClusterAgentClient(cc *grpc.ClientConn) EtcdClusterAgentClient {
   279  	return &etcdClusterAgentClient{cc}
   280  }
   281  
   282  func (c *etcdClusterAgentClient) Invoke(ctx context.Context, in *EtcdClusterRequest, opts ...grpc.CallOption) (*EtcdClusterResponse, error) {
   283  	out := new(EtcdClusterResponse)
   284  	err := c.cc.Invoke(ctx, "/moc.cloudagent.etcd.EtcdClusterAgent/Invoke", in, out, opts...)
   285  	if err != nil {
   286  		return nil, err
   287  	}
   288  	return out, nil
   289  }
   290  
   291  // EtcdClusterAgentServer is the server API for EtcdClusterAgent service.
   292  type EtcdClusterAgentServer interface {
   293  	Invoke(context.Context, *EtcdClusterRequest) (*EtcdClusterResponse, error)
   294  }
   295  
   296  // UnimplementedEtcdClusterAgentServer can be embedded to have forward compatible implementations.
   297  type UnimplementedEtcdClusterAgentServer struct {
   298  }
   299  
   300  func (*UnimplementedEtcdClusterAgentServer) Invoke(ctx context.Context, req *EtcdClusterRequest) (*EtcdClusterResponse, error) {
   301  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   302  }
   303  
   304  func RegisterEtcdClusterAgentServer(s *grpc.Server, srv EtcdClusterAgentServer) {
   305  	s.RegisterService(&_EtcdClusterAgent_serviceDesc, srv)
   306  }
   307  
   308  func _EtcdClusterAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   309  	in := new(EtcdClusterRequest)
   310  	if err := dec(in); err != nil {
   311  		return nil, err
   312  	}
   313  	if interceptor == nil {
   314  		return srv.(EtcdClusterAgentServer).Invoke(ctx, in)
   315  	}
   316  	info := &grpc.UnaryServerInfo{
   317  		Server:     srv,
   318  		FullMethod: "/moc.cloudagent.etcd.EtcdClusterAgent/Invoke",
   319  	}
   320  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   321  		return srv.(EtcdClusterAgentServer).Invoke(ctx, req.(*EtcdClusterRequest))
   322  	}
   323  	return interceptor(ctx, in, info, handler)
   324  }
   325  
   326  var _EtcdClusterAgent_serviceDesc = grpc.ServiceDesc{
   327  	ServiceName: "moc.cloudagent.etcd.EtcdClusterAgent",
   328  	HandlerType: (*EtcdClusterAgentServer)(nil),
   329  	Methods: []grpc.MethodDesc{
   330  		{
   331  			MethodName: "Invoke",
   332  			Handler:    _EtcdClusterAgent_Invoke_Handler,
   333  		},
   334  	},
   335  	Streams:  []grpc.StreamDesc{},
   336  	Metadata: "moc_cloudagent_etcdcluster.proto",
   337  }