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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: admin/validation/moc_common_validation.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 ValidationOperation int32
    28  
    29  const (
    30  	ValidationOperation_VALIDATE ValidationOperation = 0
    31  )
    32  
    33  var ValidationOperation_name = map[int32]string{
    34  	0: "VALIDATE",
    35  }
    36  
    37  var ValidationOperation_value = map[string]int32{
    38  	"VALIDATE": 0,
    39  }
    40  
    41  func (x ValidationOperation) String() string {
    42  	return proto.EnumName(ValidationOperation_name, int32(x))
    43  }
    44  
    45  func (ValidationOperation) EnumDescriptor() ([]byte, []int) {
    46  	return fileDescriptor_7a61d2e744c19ce7, []int{0}
    47  }
    48  
    49  type ValidationRequest struct {
    50  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    51  	XXX_unrecognized     []byte   `json:"-"`
    52  	XXX_sizecache        int32    `json:"-"`
    53  }
    54  
    55  func (m *ValidationRequest) Reset()         { *m = ValidationRequest{} }
    56  func (m *ValidationRequest) String() string { return proto.CompactTextString(m) }
    57  func (*ValidationRequest) ProtoMessage()    {}
    58  func (*ValidationRequest) Descriptor() ([]byte, []int) {
    59  	return fileDescriptor_7a61d2e744c19ce7, []int{0}
    60  }
    61  
    62  func (m *ValidationRequest) XXX_Unmarshal(b []byte) error {
    63  	return xxx_messageInfo_ValidationRequest.Unmarshal(m, b)
    64  }
    65  func (m *ValidationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    66  	return xxx_messageInfo_ValidationRequest.Marshal(b, m, deterministic)
    67  }
    68  func (m *ValidationRequest) XXX_Merge(src proto.Message) {
    69  	xxx_messageInfo_ValidationRequest.Merge(m, src)
    70  }
    71  func (m *ValidationRequest) XXX_Size() int {
    72  	return xxx_messageInfo_ValidationRequest.Size(m)
    73  }
    74  func (m *ValidationRequest) XXX_DiscardUnknown() {
    75  	xxx_messageInfo_ValidationRequest.DiscardUnknown(m)
    76  }
    77  
    78  var xxx_messageInfo_ValidationRequest proto.InternalMessageInfo
    79  
    80  type ValidationResponse struct {
    81  	Error                string   `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error,omitempty"`
    82  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    83  	XXX_unrecognized     []byte   `json:"-"`
    84  	XXX_sizecache        int32    `json:"-"`
    85  }
    86  
    87  func (m *ValidationResponse) Reset()         { *m = ValidationResponse{} }
    88  func (m *ValidationResponse) String() string { return proto.CompactTextString(m) }
    89  func (*ValidationResponse) ProtoMessage()    {}
    90  func (*ValidationResponse) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_7a61d2e744c19ce7, []int{1}
    92  }
    93  
    94  func (m *ValidationResponse) XXX_Unmarshal(b []byte) error {
    95  	return xxx_messageInfo_ValidationResponse.Unmarshal(m, b)
    96  }
    97  func (m *ValidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    98  	return xxx_messageInfo_ValidationResponse.Marshal(b, m, deterministic)
    99  }
   100  func (m *ValidationResponse) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_ValidationResponse.Merge(m, src)
   102  }
   103  func (m *ValidationResponse) XXX_Size() int {
   104  	return xxx_messageInfo_ValidationResponse.Size(m)
   105  }
   106  func (m *ValidationResponse) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_ValidationResponse.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_ValidationResponse proto.InternalMessageInfo
   111  
   112  func (m *ValidationResponse) GetError() string {
   113  	if m != nil {
   114  		return m.Error
   115  	}
   116  	return ""
   117  }
   118  
   119  func init() {
   120  	proto.RegisterEnum("moc.common.admin.ValidationOperation", ValidationOperation_name, ValidationOperation_value)
   121  	proto.RegisterType((*ValidationRequest)(nil), "moc.common.admin.ValidationRequest")
   122  	proto.RegisterType((*ValidationResponse)(nil), "moc.common.admin.ValidationResponse")
   123  }
   124  
   125  func init() {
   126  	proto.RegisterFile("admin/validation/moc_common_validation.proto", fileDescriptor_7a61d2e744c19ce7)
   127  }
   128  
   129  var fileDescriptor_7a61d2e744c19ce7 = []byte{
   130  	// 221 bytes of a gzipped FileDescriptorProto
   131  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x49, 0x4c, 0xc9, 0xcd,
   132  	0xcc, 0xd3, 0x2f, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0xcc, 0xcf, 0xd3, 0xcf, 0xcd, 0x4f,
   133  	0x8e, 0x4f, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0x8b, 0x47, 0x88, 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4,
   134  	0x0b, 0x09, 0xe4, 0xe6, 0x27, 0xeb, 0x41, 0x24, 0xf5, 0xc0, 0x1a, 0x95, 0x84, 0xb9, 0x04, 0xc3,
   135  	0xe0, 0xaa, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x94, 0xb4, 0xb8, 0x84, 0x90, 0x05, 0x8b,
   136  	0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0x44, 0xb8, 0x58, 0x5d, 0x8b, 0x8a, 0xf2, 0x8b, 0x24, 0x18,
   137  	0x15, 0x18, 0x35, 0x38, 0x83, 0x20, 0x1c, 0x2d, 0x65, 0x2e, 0x61, 0x84, 0x5a, 0xff, 0x82, 0xd4,
   138  	0x22, 0x30, 0x43, 0x88, 0x87, 0x8b, 0x23, 0xcc, 0xd1, 0xc7, 0xd3, 0xc5, 0x31, 0xc4, 0x55, 0x80,
   139  	0xc1, 0x28, 0x83, 0x8b, 0x1f, 0xa1, 0xc8, 0x31, 0x3d, 0x35, 0xaf, 0x44, 0x28, 0x94, 0x8b, 0xcd,
   140  	0x33, 0xaf, 0x2c, 0x3f, 0x3b, 0x55, 0x48, 0x59, 0x0f, 0xdd, 0x55, 0x7a, 0x18, 0x4e, 0x92, 0x52,
   141  	0xc1, 0xaf, 0x08, 0xe2, 0x44, 0x25, 0x06, 0x27, 0xed, 0x28, 0xcd, 0xf4, 0xcc, 0x92, 0x8c, 0xd2,
   142  	0x24, 0x90, 0x5a, 0xfd, 0xdc, 0xcc, 0xe4, 0xa2, 0xfc, 0xe2, 0xfc, 0xb4, 0x12, 0x50, 0xa8, 0xe8,
   143  	0x17, 0x15, 0x24, 0xeb, 0x43, 0x4c, 0xd0, 0x07, 0x9b, 0x90, 0xc4, 0x06, 0x0e, 0x15, 0x63, 0x40,
   144  	0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xcc, 0x8e, 0x08, 0x45, 0x01, 0x00, 0x00,
   145  }
   146  
   147  // Reference imports to suppress errors if they are not otherwise used.
   148  var _ context.Context
   149  var _ grpc.ClientConn
   150  
   151  // This is a compile-time assertion to ensure that this generated file
   152  // is compatible with the grpc package it is being compiled against.
   153  const _ = grpc.SupportPackageIsVersion4
   154  
   155  // ValidationAgentClient is the client API for ValidationAgent service.
   156  //
   157  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   158  type ValidationAgentClient interface {
   159  	Invoke(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error)
   160  }
   161  
   162  type validationAgentClient struct {
   163  	cc *grpc.ClientConn
   164  }
   165  
   166  func NewValidationAgentClient(cc *grpc.ClientConn) ValidationAgentClient {
   167  	return &validationAgentClient{cc}
   168  }
   169  
   170  func (c *validationAgentClient) Invoke(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error) {
   171  	out := new(ValidationResponse)
   172  	err := c.cc.Invoke(ctx, "/moc.common.admin.ValidationAgent/Invoke", in, out, opts...)
   173  	if err != nil {
   174  		return nil, err
   175  	}
   176  	return out, nil
   177  }
   178  
   179  // ValidationAgentServer is the server API for ValidationAgent service.
   180  type ValidationAgentServer interface {
   181  	Invoke(context.Context, *ValidationRequest) (*ValidationResponse, error)
   182  }
   183  
   184  // UnimplementedValidationAgentServer can be embedded to have forward compatible implementations.
   185  type UnimplementedValidationAgentServer struct {
   186  }
   187  
   188  func (*UnimplementedValidationAgentServer) Invoke(ctx context.Context, req *ValidationRequest) (*ValidationResponse, error) {
   189  	return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented")
   190  }
   191  
   192  func RegisterValidationAgentServer(s *grpc.Server, srv ValidationAgentServer) {
   193  	s.RegisterService(&_ValidationAgent_serviceDesc, srv)
   194  }
   195  
   196  func _ValidationAgent_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   197  	in := new(ValidationRequest)
   198  	if err := dec(in); err != nil {
   199  		return nil, err
   200  	}
   201  	if interceptor == nil {
   202  		return srv.(ValidationAgentServer).Invoke(ctx, in)
   203  	}
   204  	info := &grpc.UnaryServerInfo{
   205  		Server:     srv,
   206  		FullMethod: "/moc.common.admin.ValidationAgent/Invoke",
   207  	}
   208  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   209  		return srv.(ValidationAgentServer).Invoke(ctx, req.(*ValidationRequest))
   210  	}
   211  	return interceptor(ctx, in, info, handler)
   212  }
   213  
   214  var _ValidationAgent_serviceDesc = grpc.ServiceDesc{
   215  	ServiceName: "moc.common.admin.ValidationAgent",
   216  	HandlerType: (*ValidationAgentServer)(nil),
   217  	Methods: []grpc.MethodDesc{
   218  		{
   219  			MethodName: "Invoke",
   220  			Handler:    _ValidationAgent_Invoke_Handler,
   221  		},
   222  	},
   223  	Streams:  []grpc.StreamDesc{},
   224  	Metadata: "admin/validation/moc_common_validation.proto",
   225  }