github.com/microsoft/moc@v0.17.1/rpc/nodeagent/admin/moc_nodeagent_credentialmonitor.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: moc_nodeagent_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_dc7a3c9386b615ca, []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_dc7a3c9386b615ca, []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_dc7a3c9386b615ca, []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.nodeagent.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_dc7a3c9386b615ca, []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.nodeagent.admin.CertificateStatus", CertificateStatus_name, CertificateStatus_value) 188 proto.RegisterType((*CredentialMonitorRequest)(nil), "moc.nodeagent.admin.CredentialMonitorRequest") 189 proto.RegisterType((*CredentialMonitorResponse)(nil), "moc.nodeagent.admin.CredentialMonitorResponse") 190 proto.RegisterType((*CredentialMonitor)(nil), "moc.nodeagent.admin.CredentialMonitor") 191 } 192 193 func init() { 194 proto.RegisterFile("moc_nodeagent_credentialmonitor.proto", fileDescriptor_dc7a3c9386b615ca) 195 } 196 197 var fileDescriptor_dc7a3c9386b615ca = []byte{ 198 // 317 bytes of a gzipped FileDescriptorProto 199 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x41, 0x4b, 0x33, 0x31, 200 0x10, 0x86, 0x9b, 0xef, 0xd3, 0x4a, 0xa7, 0x20, 0x6d, 0x14, 0x5d, 0x7b, 0x2a, 0x0b, 0x96, 0x22, 201 0x35, 0x0b, 0xf5, 0x2e, 0x58, 0x11, 0x4f, 0x22, 0x6c, 0x3d, 0x79, 0x29, 0xdb, 0x74, 0x5a, 0x03, 202 0x4d, 0x66, 0xcd, 0x4e, 0xbd, 0x78, 0xf1, 0xa6, 0x7f, 0xc8, 0xff, 0x27, 0xdd, 0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24, 0x6d, 0x88, 0xfe, 0x9b, 0x80, 0xa3, 0xd2, 0xac, 0x57, 0x4b, 0x91, 0x9c, 0xc2, 0xff, 0x5b, 215 0x64, 0x79, 0xbe, 0xe5, 0xeb, 0x14, 0xbb, 0x6d, 0xa9, 0x6d, 0xe3, 0xc5, 0x5e, 0xc2, 0xca, 0x40, 216 0x3d, 0xf6, 0x66, 0x86, 0x9f, 0x16, 0x63, 0xa5, 0xc9, 0x46, 0xd6, 0x68, 0x4f, 0x19, 0x4d, 0x39, 217 0xb2, 0xa4, 0x23, 0x9f, 0xea, 0x68, 0xcd, 0x8a, 0x72, 0xd6, 0xb8, 0x9a, 0x7f, 0xb0, 0x8b, 0xaf, 218 0x00, 0x00, 0x00, 0xff, 0xff, 0x76, 0x3d, 0x1b, 0x68, 0xb7, 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.nodeagent.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.nodeagent.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.nodeagent.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_nodeagent_credentialmonitor.proto", 299 }