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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_credentialmonitor.proto
     3  
     4  package admin
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	_ "github.com/microsoft/moc/rpc/common"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  	math "math"
    15  )
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    27  
    28  type CertificateStatus int32
    29  
    30  const (
    31  	CertificateStatus_Single  CertificateStatus = 0
    32  	CertificateStatus_Overlap CertificateStatus = 1
    33  )
    34  
    35  var CertificateStatus_name = map[int32]string{
    36  	0: "Single",
    37  	1: "Overlap",
    38  }
    39  
    40  var CertificateStatus_value = map[string]int32{
    41  	"Single":  0,
    42  	"Overlap": 1,
    43  }
    44  
    45  func (x CertificateStatus) String() string {
    46  	return proto.EnumName(CertificateStatus_name, int32(x))
    47  }
    48  
    49  func (CertificateStatus) EnumDescriptor() ([]byte, []int) {
    50  	return fileDescriptor_a25fc480cb456098, []int{0}
    51  }
    52  
    53  type CredentialMonitorRequest struct {
    54  	CredentialMonitor    *CredentialMonitor `protobuf:"bytes,1,opt,name=CredentialMonitor,proto3" json:"CredentialMonitor,omitempty"`
    55  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    56  	XXX_unrecognized     []byte             `json:"-"`
    57  	XXX_sizecache        int32              `json:"-"`
    58  }
    59  
    60  func (m *CredentialMonitorRequest) Reset()         { *m = CredentialMonitorRequest{} }
    61  func (m *CredentialMonitorRequest) String() string { return proto.CompactTextString(m) }
    62  func (*CredentialMonitorRequest) ProtoMessage()    {}
    63  func (*CredentialMonitorRequest) Descriptor() ([]byte, []int) {
    64  	return fileDescriptor_a25fc480cb456098, []int{0}
    65  }
    66  
    67  func (m *CredentialMonitorRequest) XXX_Unmarshal(b []byte) error {
    68  	return xxx_messageInfo_CredentialMonitorRequest.Unmarshal(m, b)
    69  }
    70  func (m *CredentialMonitorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    71  	return xxx_messageInfo_CredentialMonitorRequest.Marshal(b, m, deterministic)
    72  }
    73  func (m *CredentialMonitorRequest) XXX_Merge(src proto.Message) {
    74  	xxx_messageInfo_CredentialMonitorRequest.Merge(m, src)
    75  }
    76  func (m *CredentialMonitorRequest) XXX_Size() int {
    77  	return xxx_messageInfo_CredentialMonitorRequest.Size(m)
    78  }
    79  func (m *CredentialMonitorRequest) XXX_DiscardUnknown() {
    80  	xxx_messageInfo_CredentialMonitorRequest.DiscardUnknown(m)
    81  }
    82  
    83  var xxx_messageInfo_CredentialMonitorRequest proto.InternalMessageInfo
    84  
    85  func (m *CredentialMonitorRequest) GetCredentialMonitor() *CredentialMonitor {
    86  	if m != nil {
    87  		return m.CredentialMonitor
    88  	}
    89  	return nil
    90  }
    91  
    92  type CredentialMonitorResponse struct {
    93  	CredentialMonitor    *CredentialMonitor `protobuf:"bytes,1,opt,name=CredentialMonitor,proto3" json:"CredentialMonitor,omitempty"`
    94  	Error                string             `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
    95  	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    96  	XXX_unrecognized     []byte             `json:"-"`
    97  	XXX_sizecache        int32              `json:"-"`
    98  }
    99  
   100  func (m *CredentialMonitorResponse) Reset()         { *m = CredentialMonitorResponse{} }
   101  func (m *CredentialMonitorResponse) String() string { return proto.CompactTextString(m) }
   102  func (*CredentialMonitorResponse) ProtoMessage()    {}
   103  func (*CredentialMonitorResponse) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_a25fc480cb456098, []int{1}
   105  }
   106  
   107  func (m *CredentialMonitorResponse) XXX_Unmarshal(b []byte) error {
   108  	return xxx_messageInfo_CredentialMonitorResponse.Unmarshal(m, b)
   109  }
   110  func (m *CredentialMonitorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   111  	return xxx_messageInfo_CredentialMonitorResponse.Marshal(b, m, deterministic)
   112  }
   113  func (m *CredentialMonitorResponse) XXX_Merge(src proto.Message) {
   114  	xxx_messageInfo_CredentialMonitorResponse.Merge(m, src)
   115  }
   116  func (m *CredentialMonitorResponse) XXX_Size() int {
   117  	return xxx_messageInfo_CredentialMonitorResponse.Size(m)
   118  }
   119  func (m *CredentialMonitorResponse) XXX_DiscardUnknown() {
   120  	xxx_messageInfo_CredentialMonitorResponse.DiscardUnknown(m)
   121  }
   122  
   123  var xxx_messageInfo_CredentialMonitorResponse proto.InternalMessageInfo
   124  
   125  func (m *CredentialMonitorResponse) GetCredentialMonitor() *CredentialMonitor {
   126  	if m != nil {
   127  		return m.CredentialMonitor
   128  	}
   129  	return nil
   130  }
   131  
   132  func (m *CredentialMonitorResponse) GetError() string {
   133  	if m != nil {
   134  		return m.Error
   135  	}
   136  	return ""
   137  }
   138  
   139  type CredentialMonitor struct {
   140  	Certificate          string            `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
   141  	Status               CertificateStatus `protobuf:"varint,2,opt,name=status,proto3,enum=moc.cloudagent.admin.CertificateStatus" json:"status,omitempty"`
   142  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   143  	XXX_unrecognized     []byte            `json:"-"`
   144  	XXX_sizecache        int32             `json:"-"`
   145  }
   146  
   147  func (m *CredentialMonitor) Reset()         { *m = CredentialMonitor{} }
   148  func (m *CredentialMonitor) String() string { return proto.CompactTextString(m) }
   149  func (*CredentialMonitor) ProtoMessage()    {}
   150  func (*CredentialMonitor) Descriptor() ([]byte, []int) {
   151  	return fileDescriptor_a25fc480cb456098, []int{2}
   152  }
   153  
   154  func (m *CredentialMonitor) XXX_Unmarshal(b []byte) error {
   155  	return xxx_messageInfo_CredentialMonitor.Unmarshal(m, b)
   156  }
   157  func (m *CredentialMonitor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   158  	return xxx_messageInfo_CredentialMonitor.Marshal(b, m, deterministic)
   159  }
   160  func (m *CredentialMonitor) XXX_Merge(src proto.Message) {
   161  	xxx_messageInfo_CredentialMonitor.Merge(m, src)
   162  }
   163  func (m *CredentialMonitor) XXX_Size() int {
   164  	return xxx_messageInfo_CredentialMonitor.Size(m)
   165  }
   166  func (m *CredentialMonitor) XXX_DiscardUnknown() {
   167  	xxx_messageInfo_CredentialMonitor.DiscardUnknown(m)
   168  }
   169  
   170  var xxx_messageInfo_CredentialMonitor proto.InternalMessageInfo
   171  
   172  func (m *CredentialMonitor) GetCertificate() string {
   173  	if m != nil {
   174  		return m.Certificate
   175  	}
   176  	return ""
   177  }
   178  
   179  func (m *CredentialMonitor) GetStatus() CertificateStatus {
   180  	if m != nil {
   181  		return m.Status
   182  	}
   183  	return CertificateStatus_Single
   184  }
   185  
   186  func init() {
   187  	proto.RegisterEnum("moc.cloudagent.admin.CertificateStatus", CertificateStatus_name, CertificateStatus_value)
   188  	proto.RegisterType((*CredentialMonitorRequest)(nil), "moc.cloudagent.admin.CredentialMonitorRequest")
   189  	proto.RegisterType((*CredentialMonitorResponse)(nil), "moc.cloudagent.admin.CredentialMonitorResponse")
   190  	proto.RegisterType((*CredentialMonitor)(nil), "moc.cloudagent.admin.CredentialMonitor")
   191  }
   192  
   193  func init() {
   194  	proto.RegisterFile("moc_cloudagent_credentialmonitor.proto", fileDescriptor_a25fc480cb456098)
   195  }
   196  
   197  var fileDescriptor_a25fc480cb456098 = []byte{
   198  	// 317 bytes of a gzipped FileDescriptorProto
   199  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xc1, 0x4a, 0x33, 0x31,
   200  	0x10, 0xc7, 0x9b, 0xef, 0xd3, 0x4a, 0xa7, 0x20, 0x6d, 0x28, 0xba, 0xf6, 0x54, 0xf6, 0x50, 0x8b,
   201  	0x68, 0x02, 0xf5, 0x01, 0xc4, 0x8a, 0x78, 0x12, 0x61, 0x8b, 0x17, 0x2f, 0x65, 0x9b, 0xa6, 0x6d,
   202  	0x60, 0x93, 0xd9, 0x66, 0x67, 0x3d, 0x79, 0xf2, 0xd4, 0x17, 0xf2, 0xfd, 0xc4, 0xdd, 0x62, 0x85,
   203  	0xad, 0xd0, 0x8b, 0xa7, 0x10, 0xe6, 0x3f, 0xbf, 0xdf, 0x90, 0x09, 0xf4, 0x2d, 0xaa, 0x89, 0x4a,
   204  	0x30, 0x9f, 0xc5, 0x0b, 0xed, 0x68, 0xa2, 0xbc, 0x9e, 0x69, 0x47, 0x26, 0x4e, 0x2c, 0x3a, 0x43,
   205  	0xe8, 0x45, 0xea, 0x91, 0x90, 0x77, 0x2c, 0x2a, 0xb1, 0xcd, 0x89, 0x78, 0x66, 0x8d, 0xeb, 0x9e,
   206  	0x16, 0xdd, 0x68, 0x2d, 0xba, 0xcd, 0x51, 0xc6, 0xc3, 0x15, 0x04, 0x77, 0xdf, 0xa4, 0xc7, 0x92,
   207  	0x14, 0xe9, 0x55, 0xae, 0x33, 0xe2, 0xcf, 0xd0, 0xae, 0xd4, 0x02, 0xd6, 0x63, 0x83, 0xe6, 0xf0,
   208  	0x5c, 0xec, 0xd2, 0x88, 0x2a, 0xaa, 0x4a, 0x08, 0xd7, 0x0c, 0xce, 0x76, 0x38, 0xb3, 0x14, 0x5d,
   209  	0xa6, 0xff, 0x48, 0xca, 0x3b, 0x70, 0x78, 0xef, 0x3d, 0xfa, 0xe0, 0x5f, 0x8f, 0x0d, 0x1a, 0x51,
   210  	0x79, 0x09, 0xdf, 0x76, 0xc8, 0x78, 0x1f, 0x9a, 0x4a, 0x7b, 0x32, 0x73, 0xa3, 0x62, 0xd2, 0x85,
   211  	0xbb, 0x31, 0x3a, 0x58, 0x7f, 0x04, 0x2c, 0xfa, 0x59, 0xe0, 0x37, 0x50, 0xcf, 0x28, 0xa6, 0x3c,
   212  	0x2b, 0x98, 0xc7, 0xbf, 0x8e, 0xb7, 0x6d, 0x19, 0x17, 0xf1, 0x68, 0xd3, 0x76, 0x71, 0x09, 0xed,
   213  	0x4a, 0x91, 0x03, 0xd4, 0xc7, 0xc6, 0x2d, 0x12, 0xdd, 0xaa, 0xf1, 0x26, 0x1c, 0x3d, 0xbd, 0x6a,
   214  	0x9f, 0xc4, 0x69, 0x8b, 0x0d, 0xdf, 0x19, 0x9c, 0x54, 0x86, 0xbd, 0xfd, 0x12, 0xf1, 0x25, 0xfc,
   215  	0x7f, 0xd0, 0xc4, 0xc5, 0xbe, 0xef, 0x53, 0xee, 0xb7, 0x2b, 0xf7, 0xce, 0x97, 0xbb, 0x09, 0x6b,
   216  	0x23, 0xf9, 0x72, 0xb5, 0x30, 0xb4, 0xcc, 0xa7, 0x42, 0xa1, 0x95, 0xd6, 0x28, 0x8f, 0x19, 0xce,
   217  	0x49, 0x5a, 0x54, 0xd2, 0xa7, 0x4a, 0x6e, 0x61, 0xb2, 0x80, 0x4d, 0xeb, 0xc5, 0x37, 0xbb, 0xfe,
   218  	0x0c, 0x00, 0x00, 0xff, 0xff, 0x01, 0x8f, 0x4b, 0xfe, 0xbf, 0x02, 0x00, 0x00,
   219  }
   220  
   221  // Reference imports to suppress errors if they are not otherwise used.
   222  var _ context.Context
   223  var _ grpc.ClientConn
   224  
   225  // This is a compile-time assertion to ensure that this generated file
   226  // is compatible with the grpc package it is being compiled against.
   227  const _ = grpc.SupportPackageIsVersion4
   228  
   229  // CredentialMonitorAgentClient is the client API for CredentialMonitorAgent service.
   230  //
   231  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   232  type CredentialMonitorAgentClient interface {
   233  	Get(ctx context.Context, in *CredentialMonitorRequest, opts ...grpc.CallOption) (*CredentialMonitorResponse, error)
   234  }
   235  
   236  type credentialMonitorAgentClient struct {
   237  	cc *grpc.ClientConn
   238  }
   239  
   240  func NewCredentialMonitorAgentClient(cc *grpc.ClientConn) CredentialMonitorAgentClient {
   241  	return &credentialMonitorAgentClient{cc}
   242  }
   243  
   244  func (c *credentialMonitorAgentClient) Get(ctx context.Context, in *CredentialMonitorRequest, opts ...grpc.CallOption) (*CredentialMonitorResponse, error) {
   245  	out := new(CredentialMonitorResponse)
   246  	err := c.cc.Invoke(ctx, "/moc.cloudagent.admin.CredentialMonitorAgent/Get", in, out, opts...)
   247  	if err != nil {
   248  		return nil, err
   249  	}
   250  	return out, nil
   251  }
   252  
   253  // CredentialMonitorAgentServer is the server API for CredentialMonitorAgent service.
   254  type CredentialMonitorAgentServer interface {
   255  	Get(context.Context, *CredentialMonitorRequest) (*CredentialMonitorResponse, error)
   256  }
   257  
   258  // UnimplementedCredentialMonitorAgentServer can be embedded to have forward compatible implementations.
   259  type UnimplementedCredentialMonitorAgentServer struct {
   260  }
   261  
   262  func (*UnimplementedCredentialMonitorAgentServer) Get(ctx context.Context, req *CredentialMonitorRequest) (*CredentialMonitorResponse, error) {
   263  	return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
   264  }
   265  
   266  func RegisterCredentialMonitorAgentServer(s *grpc.Server, srv CredentialMonitorAgentServer) {
   267  	s.RegisterService(&_CredentialMonitorAgent_serviceDesc, srv)
   268  }
   269  
   270  func _CredentialMonitorAgent_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   271  	in := new(CredentialMonitorRequest)
   272  	if err := dec(in); err != nil {
   273  		return nil, err
   274  	}
   275  	if interceptor == nil {
   276  		return srv.(CredentialMonitorAgentServer).Get(ctx, in)
   277  	}
   278  	info := &grpc.UnaryServerInfo{
   279  		Server:     srv,
   280  		FullMethod: "/moc.cloudagent.admin.CredentialMonitorAgent/Get",
   281  	}
   282  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   283  		return srv.(CredentialMonitorAgentServer).Get(ctx, req.(*CredentialMonitorRequest))
   284  	}
   285  	return interceptor(ctx, in, info, handler)
   286  }
   287  
   288  var _CredentialMonitorAgent_serviceDesc = grpc.ServiceDesc{
   289  	ServiceName: "moc.cloudagent.admin.CredentialMonitorAgent",
   290  	HandlerType: (*CredentialMonitorAgentServer)(nil),
   291  	Methods: []grpc.MethodDesc{
   292  		{
   293  			MethodName: "Get",
   294  			Handler:    _CredentialMonitorAgent_Get_Handler,
   295  		},
   296  	},
   297  	Streams:  []grpc.StreamDesc{},
   298  	Metadata: "moc_cloudagent_credentialmonitor.proto",
   299  }