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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: moc_cloudagent_logging.proto
     3  
     4  package admin
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type GetLogType int32
    28  
    29  const (
    30  	GetLogType_All   GetLogType = 0
    31  	GetLogType_Cloud GetLogType = 1
    32  	GetLogType_Node  GetLogType = 2
    33  )
    34  
    35  var GetLogType_name = map[int32]string{
    36  	0: "All",
    37  	1: "Cloud",
    38  	2: "Node",
    39  }
    40  
    41  var GetLogType_value = map[string]int32{
    42  	"All":   0,
    43  	"Cloud": 1,
    44  	"Node":  2,
    45  }
    46  
    47  func (x GetLogType) String() string {
    48  	return proto.EnumName(GetLogType_name, int32(x))
    49  }
    50  
    51  func (GetLogType) EnumDescriptor() ([]byte, []int) {
    52  	return fileDescriptor_4a618ff824a32a95, []int{0}
    53  }
    54  
    55  type LogRequest struct {
    56  	Type                 GetLogType `protobuf:"varint,1,opt,name=type,proto3,enum=moc.cloudagent.admin.GetLogType" json:"type,omitempty"`
    57  	Location             string     `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
    58  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    59  	XXX_unrecognized     []byte     `json:"-"`
    60  	XXX_sizecache        int32      `json:"-"`
    61  }
    62  
    63  func (m *LogRequest) Reset()         { *m = LogRequest{} }
    64  func (m *LogRequest) String() string { return proto.CompactTextString(m) }
    65  func (*LogRequest) ProtoMessage()    {}
    66  func (*LogRequest) Descriptor() ([]byte, []int) {
    67  	return fileDescriptor_4a618ff824a32a95, []int{0}
    68  }
    69  
    70  func (m *LogRequest) XXX_Unmarshal(b []byte) error {
    71  	return xxx_messageInfo_LogRequest.Unmarshal(m, b)
    72  }
    73  func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    74  	return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic)
    75  }
    76  func (m *LogRequest) XXX_Merge(src proto.Message) {
    77  	xxx_messageInfo_LogRequest.Merge(m, src)
    78  }
    79  func (m *LogRequest) XXX_Size() int {
    80  	return xxx_messageInfo_LogRequest.Size(m)
    81  }
    82  func (m *LogRequest) XXX_DiscardUnknown() {
    83  	xxx_messageInfo_LogRequest.DiscardUnknown(m)
    84  }
    85  
    86  var xxx_messageInfo_LogRequest proto.InternalMessageInfo
    87  
    88  func (m *LogRequest) GetType() GetLogType {
    89  	if m != nil {
    90  		return m.Type
    91  	}
    92  	return GetLogType_All
    93  }
    94  
    95  func (m *LogRequest) GetLocation() string {
    96  	if m != nil {
    97  		return m.Location
    98  	}
    99  	return ""
   100  }
   101  
   102  type LogFileResponse struct {
   103  	File                 []byte   `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`
   104  	Done                 bool     `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
   105  	Error                string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
   106  	Filename             string   `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
   107  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   108  	XXX_unrecognized     []byte   `json:"-"`
   109  	XXX_sizecache        int32    `json:"-"`
   110  }
   111  
   112  func (m *LogFileResponse) Reset()         { *m = LogFileResponse{} }
   113  func (m *LogFileResponse) String() string { return proto.CompactTextString(m) }
   114  func (*LogFileResponse) ProtoMessage()    {}
   115  func (*LogFileResponse) Descriptor() ([]byte, []int) {
   116  	return fileDescriptor_4a618ff824a32a95, []int{1}
   117  }
   118  
   119  func (m *LogFileResponse) XXX_Unmarshal(b []byte) error {
   120  	return xxx_messageInfo_LogFileResponse.Unmarshal(m, b)
   121  }
   122  func (m *LogFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   123  	return xxx_messageInfo_LogFileResponse.Marshal(b, m, deterministic)
   124  }
   125  func (m *LogFileResponse) XXX_Merge(src proto.Message) {
   126  	xxx_messageInfo_LogFileResponse.Merge(m, src)
   127  }
   128  func (m *LogFileResponse) XXX_Size() int {
   129  	return xxx_messageInfo_LogFileResponse.Size(m)
   130  }
   131  func (m *LogFileResponse) XXX_DiscardUnknown() {
   132  	xxx_messageInfo_LogFileResponse.DiscardUnknown(m)
   133  }
   134  
   135  var xxx_messageInfo_LogFileResponse proto.InternalMessageInfo
   136  
   137  func (m *LogFileResponse) GetFile() []byte {
   138  	if m != nil {
   139  		return m.File
   140  	}
   141  	return nil
   142  }
   143  
   144  func (m *LogFileResponse) GetDone() bool {
   145  	if m != nil {
   146  		return m.Done
   147  	}
   148  	return false
   149  }
   150  
   151  func (m *LogFileResponse) GetError() string {
   152  	if m != nil {
   153  		return m.Error
   154  	}
   155  	return ""
   156  }
   157  
   158  func (m *LogFileResponse) GetFilename() string {
   159  	if m != nil {
   160  		return m.Filename
   161  	}
   162  	return ""
   163  }
   164  
   165  type SetResponse struct {
   166  	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
   167  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   168  	XXX_unrecognized     []byte   `json:"-"`
   169  	XXX_sizecache        int32    `json:"-"`
   170  }
   171  
   172  func (m *SetResponse) Reset()         { *m = SetResponse{} }
   173  func (m *SetResponse) String() string { return proto.CompactTextString(m) }
   174  func (*SetResponse) ProtoMessage()    {}
   175  func (*SetResponse) Descriptor() ([]byte, []int) {
   176  	return fileDescriptor_4a618ff824a32a95, []int{2}
   177  }
   178  
   179  func (m *SetResponse) XXX_Unmarshal(b []byte) error {
   180  	return xxx_messageInfo_SetResponse.Unmarshal(m, b)
   181  }
   182  func (m *SetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   183  	return xxx_messageInfo_SetResponse.Marshal(b, m, deterministic)
   184  }
   185  func (m *SetResponse) XXX_Merge(src proto.Message) {
   186  	xxx_messageInfo_SetResponse.Merge(m, src)
   187  }
   188  func (m *SetResponse) XXX_Size() int {
   189  	return xxx_messageInfo_SetResponse.Size(m)
   190  }
   191  func (m *SetResponse) XXX_DiscardUnknown() {
   192  	xxx_messageInfo_SetResponse.DiscardUnknown(m)
   193  }
   194  
   195  var xxx_messageInfo_SetResponse proto.InternalMessageInfo
   196  
   197  func (m *SetResponse) GetError() string {
   198  	if m != nil {
   199  		return m.Error
   200  	}
   201  	return ""
   202  }
   203  
   204  type SetRequest struct {
   205  	Verbositylevel       int32    `protobuf:"varint,1,opt,name=verbositylevel,proto3" json:"verbositylevel,omitempty"`
   206  	IncludeNodeagents    bool     `protobuf:"varint,2,opt,name=include_nodeagents,json=includeNodeagents,proto3" json:"include_nodeagents,omitempty"`
   207  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   208  	XXX_unrecognized     []byte   `json:"-"`
   209  	XXX_sizecache        int32    `json:"-"`
   210  }
   211  
   212  func (m *SetRequest) Reset()         { *m = SetRequest{} }
   213  func (m *SetRequest) String() string { return proto.CompactTextString(m) }
   214  func (*SetRequest) ProtoMessage()    {}
   215  func (*SetRequest) Descriptor() ([]byte, []int) {
   216  	return fileDescriptor_4a618ff824a32a95, []int{3}
   217  }
   218  
   219  func (m *SetRequest) XXX_Unmarshal(b []byte) error {
   220  	return xxx_messageInfo_SetRequest.Unmarshal(m, b)
   221  }
   222  func (m *SetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   223  	return xxx_messageInfo_SetRequest.Marshal(b, m, deterministic)
   224  }
   225  func (m *SetRequest) XXX_Merge(src proto.Message) {
   226  	xxx_messageInfo_SetRequest.Merge(m, src)
   227  }
   228  func (m *SetRequest) XXX_Size() int {
   229  	return xxx_messageInfo_SetRequest.Size(m)
   230  }
   231  func (m *SetRequest) XXX_DiscardUnknown() {
   232  	xxx_messageInfo_SetRequest.DiscardUnknown(m)
   233  }
   234  
   235  var xxx_messageInfo_SetRequest proto.InternalMessageInfo
   236  
   237  func (m *SetRequest) GetVerbositylevel() int32 {
   238  	if m != nil {
   239  		return m.Verbositylevel
   240  	}
   241  	return 0
   242  }
   243  
   244  func (m *SetRequest) GetIncludeNodeagents() bool {
   245  	if m != nil {
   246  		return m.IncludeNodeagents
   247  	}
   248  	return false
   249  }
   250  
   251  type GetRequest struct {
   252  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   253  	XXX_unrecognized     []byte   `json:"-"`
   254  	XXX_sizecache        int32    `json:"-"`
   255  }
   256  
   257  func (m *GetRequest) Reset()         { *m = GetRequest{} }
   258  func (m *GetRequest) String() string { return proto.CompactTextString(m) }
   259  func (*GetRequest) ProtoMessage()    {}
   260  func (*GetRequest) Descriptor() ([]byte, []int) {
   261  	return fileDescriptor_4a618ff824a32a95, []int{4}
   262  }
   263  
   264  func (m *GetRequest) XXX_Unmarshal(b []byte) error {
   265  	return xxx_messageInfo_GetRequest.Unmarshal(m, b)
   266  }
   267  func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   268  	return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic)
   269  }
   270  func (m *GetRequest) XXX_Merge(src proto.Message) {
   271  	xxx_messageInfo_GetRequest.Merge(m, src)
   272  }
   273  func (m *GetRequest) XXX_Size() int {
   274  	return xxx_messageInfo_GetRequest.Size(m)
   275  }
   276  func (m *GetRequest) XXX_DiscardUnknown() {
   277  	xxx_messageInfo_GetRequest.DiscardUnknown(m)
   278  }
   279  
   280  var xxx_messageInfo_GetRequest proto.InternalMessageInfo
   281  
   282  type GetResponse struct {
   283  	Error                string   `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
   284  	Level                string   `protobuf:"bytes,2,opt,name=level,proto3" json:"level,omitempty"`
   285  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   286  	XXX_unrecognized     []byte   `json:"-"`
   287  	XXX_sizecache        int32    `json:"-"`
   288  }
   289  
   290  func (m *GetResponse) Reset()         { *m = GetResponse{} }
   291  func (m *GetResponse) String() string { return proto.CompactTextString(m) }
   292  func (*GetResponse) ProtoMessage()    {}
   293  func (*GetResponse) Descriptor() ([]byte, []int) {
   294  	return fileDescriptor_4a618ff824a32a95, []int{5}
   295  }
   296  
   297  func (m *GetResponse) XXX_Unmarshal(b []byte) error {
   298  	return xxx_messageInfo_GetResponse.Unmarshal(m, b)
   299  }
   300  func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   301  	return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic)
   302  }
   303  func (m *GetResponse) XXX_Merge(src proto.Message) {
   304  	xxx_messageInfo_GetResponse.Merge(m, src)
   305  }
   306  func (m *GetResponse) XXX_Size() int {
   307  	return xxx_messageInfo_GetResponse.Size(m)
   308  }
   309  func (m *GetResponse) XXX_DiscardUnknown() {
   310  	xxx_messageInfo_GetResponse.DiscardUnknown(m)
   311  }
   312  
   313  var xxx_messageInfo_GetResponse proto.InternalMessageInfo
   314  
   315  func (m *GetResponse) GetError() string {
   316  	if m != nil {
   317  		return m.Error
   318  	}
   319  	return ""
   320  }
   321  
   322  func (m *GetResponse) GetLevel() string {
   323  	if m != nil {
   324  		return m.Level
   325  	}
   326  	return ""
   327  }
   328  
   329  func init() {
   330  	proto.RegisterEnum("moc.cloudagent.admin.GetLogType", GetLogType_name, GetLogType_value)
   331  	proto.RegisterType((*LogRequest)(nil), "moc.cloudagent.admin.LogRequest")
   332  	proto.RegisterType((*LogFileResponse)(nil), "moc.cloudagent.admin.LogFileResponse")
   333  	proto.RegisterType((*SetResponse)(nil), "moc.cloudagent.admin.SetResponse")
   334  	proto.RegisterType((*SetRequest)(nil), "moc.cloudagent.admin.SetRequest")
   335  	proto.RegisterType((*GetRequest)(nil), "moc.cloudagent.admin.GetRequest")
   336  	proto.RegisterType((*GetResponse)(nil), "moc.cloudagent.admin.GetResponse")
   337  }
   338  
   339  func init() { proto.RegisterFile("moc_cloudagent_logging.proto", fileDescriptor_4a618ff824a32a95) }
   340  
   341  var fileDescriptor_4a618ff824a32a95 = []byte{
   342  	// 413 bytes of a gzipped FileDescriptorProto
   343  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcf, 0x6f, 0xd3, 0x30,
   344  	0x14, 0x5e, 0xd6, 0x16, 0xb2, 0xb7, 0x69, 0x14, 0x6b, 0x87, 0xaa, 0xe2, 0x50, 0x82, 0x40, 0xd3,
   345  	0xa4, 0x25, 0x68, 0x70, 0xe1, 0x38, 0x90, 0xc8, 0x25, 0x42, 0xc2, 0xe3, 0xc4, 0x81, 0x2a, 0x75,
   346  	0xde, 0x8c, 0x85, 0xe3, 0x17, 0x12, 0x67, 0x52, 0xff, 0x7a, 0x90, 0x9d, 0x2e, 0xa9, 0x10, 0xd9,
   347  	0x6e, 0x7e, 0x7e, 0xdf, 0x8f, 0xe7, 0xef, 0x25, 0xf0, 0xa2, 0x24, 0xb1, 0x16, 0x9a, 0xda, 0x22,
   348  	0x97, 0x68, 0xec, 0x5a, 0x93, 0x94, 0xca, 0xc8, 0xb8, 0xaa, 0xc9, 0x12, 0x3b, 0x2b, 0x49, 0xc4,
   349  	0x43, 0x37, 0xce, 0x8b, 0x52, 0x99, 0xe8, 0x07, 0x40, 0x46, 0x92, 0xe3, 0xef, 0x16, 0x1b, 0xcb,
   350  	0xde, 0xc3, 0xd4, 0x6e, 0x2b, 0x5c, 0x04, 0xab, 0xe0, 0xfc, 0xf4, 0x6a, 0x15, 0xff, 0x8f, 0x12,
   351  	0xa7, 0x68, 0x33, 0x92, 0xdf, 0xb6, 0x15, 0x72, 0x8f, 0x66, 0x4b, 0x08, 0x35, 0x89, 0xdc, 0x2a,
   352  	0x32, 0x8b, 0xc3, 0x55, 0x70, 0x7e, 0xc4, 0xfb, 0x3a, 0xfa, 0x05, 0xcf, 0x32, 0x92, 0x9f, 0x95,
   353  	0x46, 0x8e, 0x4d, 0x45, 0xa6, 0x41, 0xc6, 0x60, 0x7a, 0xab, 0x74, 0x67, 0x72, 0xc2, 0xfd, 0xd9,
   354  	0xdd, 0x15, 0x64, 0xd0, 0xd3, 0x43, 0xee, 0xcf, 0xec, 0x0c, 0x66, 0x58, 0xd7, 0x54, 0x2f, 0x26,
   355  	0x5e, 0xb3, 0x2b, 0x9c, 0x99, 0x63, 0x98, 0xbc, 0xc4, 0xc5, 0xb4, 0x33, 0xbb, 0xaf, 0xa3, 0x57,
   356  	0x70, 0x7c, 0x83, 0xb6, 0x37, 0xea, 0x05, 0x82, 0x3d, 0x81, 0x48, 0x00, 0x78, 0x50, 0xf7, 0xe2,
   357  	0x37, 0x70, 0x7a, 0x87, 0xf5, 0x86, 0x1a, 0x65, 0xb7, 0x1a, 0xef, 0x50, 0x7b, 0xf0, 0x8c, 0xff,
   358  	0x73, 0xcb, 0x2e, 0x81, 0x29, 0x23, 0x74, 0x5b, 0xe0, 0xda, 0x50, 0x81, 0x3e, 0x8f, 0x66, 0x37,
   359  	0xee, 0xf3, 0x5d, 0xe7, 0x4b, 0xdf, 0x88, 0x4e, 0x00, 0xd2, 0xde, 0x24, 0xfa, 0x00, 0xc7, 0xe9,
   360  	0x63, 0x73, 0xb9, 0xdb, 0x6e, 0x80, 0x2e, 0xc2, 0xae, 0xb8, 0xb8, 0xf0, 0x42, 0xbb, 0xbc, 0xd9,
   361  	0x53, 0x98, 0x5c, 0x6b, 0x3d, 0x3f, 0x60, 0x47, 0x30, 0xfb, 0xe4, 0xf6, 0x32, 0x0f, 0x58, 0x08,
   362  	0x53, 0x67, 0x3c, 0x3f, 0xbc, 0xfa, 0x13, 0x40, 0x98, 0x91, 0xbc, 0x76, 0x23, 0x30, 0x0e, 0x93,
   363  	0x14, 0x2d, 0x1b, 0xd9, 0xe1, 0xb0, 0xf3, 0xe5, 0xeb, 0x51, 0xc4, 0xfe, 0xd6, 0xa2, 0x83, 0xb7,
   364  	0x01, 0xcb, 0x60, 0x72, 0x33, 0xae, 0x39, 0xa4, 0xba, 0x7c, 0xf9, 0x00, 0xe2, 0x5e, 0x8f, 0x7d,
   365  	0x85, 0xd0, 0x3d, 0xcd, 0xc7, 0x3b, 0xfe, 0xa9, 0x3d, 0x22, 0x99, 0xee, 0x4b, 0x7e, 0x4c, 0xbe,
   366  	0x5f, 0x4a, 0x65, 0x7f, 0xb6, 0x9b, 0x58, 0x50, 0x99, 0x94, 0x4a, 0xd4, 0xd4, 0xd0, 0xad, 0x4d,
   367  	0x4a, 0x12, 0x49, 0x5d, 0x89, 0x64, 0xa0, 0x27, 0x9e, 0xbe, 0x79, 0xe2, 0xff, 0x8d, 0x77, 0x7f,
   368  	0x03, 0x00, 0x00, 0xff, 0xff, 0x08, 0x4b, 0xe4, 0x4b, 0x3b, 0x03, 0x00, 0x00,
   369  }
   370  
   371  // Reference imports to suppress errors if they are not otherwise used.
   372  var _ context.Context
   373  var _ grpc.ClientConn
   374  
   375  // This is a compile-time assertion to ensure that this generated file
   376  // is compatible with the grpc package it is being compiled against.
   377  const _ = grpc.SupportPackageIsVersion4
   378  
   379  // LogAgentClient is the client API for LogAgent service.
   380  //
   381  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   382  type LogAgentClient interface {
   383  	Get(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (LogAgent_GetClient, error)
   384  	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
   385  	GetLevel(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
   386  }
   387  
   388  type logAgentClient struct {
   389  	cc *grpc.ClientConn
   390  }
   391  
   392  func NewLogAgentClient(cc *grpc.ClientConn) LogAgentClient {
   393  	return &logAgentClient{cc}
   394  }
   395  
   396  func (c *logAgentClient) Get(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (LogAgent_GetClient, error) {
   397  	stream, err := c.cc.NewStream(ctx, &_LogAgent_serviceDesc.Streams[0], "/moc.cloudagent.admin.LogAgent/Get", opts...)
   398  	if err != nil {
   399  		return nil, err
   400  	}
   401  	x := &logAgentGetClient{stream}
   402  	if err := x.ClientStream.SendMsg(in); err != nil {
   403  		return nil, err
   404  	}
   405  	if err := x.ClientStream.CloseSend(); err != nil {
   406  		return nil, err
   407  	}
   408  	return x, nil
   409  }
   410  
   411  type LogAgent_GetClient interface {
   412  	Recv() (*LogFileResponse, error)
   413  	grpc.ClientStream
   414  }
   415  
   416  type logAgentGetClient struct {
   417  	grpc.ClientStream
   418  }
   419  
   420  func (x *logAgentGetClient) Recv() (*LogFileResponse, error) {
   421  	m := new(LogFileResponse)
   422  	if err := x.ClientStream.RecvMsg(m); err != nil {
   423  		return nil, err
   424  	}
   425  	return m, nil
   426  }
   427  
   428  func (c *logAgentClient) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error) {
   429  	out := new(SetResponse)
   430  	err := c.cc.Invoke(ctx, "/moc.cloudagent.admin.LogAgent/Set", in, out, opts...)
   431  	if err != nil {
   432  		return nil, err
   433  	}
   434  	return out, nil
   435  }
   436  
   437  func (c *logAgentClient) GetLevel(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) {
   438  	out := new(GetResponse)
   439  	err := c.cc.Invoke(ctx, "/moc.cloudagent.admin.LogAgent/GetLevel", in, out, opts...)
   440  	if err != nil {
   441  		return nil, err
   442  	}
   443  	return out, nil
   444  }
   445  
   446  // LogAgentServer is the server API for LogAgent service.
   447  type LogAgentServer interface {
   448  	Get(*LogRequest, LogAgent_GetServer) error
   449  	Set(context.Context, *SetRequest) (*SetResponse, error)
   450  	GetLevel(context.Context, *GetRequest) (*GetResponse, error)
   451  }
   452  
   453  // UnimplementedLogAgentServer can be embedded to have forward compatible implementations.
   454  type UnimplementedLogAgentServer struct {
   455  }
   456  
   457  func (*UnimplementedLogAgentServer) Get(req *LogRequest, srv LogAgent_GetServer) error {
   458  	return status.Errorf(codes.Unimplemented, "method Get not implemented")
   459  }
   460  func (*UnimplementedLogAgentServer) Set(ctx context.Context, req *SetRequest) (*SetResponse, error) {
   461  	return nil, status.Errorf(codes.Unimplemented, "method Set not implemented")
   462  }
   463  func (*UnimplementedLogAgentServer) GetLevel(ctx context.Context, req *GetRequest) (*GetResponse, error) {
   464  	return nil, status.Errorf(codes.Unimplemented, "method GetLevel not implemented")
   465  }
   466  
   467  func RegisterLogAgentServer(s *grpc.Server, srv LogAgentServer) {
   468  	s.RegisterService(&_LogAgent_serviceDesc, srv)
   469  }
   470  
   471  func _LogAgent_Get_Handler(srv interface{}, stream grpc.ServerStream) error {
   472  	m := new(LogRequest)
   473  	if err := stream.RecvMsg(m); err != nil {
   474  		return err
   475  	}
   476  	return srv.(LogAgentServer).Get(m, &logAgentGetServer{stream})
   477  }
   478  
   479  type LogAgent_GetServer interface {
   480  	Send(*LogFileResponse) error
   481  	grpc.ServerStream
   482  }
   483  
   484  type logAgentGetServer struct {
   485  	grpc.ServerStream
   486  }
   487  
   488  func (x *logAgentGetServer) Send(m *LogFileResponse) error {
   489  	return x.ServerStream.SendMsg(m)
   490  }
   491  
   492  func _LogAgent_Set_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   493  	in := new(SetRequest)
   494  	if err := dec(in); err != nil {
   495  		return nil, err
   496  	}
   497  	if interceptor == nil {
   498  		return srv.(LogAgentServer).Set(ctx, in)
   499  	}
   500  	info := &grpc.UnaryServerInfo{
   501  		Server:     srv,
   502  		FullMethod: "/moc.cloudagent.admin.LogAgent/Set",
   503  	}
   504  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   505  		return srv.(LogAgentServer).Set(ctx, req.(*SetRequest))
   506  	}
   507  	return interceptor(ctx, in, info, handler)
   508  }
   509  
   510  func _LogAgent_GetLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   511  	in := new(GetRequest)
   512  	if err := dec(in); err != nil {
   513  		return nil, err
   514  	}
   515  	if interceptor == nil {
   516  		return srv.(LogAgentServer).GetLevel(ctx, in)
   517  	}
   518  	info := &grpc.UnaryServerInfo{
   519  		Server:     srv,
   520  		FullMethod: "/moc.cloudagent.admin.LogAgent/GetLevel",
   521  	}
   522  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   523  		return srv.(LogAgentServer).GetLevel(ctx, req.(*GetRequest))
   524  	}
   525  	return interceptor(ctx, in, info, handler)
   526  }
   527  
   528  var _LogAgent_serviceDesc = grpc.ServiceDesc{
   529  	ServiceName: "moc.cloudagent.admin.LogAgent",
   530  	HandlerType: (*LogAgentServer)(nil),
   531  	Methods: []grpc.MethodDesc{
   532  		{
   533  			MethodName: "Set",
   534  			Handler:    _LogAgent_Set_Handler,
   535  		},
   536  		{
   537  			MethodName: "GetLevel",
   538  			Handler:    _LogAgent_GetLevel_Handler,
   539  		},
   540  	},
   541  	Streams: []grpc.StreamDesc{
   542  		{
   543  			StreamName:    "Get",
   544  			Handler:       _LogAgent_Get_Handler,
   545  			ServerStreams: true,
   546  		},
   547  	},
   548  	Metadata: "moc_cloudagent_logging.proto",
   549  }