github.com/ovsinc/prototool@v1.3.0/internal/cmd/testdata/grpc/gen/grpcpb/grpc.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: grpc.proto
     3  
     4  package grpcpb
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  
    10  import strings "strings"
    11  import reflect "reflect"
    12  
    13  import context "golang.org/x/net/context"
    14  import grpc "google.golang.org/grpc"
    15  
    16  import io "io"
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    28  
    29  type ExclamationRequest struct {
    30  	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    31  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    32  	XXX_sizecache        int32    `json:"-"`
    33  }
    34  
    35  func (m *ExclamationRequest) Reset()      { *m = ExclamationRequest{} }
    36  func (*ExclamationRequest) ProtoMessage() {}
    37  func (*ExclamationRequest) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_grpc_8ab98fc7aa6d7062, []int{0}
    39  }
    40  func (m *ExclamationRequest) XXX_Unmarshal(b []byte) error {
    41  	return m.Unmarshal(b)
    42  }
    43  func (m *ExclamationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	if deterministic {
    45  		return xxx_messageInfo_ExclamationRequest.Marshal(b, m, deterministic)
    46  	} else {
    47  		b = b[:cap(b)]
    48  		n, err := m.MarshalTo(b)
    49  		if err != nil {
    50  			return nil, err
    51  		}
    52  		return b[:n], nil
    53  	}
    54  }
    55  func (dst *ExclamationRequest) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_ExclamationRequest.Merge(dst, src)
    57  }
    58  func (m *ExclamationRequest) XXX_Size() int {
    59  	return m.Size()
    60  }
    61  func (m *ExclamationRequest) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_ExclamationRequest.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_ExclamationRequest proto.InternalMessageInfo
    66  
    67  func (m *ExclamationRequest) GetValue() string {
    68  	if m != nil {
    69  		return m.Value
    70  	}
    71  	return ""
    72  }
    73  
    74  type ExclamationResponse struct {
    75  	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    76  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    77  	XXX_sizecache        int32    `json:"-"`
    78  }
    79  
    80  func (m *ExclamationResponse) Reset()      { *m = ExclamationResponse{} }
    81  func (*ExclamationResponse) ProtoMessage() {}
    82  func (*ExclamationResponse) Descriptor() ([]byte, []int) {
    83  	return fileDescriptor_grpc_8ab98fc7aa6d7062, []int{1}
    84  }
    85  func (m *ExclamationResponse) XXX_Unmarshal(b []byte) error {
    86  	return m.Unmarshal(b)
    87  }
    88  func (m *ExclamationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    89  	if deterministic {
    90  		return xxx_messageInfo_ExclamationResponse.Marshal(b, m, deterministic)
    91  	} else {
    92  		b = b[:cap(b)]
    93  		n, err := m.MarshalTo(b)
    94  		if err != nil {
    95  			return nil, err
    96  		}
    97  		return b[:n], nil
    98  	}
    99  }
   100  func (dst *ExclamationResponse) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_ExclamationResponse.Merge(dst, src)
   102  }
   103  func (m *ExclamationResponse) XXX_Size() int {
   104  	return m.Size()
   105  }
   106  func (m *ExclamationResponse) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_ExclamationResponse.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_ExclamationResponse proto.InternalMessageInfo
   111  
   112  func (m *ExclamationResponse) GetValue() string {
   113  	if m != nil {
   114  		return m.Value
   115  	}
   116  	return ""
   117  }
   118  
   119  func init() {
   120  	proto.RegisterType((*ExclamationRequest)(nil), "grpc.ExclamationRequest")
   121  	proto.RegisterType((*ExclamationResponse)(nil), "grpc.ExclamationResponse")
   122  }
   123  func (this *ExclamationRequest) Equal(that interface{}) bool {
   124  	if that == nil {
   125  		return this == nil
   126  	}
   127  
   128  	that1, ok := that.(*ExclamationRequest)
   129  	if !ok {
   130  		that2, ok := that.(ExclamationRequest)
   131  		if ok {
   132  			that1 = &that2
   133  		} else {
   134  			return false
   135  		}
   136  	}
   137  	if that1 == nil {
   138  		return this == nil
   139  	} else if this == nil {
   140  		return false
   141  	}
   142  	if this.Value != that1.Value {
   143  		return false
   144  	}
   145  	return true
   146  }
   147  func (this *ExclamationResponse) Equal(that interface{}) bool {
   148  	if that == nil {
   149  		return this == nil
   150  	}
   151  
   152  	that1, ok := that.(*ExclamationResponse)
   153  	if !ok {
   154  		that2, ok := that.(ExclamationResponse)
   155  		if ok {
   156  			that1 = &that2
   157  		} else {
   158  			return false
   159  		}
   160  	}
   161  	if that1 == nil {
   162  		return this == nil
   163  	} else if this == nil {
   164  		return false
   165  	}
   166  	if this.Value != that1.Value {
   167  		return false
   168  	}
   169  	return true
   170  }
   171  func (this *ExclamationRequest) GoString() string {
   172  	if this == nil {
   173  		return "nil"
   174  	}
   175  	s := make([]string, 0, 5)
   176  	s = append(s, "&grpcpb.ExclamationRequest{")
   177  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
   178  	s = append(s, "}")
   179  	return strings.Join(s, "")
   180  }
   181  func (this *ExclamationResponse) GoString() string {
   182  	if this == nil {
   183  		return "nil"
   184  	}
   185  	s := make([]string, 0, 5)
   186  	s = append(s, "&grpcpb.ExclamationResponse{")
   187  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
   188  	s = append(s, "}")
   189  	return strings.Join(s, "")
   190  }
   191  func valueToGoStringGrpc(v interface{}, typ string) string {
   192  	rv := reflect.ValueOf(v)
   193  	if rv.IsNil() {
   194  		return "nil"
   195  	}
   196  	pv := reflect.Indirect(rv).Interface()
   197  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   198  }
   199  
   200  // Reference imports to suppress errors if they are not otherwise used.
   201  var _ context.Context
   202  var _ grpc.ClientConn
   203  
   204  // This is a compile-time assertion to ensure that this generated file
   205  // is compatible with the grpc package it is being compiled against.
   206  const _ = grpc.SupportPackageIsVersion4
   207  
   208  // Client API for ExcitedService service
   209  
   210  type ExcitedServiceClient interface {
   211  	// Exclamation adds an exclamation to the request value.
   212  	Exclamation(ctx context.Context, in *ExclamationRequest, opts ...grpc.CallOption) (*ExclamationResponse, error)
   213  	// ExclamationClientStream adds an exclamation to the combined request values.
   214  	ExclamationClientStream(ctx context.Context, opts ...grpc.CallOption) (ExcitedService_ExclamationClientStreamClient, error)
   215  	// ExclamationServerStream adds an exclamation to the request value
   216  	// and streams each character as a response.
   217  	ExclamationServerStream(ctx context.Context, in *ExclamationRequest, opts ...grpc.CallOption) (ExcitedService_ExclamationServerStreamClient, error)
   218  	// ExclamationBidiStream adds an exclamation to the each request value.
   219  	ExclamationBidiStream(ctx context.Context, opts ...grpc.CallOption) (ExcitedService_ExclamationBidiStreamClient, error)
   220  }
   221  
   222  type excitedServiceClient struct {
   223  	cc *grpc.ClientConn
   224  }
   225  
   226  func NewExcitedServiceClient(cc *grpc.ClientConn) ExcitedServiceClient {
   227  	return &excitedServiceClient{cc}
   228  }
   229  
   230  func (c *excitedServiceClient) Exclamation(ctx context.Context, in *ExclamationRequest, opts ...grpc.CallOption) (*ExclamationResponse, error) {
   231  	out := new(ExclamationResponse)
   232  	err := c.cc.Invoke(ctx, "/grpc.ExcitedService/Exclamation", in, out, opts...)
   233  	if err != nil {
   234  		return nil, err
   235  	}
   236  	return out, nil
   237  }
   238  
   239  func (c *excitedServiceClient) ExclamationClientStream(ctx context.Context, opts ...grpc.CallOption) (ExcitedService_ExclamationClientStreamClient, error) {
   240  	stream, err := c.cc.NewStream(ctx, &_ExcitedService_serviceDesc.Streams[0], "/grpc.ExcitedService/ExclamationClientStream", opts...)
   241  	if err != nil {
   242  		return nil, err
   243  	}
   244  	x := &excitedServiceExclamationClientStreamClient{stream}
   245  	return x, nil
   246  }
   247  
   248  type ExcitedService_ExclamationClientStreamClient interface {
   249  	Send(*ExclamationRequest) error
   250  	CloseAndRecv() (*ExclamationResponse, error)
   251  	grpc.ClientStream
   252  }
   253  
   254  type excitedServiceExclamationClientStreamClient struct {
   255  	grpc.ClientStream
   256  }
   257  
   258  func (x *excitedServiceExclamationClientStreamClient) Send(m *ExclamationRequest) error {
   259  	return x.ClientStream.SendMsg(m)
   260  }
   261  
   262  func (x *excitedServiceExclamationClientStreamClient) CloseAndRecv() (*ExclamationResponse, error) {
   263  	if err := x.ClientStream.CloseSend(); err != nil {
   264  		return nil, err
   265  	}
   266  	m := new(ExclamationResponse)
   267  	if err := x.ClientStream.RecvMsg(m); err != nil {
   268  		return nil, err
   269  	}
   270  	return m, nil
   271  }
   272  
   273  func (c *excitedServiceClient) ExclamationServerStream(ctx context.Context, in *ExclamationRequest, opts ...grpc.CallOption) (ExcitedService_ExclamationServerStreamClient, error) {
   274  	stream, err := c.cc.NewStream(ctx, &_ExcitedService_serviceDesc.Streams[1], "/grpc.ExcitedService/ExclamationServerStream", opts...)
   275  	if err != nil {
   276  		return nil, err
   277  	}
   278  	x := &excitedServiceExclamationServerStreamClient{stream}
   279  	if err := x.ClientStream.SendMsg(in); err != nil {
   280  		return nil, err
   281  	}
   282  	if err := x.ClientStream.CloseSend(); err != nil {
   283  		return nil, err
   284  	}
   285  	return x, nil
   286  }
   287  
   288  type ExcitedService_ExclamationServerStreamClient interface {
   289  	Recv() (*ExclamationResponse, error)
   290  	grpc.ClientStream
   291  }
   292  
   293  type excitedServiceExclamationServerStreamClient struct {
   294  	grpc.ClientStream
   295  }
   296  
   297  func (x *excitedServiceExclamationServerStreamClient) Recv() (*ExclamationResponse, error) {
   298  	m := new(ExclamationResponse)
   299  	if err := x.ClientStream.RecvMsg(m); err != nil {
   300  		return nil, err
   301  	}
   302  	return m, nil
   303  }
   304  
   305  func (c *excitedServiceClient) ExclamationBidiStream(ctx context.Context, opts ...grpc.CallOption) (ExcitedService_ExclamationBidiStreamClient, error) {
   306  	stream, err := c.cc.NewStream(ctx, &_ExcitedService_serviceDesc.Streams[2], "/grpc.ExcitedService/ExclamationBidiStream", opts...)
   307  	if err != nil {
   308  		return nil, err
   309  	}
   310  	x := &excitedServiceExclamationBidiStreamClient{stream}
   311  	return x, nil
   312  }
   313  
   314  type ExcitedService_ExclamationBidiStreamClient interface {
   315  	Send(*ExclamationRequest) error
   316  	Recv() (*ExclamationResponse, error)
   317  	grpc.ClientStream
   318  }
   319  
   320  type excitedServiceExclamationBidiStreamClient struct {
   321  	grpc.ClientStream
   322  }
   323  
   324  func (x *excitedServiceExclamationBidiStreamClient) Send(m *ExclamationRequest) error {
   325  	return x.ClientStream.SendMsg(m)
   326  }
   327  
   328  func (x *excitedServiceExclamationBidiStreamClient) Recv() (*ExclamationResponse, error) {
   329  	m := new(ExclamationResponse)
   330  	if err := x.ClientStream.RecvMsg(m); err != nil {
   331  		return nil, err
   332  	}
   333  	return m, nil
   334  }
   335  
   336  // Server API for ExcitedService service
   337  
   338  type ExcitedServiceServer interface {
   339  	// Exclamation adds an exclamation to the request value.
   340  	Exclamation(context.Context, *ExclamationRequest) (*ExclamationResponse, error)
   341  	// ExclamationClientStream adds an exclamation to the combined request values.
   342  	ExclamationClientStream(ExcitedService_ExclamationClientStreamServer) error
   343  	// ExclamationServerStream adds an exclamation to the request value
   344  	// and streams each character as a response.
   345  	ExclamationServerStream(*ExclamationRequest, ExcitedService_ExclamationServerStreamServer) error
   346  	// ExclamationBidiStream adds an exclamation to the each request value.
   347  	ExclamationBidiStream(ExcitedService_ExclamationBidiStreamServer) error
   348  }
   349  
   350  func RegisterExcitedServiceServer(s *grpc.Server, srv ExcitedServiceServer) {
   351  	s.RegisterService(&_ExcitedService_serviceDesc, srv)
   352  }
   353  
   354  func _ExcitedService_Exclamation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   355  	in := new(ExclamationRequest)
   356  	if err := dec(in); err != nil {
   357  		return nil, err
   358  	}
   359  	if interceptor == nil {
   360  		return srv.(ExcitedServiceServer).Exclamation(ctx, in)
   361  	}
   362  	info := &grpc.UnaryServerInfo{
   363  		Server:     srv,
   364  		FullMethod: "/grpc.ExcitedService/Exclamation",
   365  	}
   366  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   367  		return srv.(ExcitedServiceServer).Exclamation(ctx, req.(*ExclamationRequest))
   368  	}
   369  	return interceptor(ctx, in, info, handler)
   370  }
   371  
   372  func _ExcitedService_ExclamationClientStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   373  	return srv.(ExcitedServiceServer).ExclamationClientStream(&excitedServiceExclamationClientStreamServer{stream})
   374  }
   375  
   376  type ExcitedService_ExclamationClientStreamServer interface {
   377  	SendAndClose(*ExclamationResponse) error
   378  	Recv() (*ExclamationRequest, error)
   379  	grpc.ServerStream
   380  }
   381  
   382  type excitedServiceExclamationClientStreamServer struct {
   383  	grpc.ServerStream
   384  }
   385  
   386  func (x *excitedServiceExclamationClientStreamServer) SendAndClose(m *ExclamationResponse) error {
   387  	return x.ServerStream.SendMsg(m)
   388  }
   389  
   390  func (x *excitedServiceExclamationClientStreamServer) Recv() (*ExclamationRequest, error) {
   391  	m := new(ExclamationRequest)
   392  	if err := x.ServerStream.RecvMsg(m); err != nil {
   393  		return nil, err
   394  	}
   395  	return m, nil
   396  }
   397  
   398  func _ExcitedService_ExclamationServerStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   399  	m := new(ExclamationRequest)
   400  	if err := stream.RecvMsg(m); err != nil {
   401  		return err
   402  	}
   403  	return srv.(ExcitedServiceServer).ExclamationServerStream(m, &excitedServiceExclamationServerStreamServer{stream})
   404  }
   405  
   406  type ExcitedService_ExclamationServerStreamServer interface {
   407  	Send(*ExclamationResponse) error
   408  	grpc.ServerStream
   409  }
   410  
   411  type excitedServiceExclamationServerStreamServer struct {
   412  	grpc.ServerStream
   413  }
   414  
   415  func (x *excitedServiceExclamationServerStreamServer) Send(m *ExclamationResponse) error {
   416  	return x.ServerStream.SendMsg(m)
   417  }
   418  
   419  func _ExcitedService_ExclamationBidiStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   420  	return srv.(ExcitedServiceServer).ExclamationBidiStream(&excitedServiceExclamationBidiStreamServer{stream})
   421  }
   422  
   423  type ExcitedService_ExclamationBidiStreamServer interface {
   424  	Send(*ExclamationResponse) error
   425  	Recv() (*ExclamationRequest, error)
   426  	grpc.ServerStream
   427  }
   428  
   429  type excitedServiceExclamationBidiStreamServer struct {
   430  	grpc.ServerStream
   431  }
   432  
   433  func (x *excitedServiceExclamationBidiStreamServer) Send(m *ExclamationResponse) error {
   434  	return x.ServerStream.SendMsg(m)
   435  }
   436  
   437  func (x *excitedServiceExclamationBidiStreamServer) Recv() (*ExclamationRequest, error) {
   438  	m := new(ExclamationRequest)
   439  	if err := x.ServerStream.RecvMsg(m); err != nil {
   440  		return nil, err
   441  	}
   442  	return m, nil
   443  }
   444  
   445  var _ExcitedService_serviceDesc = grpc.ServiceDesc{
   446  	ServiceName: "grpc.ExcitedService",
   447  	HandlerType: (*ExcitedServiceServer)(nil),
   448  	Methods: []grpc.MethodDesc{
   449  		{
   450  			MethodName: "Exclamation",
   451  			Handler:    _ExcitedService_Exclamation_Handler,
   452  		},
   453  	},
   454  	Streams: []grpc.StreamDesc{
   455  		{
   456  			StreamName:    "ExclamationClientStream",
   457  			Handler:       _ExcitedService_ExclamationClientStream_Handler,
   458  			ClientStreams: true,
   459  		},
   460  		{
   461  			StreamName:    "ExclamationServerStream",
   462  			Handler:       _ExcitedService_ExclamationServerStream_Handler,
   463  			ServerStreams: true,
   464  		},
   465  		{
   466  			StreamName:    "ExclamationBidiStream",
   467  			Handler:       _ExcitedService_ExclamationBidiStream_Handler,
   468  			ServerStreams: true,
   469  			ClientStreams: true,
   470  		},
   471  	},
   472  	Metadata: "grpc.proto",
   473  }
   474  
   475  func (m *ExclamationRequest) Marshal() (dAtA []byte, err error) {
   476  	size := m.Size()
   477  	dAtA = make([]byte, size)
   478  	n, err := m.MarshalTo(dAtA)
   479  	if err != nil {
   480  		return nil, err
   481  	}
   482  	return dAtA[:n], nil
   483  }
   484  
   485  func (m *ExclamationRequest) MarshalTo(dAtA []byte) (int, error) {
   486  	var i int
   487  	_ = i
   488  	var l int
   489  	_ = l
   490  	if len(m.Value) > 0 {
   491  		dAtA[i] = 0xa
   492  		i++
   493  		i = encodeVarintGrpc(dAtA, i, uint64(len(m.Value)))
   494  		i += copy(dAtA[i:], m.Value)
   495  	}
   496  	return i, nil
   497  }
   498  
   499  func (m *ExclamationResponse) Marshal() (dAtA []byte, err error) {
   500  	size := m.Size()
   501  	dAtA = make([]byte, size)
   502  	n, err := m.MarshalTo(dAtA)
   503  	if err != nil {
   504  		return nil, err
   505  	}
   506  	return dAtA[:n], nil
   507  }
   508  
   509  func (m *ExclamationResponse) MarshalTo(dAtA []byte) (int, error) {
   510  	var i int
   511  	_ = i
   512  	var l int
   513  	_ = l
   514  	if len(m.Value) > 0 {
   515  		dAtA[i] = 0xa
   516  		i++
   517  		i = encodeVarintGrpc(dAtA, i, uint64(len(m.Value)))
   518  		i += copy(dAtA[i:], m.Value)
   519  	}
   520  	return i, nil
   521  }
   522  
   523  func encodeVarintGrpc(dAtA []byte, offset int, v uint64) int {
   524  	for v >= 1<<7 {
   525  		dAtA[offset] = uint8(v&0x7f | 0x80)
   526  		v >>= 7
   527  		offset++
   528  	}
   529  	dAtA[offset] = uint8(v)
   530  	return offset + 1
   531  }
   532  func (m *ExclamationRequest) Size() (n int) {
   533  	var l int
   534  	_ = l
   535  	l = len(m.Value)
   536  	if l > 0 {
   537  		n += 1 + l + sovGrpc(uint64(l))
   538  	}
   539  	return n
   540  }
   541  
   542  func (m *ExclamationResponse) Size() (n int) {
   543  	var l int
   544  	_ = l
   545  	l = len(m.Value)
   546  	if l > 0 {
   547  		n += 1 + l + sovGrpc(uint64(l))
   548  	}
   549  	return n
   550  }
   551  
   552  func sovGrpc(x uint64) (n int) {
   553  	for {
   554  		n++
   555  		x >>= 7
   556  		if x == 0 {
   557  			break
   558  		}
   559  	}
   560  	return n
   561  }
   562  func sozGrpc(x uint64) (n int) {
   563  	return sovGrpc(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   564  }
   565  func (this *ExclamationRequest) String() string {
   566  	if this == nil {
   567  		return "nil"
   568  	}
   569  	s := strings.Join([]string{`&ExclamationRequest{`,
   570  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
   571  		`}`,
   572  	}, "")
   573  	return s
   574  }
   575  func (this *ExclamationResponse) String() string {
   576  	if this == nil {
   577  		return "nil"
   578  	}
   579  	s := strings.Join([]string{`&ExclamationResponse{`,
   580  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
   581  		`}`,
   582  	}, "")
   583  	return s
   584  }
   585  func valueToStringGrpc(v interface{}) string {
   586  	rv := reflect.ValueOf(v)
   587  	if rv.IsNil() {
   588  		return "nil"
   589  	}
   590  	pv := reflect.Indirect(rv).Interface()
   591  	return fmt.Sprintf("*%v", pv)
   592  }
   593  func (m *ExclamationRequest) Unmarshal(dAtA []byte) error {
   594  	l := len(dAtA)
   595  	iNdEx := 0
   596  	for iNdEx < l {
   597  		preIndex := iNdEx
   598  		var wire uint64
   599  		for shift := uint(0); ; shift += 7 {
   600  			if shift >= 64 {
   601  				return ErrIntOverflowGrpc
   602  			}
   603  			if iNdEx >= l {
   604  				return io.ErrUnexpectedEOF
   605  			}
   606  			b := dAtA[iNdEx]
   607  			iNdEx++
   608  			wire |= (uint64(b) & 0x7F) << shift
   609  			if b < 0x80 {
   610  				break
   611  			}
   612  		}
   613  		fieldNum := int32(wire >> 3)
   614  		wireType := int(wire & 0x7)
   615  		if wireType == 4 {
   616  			return fmt.Errorf("proto: ExclamationRequest: wiretype end group for non-group")
   617  		}
   618  		if fieldNum <= 0 {
   619  			return fmt.Errorf("proto: ExclamationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   620  		}
   621  		switch fieldNum {
   622  		case 1:
   623  			if wireType != 2 {
   624  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
   625  			}
   626  			var stringLen uint64
   627  			for shift := uint(0); ; shift += 7 {
   628  				if shift >= 64 {
   629  					return ErrIntOverflowGrpc
   630  				}
   631  				if iNdEx >= l {
   632  					return io.ErrUnexpectedEOF
   633  				}
   634  				b := dAtA[iNdEx]
   635  				iNdEx++
   636  				stringLen |= (uint64(b) & 0x7F) << shift
   637  				if b < 0x80 {
   638  					break
   639  				}
   640  			}
   641  			intStringLen := int(stringLen)
   642  			if intStringLen < 0 {
   643  				return ErrInvalidLengthGrpc
   644  			}
   645  			postIndex := iNdEx + intStringLen
   646  			if postIndex > l {
   647  				return io.ErrUnexpectedEOF
   648  			}
   649  			m.Value = string(dAtA[iNdEx:postIndex])
   650  			iNdEx = postIndex
   651  		default:
   652  			iNdEx = preIndex
   653  			skippy, err := skipGrpc(dAtA[iNdEx:])
   654  			if err != nil {
   655  				return err
   656  			}
   657  			if skippy < 0 {
   658  				return ErrInvalidLengthGrpc
   659  			}
   660  			if (iNdEx + skippy) > l {
   661  				return io.ErrUnexpectedEOF
   662  			}
   663  			iNdEx += skippy
   664  		}
   665  	}
   666  
   667  	if iNdEx > l {
   668  		return io.ErrUnexpectedEOF
   669  	}
   670  	return nil
   671  }
   672  func (m *ExclamationResponse) Unmarshal(dAtA []byte) error {
   673  	l := len(dAtA)
   674  	iNdEx := 0
   675  	for iNdEx < l {
   676  		preIndex := iNdEx
   677  		var wire uint64
   678  		for shift := uint(0); ; shift += 7 {
   679  			if shift >= 64 {
   680  				return ErrIntOverflowGrpc
   681  			}
   682  			if iNdEx >= l {
   683  				return io.ErrUnexpectedEOF
   684  			}
   685  			b := dAtA[iNdEx]
   686  			iNdEx++
   687  			wire |= (uint64(b) & 0x7F) << shift
   688  			if b < 0x80 {
   689  				break
   690  			}
   691  		}
   692  		fieldNum := int32(wire >> 3)
   693  		wireType := int(wire & 0x7)
   694  		if wireType == 4 {
   695  			return fmt.Errorf("proto: ExclamationResponse: wiretype end group for non-group")
   696  		}
   697  		if fieldNum <= 0 {
   698  			return fmt.Errorf("proto: ExclamationResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   699  		}
   700  		switch fieldNum {
   701  		case 1:
   702  			if wireType != 2 {
   703  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
   704  			}
   705  			var stringLen uint64
   706  			for shift := uint(0); ; shift += 7 {
   707  				if shift >= 64 {
   708  					return ErrIntOverflowGrpc
   709  				}
   710  				if iNdEx >= l {
   711  					return io.ErrUnexpectedEOF
   712  				}
   713  				b := dAtA[iNdEx]
   714  				iNdEx++
   715  				stringLen |= (uint64(b) & 0x7F) << shift
   716  				if b < 0x80 {
   717  					break
   718  				}
   719  			}
   720  			intStringLen := int(stringLen)
   721  			if intStringLen < 0 {
   722  				return ErrInvalidLengthGrpc
   723  			}
   724  			postIndex := iNdEx + intStringLen
   725  			if postIndex > l {
   726  				return io.ErrUnexpectedEOF
   727  			}
   728  			m.Value = string(dAtA[iNdEx:postIndex])
   729  			iNdEx = postIndex
   730  		default:
   731  			iNdEx = preIndex
   732  			skippy, err := skipGrpc(dAtA[iNdEx:])
   733  			if err != nil {
   734  				return err
   735  			}
   736  			if skippy < 0 {
   737  				return ErrInvalidLengthGrpc
   738  			}
   739  			if (iNdEx + skippy) > l {
   740  				return io.ErrUnexpectedEOF
   741  			}
   742  			iNdEx += skippy
   743  		}
   744  	}
   745  
   746  	if iNdEx > l {
   747  		return io.ErrUnexpectedEOF
   748  	}
   749  	return nil
   750  }
   751  func skipGrpc(dAtA []byte) (n int, err error) {
   752  	l := len(dAtA)
   753  	iNdEx := 0
   754  	for iNdEx < l {
   755  		var wire uint64
   756  		for shift := uint(0); ; shift += 7 {
   757  			if shift >= 64 {
   758  				return 0, ErrIntOverflowGrpc
   759  			}
   760  			if iNdEx >= l {
   761  				return 0, io.ErrUnexpectedEOF
   762  			}
   763  			b := dAtA[iNdEx]
   764  			iNdEx++
   765  			wire |= (uint64(b) & 0x7F) << shift
   766  			if b < 0x80 {
   767  				break
   768  			}
   769  		}
   770  		wireType := int(wire & 0x7)
   771  		switch wireType {
   772  		case 0:
   773  			for shift := uint(0); ; shift += 7 {
   774  				if shift >= 64 {
   775  					return 0, ErrIntOverflowGrpc
   776  				}
   777  				if iNdEx >= l {
   778  					return 0, io.ErrUnexpectedEOF
   779  				}
   780  				iNdEx++
   781  				if dAtA[iNdEx-1] < 0x80 {
   782  					break
   783  				}
   784  			}
   785  			return iNdEx, nil
   786  		case 1:
   787  			iNdEx += 8
   788  			return iNdEx, nil
   789  		case 2:
   790  			var length int
   791  			for shift := uint(0); ; shift += 7 {
   792  				if shift >= 64 {
   793  					return 0, ErrIntOverflowGrpc
   794  				}
   795  				if iNdEx >= l {
   796  					return 0, io.ErrUnexpectedEOF
   797  				}
   798  				b := dAtA[iNdEx]
   799  				iNdEx++
   800  				length |= (int(b) & 0x7F) << shift
   801  				if b < 0x80 {
   802  					break
   803  				}
   804  			}
   805  			iNdEx += length
   806  			if length < 0 {
   807  				return 0, ErrInvalidLengthGrpc
   808  			}
   809  			return iNdEx, nil
   810  		case 3:
   811  			for {
   812  				var innerWire uint64
   813  				var start int = iNdEx
   814  				for shift := uint(0); ; shift += 7 {
   815  					if shift >= 64 {
   816  						return 0, ErrIntOverflowGrpc
   817  					}
   818  					if iNdEx >= l {
   819  						return 0, io.ErrUnexpectedEOF
   820  					}
   821  					b := dAtA[iNdEx]
   822  					iNdEx++
   823  					innerWire |= (uint64(b) & 0x7F) << shift
   824  					if b < 0x80 {
   825  						break
   826  					}
   827  				}
   828  				innerWireType := int(innerWire & 0x7)
   829  				if innerWireType == 4 {
   830  					break
   831  				}
   832  				next, err := skipGrpc(dAtA[start:])
   833  				if err != nil {
   834  					return 0, err
   835  				}
   836  				iNdEx = start + next
   837  			}
   838  			return iNdEx, nil
   839  		case 4:
   840  			return iNdEx, nil
   841  		case 5:
   842  			iNdEx += 4
   843  			return iNdEx, nil
   844  		default:
   845  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   846  		}
   847  	}
   848  	panic("unreachable")
   849  }
   850  
   851  var (
   852  	ErrInvalidLengthGrpc = fmt.Errorf("proto: negative length found during unmarshaling")
   853  	ErrIntOverflowGrpc   = fmt.Errorf("proto: integer overflow")
   854  )
   855  
   856  func init() { proto.RegisterFile("grpc.proto", fileDescriptor_grpc_8ab98fc7aa6d7062) }
   857  
   858  var fileDescriptor_grpc_8ab98fc7aa6d7062 = []byte{
   859  	// 260 bytes of a gzipped FileDescriptorProto
   860  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x2f, 0x2a, 0x48,
   861  	0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0x95, 0xb4, 0xb8, 0x84, 0x5c, 0x2b,
   862  	0x92, 0x73, 0x12, 0x73, 0x13, 0x4b, 0x32, 0xf3, 0xf3, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b,
   863  	0x84, 0x44, 0xb8, 0x58, 0xcb, 0x12, 0x73, 0x4a, 0x53, 0x25, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83,
   864  	0x20, 0x1c, 0x25, 0x6d, 0x2e, 0x61, 0x14, 0xb5, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0xd8, 0x15,
   865  	0x1b, 0x5d, 0x62, 0xe2, 0xe2, 0x73, 0xad, 0x48, 0xce, 0x2c, 0x49, 0x4d, 0x09, 0x4e, 0x2d, 0x2a,
   866  	0xcb, 0x4c, 0x4e, 0x15, 0x72, 0xe1, 0xe2, 0x46, 0xd2, 0x2f, 0x24, 0xa1, 0x07, 0x76, 0x0d, 0xa6,
   867  	0xf5, 0x52, 0x92, 0x58, 0x64, 0x20, 0x96, 0x29, 0x31, 0x08, 0x05, 0x71, 0x89, 0x23, 0x49, 0x38,
   868  	0xe7, 0x64, 0xa6, 0xe6, 0x95, 0x04, 0x97, 0x14, 0xa5, 0x26, 0xe6, 0x92, 0x69, 0xa2, 0x06, 0x23,
   869  	0x9a, 0x99, 0x20, 0xf7, 0xa6, 0x16, 0x51, 0x64, 0xa6, 0x01, 0xc8, 0x4c, 0x51, 0x24, 0x29, 0xa7,
   870  	0xcc, 0x94, 0x4c, 0x0a, 0x5d, 0x69, 0xc0, 0xe8, 0xe4, 0x7d, 0xe1, 0xa1, 0x1c, 0xc3, 0x8d, 0x87,
   871  	0x72, 0x0c, 0x1f, 0x1e, 0xca, 0x31, 0x36, 0x3c, 0x92, 0x63, 0x5c, 0xf1, 0x48, 0x8e, 0xf1, 0xc4,
   872  	0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x7c, 0xf1, 0x48, 0x8e, 0xe1,
   873  	0xc3, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0xb8, 0x38, 0x92, 0xf3, 0x73, 0xc1, 0x26, 0x3a,
   874  	0x71, 0xba, 0x17, 0x15, 0x24, 0x07, 0x80, 0xa2, 0x3d, 0x80, 0x31, 0x8a, 0x0d, 0x24, 0x54, 0x90,
   875  	0x94, 0xc4, 0x06, 0x4e, 0x07, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x30, 0xcc, 0xfa,
   876  	0x15, 0x02, 0x00, 0x00,
   877  }