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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: admin/debug/moc_common_debug.proto
     3  
     4  package admin
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	common "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 DebugOperation int32
    29  
    30  const (
    31  	DebugOperation_DEBUGSERVER DebugOperation = 0
    32  	DebugOperation_STACKTRACE  DebugOperation = 1
    33  )
    34  
    35  var DebugOperation_name = map[int32]string{
    36  	0: "DEBUGSERVER",
    37  	1: "STACKTRACE",
    38  }
    39  
    40  var DebugOperation_value = map[string]int32{
    41  	"DEBUGSERVER": 0,
    42  	"STACKTRACE":  1,
    43  }
    44  
    45  func (x DebugOperation) String() string {
    46  	return proto.EnumName(DebugOperation_name, int32(x))
    47  }
    48  
    49  func (DebugOperation) EnumDescriptor() ([]byte, []int) {
    50  	return fileDescriptor_329de964e3bb5c81, []int{0}
    51  }
    52  
    53  type DebugRequest struct {
    54  	// Operation Type
    55  	OBSOLETE_OperationType DebugOperation `protobuf:"varint,1,opt,name=OBSOLETE_OperationType,json=OBSOLETEOperationType,proto3,enum=moc.common.admin.DebugOperation" json:"OBSOLETE_OperationType,omitempty"` // Deprecated: Do not use.
    56  	// Artibraty data
    57  	Data                 string                         `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
    58  	OperationType        common.ProviderAccessOperation `protobuf:"varint,3,opt,name=OperationType,proto3,enum=moc.ProviderAccessOperation" json:"OperationType,omitempty"`
    59  	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
    60  	XXX_unrecognized     []byte                         `json:"-"`
    61  	XXX_sizecache        int32                          `json:"-"`
    62  }
    63  
    64  func (m *DebugRequest) Reset()         { *m = DebugRequest{} }
    65  func (m *DebugRequest) String() string { return proto.CompactTextString(m) }
    66  func (*DebugRequest) ProtoMessage()    {}
    67  func (*DebugRequest) Descriptor() ([]byte, []int) {
    68  	return fileDescriptor_329de964e3bb5c81, []int{0}
    69  }
    70  
    71  func (m *DebugRequest) XXX_Unmarshal(b []byte) error {
    72  	return xxx_messageInfo_DebugRequest.Unmarshal(m, b)
    73  }
    74  func (m *DebugRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    75  	return xxx_messageInfo_DebugRequest.Marshal(b, m, deterministic)
    76  }
    77  func (m *DebugRequest) XXX_Merge(src proto.Message) {
    78  	xxx_messageInfo_DebugRequest.Merge(m, src)
    79  }
    80  func (m *DebugRequest) XXX_Size() int {
    81  	return xxx_messageInfo_DebugRequest.Size(m)
    82  }
    83  func (m *DebugRequest) XXX_DiscardUnknown() {
    84  	xxx_messageInfo_DebugRequest.DiscardUnknown(m)
    85  }
    86  
    87  var xxx_messageInfo_DebugRequest proto.InternalMessageInfo
    88  
    89  // Deprecated: Do not use.
    90  func (m *DebugRequest) GetOBSOLETE_OperationType() DebugOperation {
    91  	if m != nil {
    92  		return m.OBSOLETE_OperationType
    93  	}
    94  	return DebugOperation_DEBUGSERVER
    95  }
    96  
    97  func (m *DebugRequest) GetData() string {
    98  	if m != nil {
    99  		return m.Data
   100  	}
   101  	return ""
   102  }
   103  
   104  func (m *DebugRequest) GetOperationType() common.ProviderAccessOperation {
   105  	if m != nil {
   106  		return m.OperationType
   107  	}
   108  	return common.ProviderAccessOperation_Unspecified
   109  }
   110  
   111  type DebugResponse struct {
   112  	Result               string   `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"`
   113  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   114  	XXX_unrecognized     []byte   `json:"-"`
   115  	XXX_sizecache        int32    `json:"-"`
   116  }
   117  
   118  func (m *DebugResponse) Reset()         { *m = DebugResponse{} }
   119  func (m *DebugResponse) String() string { return proto.CompactTextString(m) }
   120  func (*DebugResponse) ProtoMessage()    {}
   121  func (*DebugResponse) Descriptor() ([]byte, []int) {
   122  	return fileDescriptor_329de964e3bb5c81, []int{1}
   123  }
   124  
   125  func (m *DebugResponse) XXX_Unmarshal(b []byte) error {
   126  	return xxx_messageInfo_DebugResponse.Unmarshal(m, b)
   127  }
   128  func (m *DebugResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   129  	return xxx_messageInfo_DebugResponse.Marshal(b, m, deterministic)
   130  }
   131  func (m *DebugResponse) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_DebugResponse.Merge(m, src)
   133  }
   134  func (m *DebugResponse) XXX_Size() int {
   135  	return xxx_messageInfo_DebugResponse.Size(m)
   136  }
   137  func (m *DebugResponse) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_DebugResponse.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_DebugResponse proto.InternalMessageInfo
   142  
   143  func (m *DebugResponse) GetResult() string {
   144  	if m != nil {
   145  		return m.Result
   146  	}
   147  	return ""
   148  }
   149  
   150  func init() {
   151  	proto.RegisterEnum("moc.common.admin.DebugOperation", DebugOperation_name, DebugOperation_value)
   152  	proto.RegisterType((*DebugRequest)(nil), "moc.common.admin.DebugRequest")
   153  	proto.RegisterType((*DebugResponse)(nil), "moc.common.admin.DebugResponse")
   154  }
   155  
   156  func init() {
   157  	proto.RegisterFile("admin/debug/moc_common_debug.proto", fileDescriptor_329de964e3bb5c81)
   158  }
   159  
   160  var fileDescriptor_329de964e3bb5c81 = []byte{
   161  	// 323 bytes of a gzipped FileDescriptorProto
   162  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xe1, 0x4a, 0xc3, 0x30,
   163  	0x10, 0x80, 0xd7, 0x29, 0x83, 0x9d, 0x6e, 0x8e, 0x80, 0x73, 0x0c, 0xd1, 0xd1, 0x3f, 0x4e, 0x85,
   164  	0x16, 0xe7, 0x13, 0xb4, 0x5b, 0x11, 0x99, 0x30, 0xc9, 0xaa, 0xa0, 0xfe, 0x18, 0x5d, 0x16, 0x67,
   165  	0xd1, 0xe6, 0x6a, 0x92, 0x0e, 0x7c, 0x3e, 0x5f, 0x4c, 0x96, 0xd6, 0x61, 0x85, 0xfd, 0x6b, 0xef,
   166  	0xbe, 0xef, 0xee, 0x72, 0x07, 0x76, 0xb4, 0x48, 0x62, 0xe1, 0x2e, 0xf8, 0x3c, 0x5b, 0xba, 0x09,
   167  	0xb2, 0x19, 0xc3, 0x24, 0x41, 0x31, 0x33, 0x01, 0x27, 0x95, 0xa8, 0x91, 0xb4, 0x12, 0x64, 0x4e,
   168  	0x1e, 0x77, 0x0c, 0xde, 0x3d, 0xfa, 0x43, 0x16, 0x09, 0x83, 0xda, 0xdf, 0x16, 0xec, 0x8f, 0xd6,
   169  	0x2a, 0xe5, 0x9f, 0x19, 0x57, 0x9a, 0xbc, 0x40, 0x7b, 0xe2, 0x4f, 0x27, 0x77, 0x41, 0x18, 0xcc,
   170  	0x26, 0x29, 0x97, 0x91, 0x8e, 0x51, 0x84, 0x5f, 0x29, 0xef, 0x58, 0x3d, 0xab, 0xdf, 0x1c, 0xf4,
   171  	0x9c, 0xff, 0xc5, 0x1d, 0xe3, 0x6f, 0x58, 0xbf, 0xda, 0xb1, 0xe8, 0xe1, 0x6f, 0x8d, 0x52, 0x09,
   172  	0x42, 0x60, 0x77, 0x14, 0xe9, 0xa8, 0x53, 0xed, 0x59, 0xfd, 0x3a, 0x35, 0xdf, 0xc4, 0x87, 0x46,
   173  	0xb9, 0xcf, 0x8e, 0xe9, 0x73, 0x6c, 0xfa, 0xdc, 0x4b, 0x5c, 0xc5, 0x0b, 0x2e, 0x3d, 0xc6, 0xb8,
   174  	0x52, 0x1b, 0x8e, 0x96, 0x15, 0xfb, 0x0c, 0x1a, 0xc5, 0x23, 0x54, 0x8a, 0x42, 0x71, 0xd2, 0x86,
   175  	0x1a, 0xe5, 0x2a, 0xfb, 0xd0, 0x66, 0xea, 0x3a, 0x2d, 0xfe, 0x2e, 0xae, 0xa0, 0x59, 0x9e, 0x96,
   176  	0x1c, 0xc0, 0xde, 0x28, 0xf0, 0x1f, 0x6e, 0xa6, 0x01, 0x7d, 0x0c, 0x68, 0xab, 0x42, 0x9a, 0x00,
   177  	0xd3, 0xd0, 0x1b, 0x8e, 0x43, 0xea, 0x0d, 0x83, 0x96, 0x35, 0x78, 0x02, 0x30, 0x8a, 0xb7, 0xe4,
   178  	0x42, 0x93, 0x31, 0xd4, 0x6e, 0xc5, 0x0a, 0xdf, 0x39, 0x39, 0xd9, 0xb2, 0x88, 0x62, 0x91, 0xdd,
   179  	0xd3, 0xad, 0xf9, 0x7c, 0x46, 0xbb, 0xe2, 0x5f, 0x3e, 0x9f, 0x2f, 0x63, 0xfd, 0x96, 0xcd, 0xd7,
   180  	0x98, 0x9b, 0xc4, 0x4c, 0xa2, 0xc2, 0x57, 0xbd, 0x3e, 0xab, 0x2b, 0x53, 0xe6, 0xe6, 0xb2, 0x6b,
   181  	0xe4, 0x79, 0xcd, 0x1c, 0xec, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x23, 0xdf, 0x97, 0x01,
   182  	0x02, 0x00, 0x00,
   183  }
   184  
   185  // Reference imports to suppress errors if they are not otherwise used.
   186  var _ context.Context
   187  var _ grpc.ClientConn
   188  
   189  // This is a compile-time assertion to ensure that this generated file
   190  // is compatible with the grpc package it is being compiled against.
   191  const _ = grpc.SupportPackageIsVersion4
   192  
   193  // DebugAgentClient is the client API for DebugAgent service.
   194  //
   195  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   196  type DebugAgentClient interface {
   197  	Invoke(ctx context.Context, in *DebugRequest, opts ...grpc.CallOption) (*DebugResponse, error)
   198  }
   199  
   200  type debugAgentClient struct {
   201  	cc *grpc.ClientConn
   202  }
   203  
   204  func NewDebugAgentClient(cc *grpc.ClientConn) DebugAgentClient {
   205  	return &debugAgentClient{cc}
   206  }
   207  
   208  func (c *debugAgentClient) Invoke(ctx context.Context, in *DebugRequest, opts ...grpc.CallOption) (*DebugResponse, error) {
   209  	out := new(DebugResponse)
   210  	err := c.cc.Invoke(ctx, "/moc.common.admin.DebugAgent/Invoke", in, out, opts...)
   211  	if err != nil {
   212  		return nil, err
   213  	}
   214  	return out, nil
   215  }
   216  
   217  // DebugAgentServer is the server API for DebugAgent service.
   218  type DebugAgentServer interface {
   219  	Invoke(context.Context, *DebugRequest) (*DebugResponse, error)
   220  }
   221  
   222  // UnimplementedDebugAgentServer can be embedded to have forward compatible implementations.
   223  type UnimplementedDebugAgentServer struct {
   224  }
   225  
   226  func (*UnimplementedDebugAgentServer) Invoke(ctx context.Context, req *DebugRequest) (*DebugResponse, error) {
   227  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   228  }
   229  
   230  func RegisterDebugAgentServer(s *grpc.Server, srv DebugAgentServer) {
   231  	s.RegisterService(&_DebugAgent_serviceDesc, srv)
   232  }
   233  
   234  func _DebugAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   235  	in := new(DebugRequest)
   236  	if err := dec(in); err != nil {
   237  		return nil, err
   238  	}
   239  	if interceptor == nil {
   240  		return srv.(DebugAgentServer).Invoke(ctx, in)
   241  	}
   242  	info := &grpc.UnaryServerInfo{
   243  		Server:     srv,
   244  		FullMethod: "/moc.common.admin.DebugAgent/Invoke",
   245  	}
   246  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   247  		return srv.(DebugAgentServer).Invoke(ctx, req.(*DebugRequest))
   248  	}
   249  	return interceptor(ctx, in, info, handler)
   250  }
   251  
   252  var _DebugAgent_serviceDesc = grpc.ServiceDesc{
   253  	ServiceName: "moc.common.admin.DebugAgent",
   254  	HandlerType: (*DebugAgentServer)(nil),
   255  	Methods: []grpc.MethodDesc{
   256  		{
   257  			MethodName: "Invoke",
   258  			Handler:    _DebugAgent_Invoke_Handler,
   259  		},
   260  	},
   261  	Streams:  []grpc.StreamDesc{},
   262  	Metadata: "admin/debug/moc_common_debug.proto",
   263  }