gitee.com/lh-her-team/common@v1.5.1/crypto/tls/credentials/helloworld/helloworld.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: examples/helloworld/helloworld/helloworld.proto
     3  
     4  package helloworld
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	math "math"
    10  
    11  	proto "github.com/golang/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    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  // The request message containing the user's name.
    29  type HelloRequest struct {
    30  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    31  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    32  	XXX_unrecognized     []byte   `json:"-"`
    33  	XXX_sizecache        int32    `json:"-"`
    34  }
    35  
    36  func (m *HelloRequest) Reset()         { *m = HelloRequest{} }
    37  func (m *HelloRequest) String() string { return proto.CompactTextString(m) }
    38  func (*HelloRequest) ProtoMessage()    {}
    39  func (*HelloRequest) Descriptor() ([]byte, []int) {
    40  	return fileDescriptor_b83ea99a5323a2c7, []int{0}
    41  }
    42  
    43  func (m *HelloRequest) XXX_Unmarshal(b []byte) error {
    44  	return xxx_messageInfo_HelloRequest.Unmarshal(m, b)
    45  }
    46  func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    47  	return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic)
    48  }
    49  func (m *HelloRequest) XXX_Merge(src proto.Message) {
    50  	xxx_messageInfo_HelloRequest.Merge(m, src)
    51  }
    52  func (m *HelloRequest) XXX_Size() int {
    53  	return xxx_messageInfo_HelloRequest.Size(m)
    54  }
    55  func (m *HelloRequest) XXX_DiscardUnknown() {
    56  	xxx_messageInfo_HelloRequest.DiscardUnknown(m)
    57  }
    58  
    59  var xxx_messageInfo_HelloRequest proto.InternalMessageInfo
    60  
    61  func (m *HelloRequest) GetName() string {
    62  	if m != nil {
    63  		return m.Name
    64  	}
    65  	return ""
    66  }
    67  
    68  // The response message containing the greetings
    69  type HelloReply struct {
    70  	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    71  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    72  	XXX_unrecognized     []byte   `json:"-"`
    73  	XXX_sizecache        int32    `json:"-"`
    74  }
    75  
    76  func (m *HelloReply) Reset()         { *m = HelloReply{} }
    77  func (m *HelloReply) String() string { return proto.CompactTextString(m) }
    78  func (*HelloReply) ProtoMessage()    {}
    79  func (*HelloReply) Descriptor() ([]byte, []int) {
    80  	return fileDescriptor_b83ea99a5323a2c7, []int{1}
    81  }
    82  
    83  func (m *HelloReply) XXX_Unmarshal(b []byte) error {
    84  	return xxx_messageInfo_HelloReply.Unmarshal(m, b)
    85  }
    86  func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    87  	return xxx_messageInfo_HelloReply.Marshal(b, m, deterministic)
    88  }
    89  func (m *HelloReply) XXX_Merge(src proto.Message) {
    90  	xxx_messageInfo_HelloReply.Merge(m, src)
    91  }
    92  func (m *HelloReply) XXX_Size() int {
    93  	return xxx_messageInfo_HelloReply.Size(m)
    94  }
    95  func (m *HelloReply) XXX_DiscardUnknown() {
    96  	xxx_messageInfo_HelloReply.DiscardUnknown(m)
    97  }
    98  
    99  var xxx_messageInfo_HelloReply proto.InternalMessageInfo
   100  
   101  func (m *HelloReply) GetMessage() string {
   102  	if m != nil {
   103  		return m.Message
   104  	}
   105  	return ""
   106  }
   107  
   108  func init() {
   109  	proto.RegisterType((*HelloRequest)(nil), "helloworld.HelloRequest")
   110  	proto.RegisterType((*HelloReply)(nil), "helloworld.HelloReply")
   111  }
   112  
   113  func init() {
   114  	proto.RegisterFile("examples/helloworld/helloworld/helloworld.proto", fileDescriptor_b83ea99a5323a2c7)
   115  }
   116  
   117  var fileDescriptor_b83ea99a5323a2c7 = []byte{
   118  	// 205 bytes of a gzipped FileDescriptorProto
   119  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4f, 0xad, 0x48, 0xcc,
   120  	0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0xcf, 0x48, 0xcd, 0xc9, 0xc9, 0x2f, 0xcf, 0x2f, 0xca, 0x49, 0xc1,
   121  	0xce, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x42, 0x88, 0x28, 0x29, 0x71, 0xf1, 0x78,
   122  	0x80, 0x78, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x42, 0x5c, 0x2c, 0x79, 0x89, 0xb9,
   123  	0xa9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x60, 0xb6, 0x92, 0x1a, 0x17, 0x17, 0x54, 0x4d,
   124  	0x41, 0x4e, 0xa5, 0x90, 0x04, 0x17, 0x7b, 0x6e, 0x6a, 0x71, 0x71, 0x62, 0x3a, 0x4c, 0x11, 0x8c,
   125  	0x6b, 0xe4, 0xc9, 0xc5, 0xee, 0x5e, 0x94, 0x9a, 0x5a, 0x92, 0x5a, 0x24, 0x64, 0xc7, 0xc5, 0x11,
   126  	0x9c, 0x58, 0x09, 0xd6, 0x25, 0x24, 0xa1, 0x87, 0xe4, 0x02, 0x64, 0xcb, 0xa4, 0xc4, 0xb0, 0xc8,
   127  	0x14, 0xe4, 0x54, 0x2a, 0x31, 0x38, 0xa5, 0x73, 0x49, 0x67, 0xe6, 0xeb, 0xa5, 0x17, 0x15, 0x24,
   128  	0xeb, 0xc1, 0x7c, 0x87, 0xa4, 0xd6, 0x89, 0x1f, 0xac, 0x38, 0x1c, 0xc4, 0x0e, 0x00, 0x79, 0x29,
   129  	0x80, 0x31, 0xca, 0x34, 0x3d, 0x3f, 0x3f, 0x3d, 0x27, 0x55, 0x2f, 0x3d, 0x3f, 0x27, 0x31, 0x2f,
   130  	0x5d, 0x2f, 0xbf, 0x28, 0x5d, 0x1f, 0xa4, 0x9d, 0x40, 0xe0, 0x24, 0xb1, 0x81, 0x83, 0xc4, 0x18,
   131  	0x10, 0x00, 0x00, 0xff, 0xff, 0x46, 0xfe, 0x45, 0x5c, 0x45, 0x01, 0x00, 0x00,
   132  }
   133  
   134  // Reference imports to suppress errors if they are not otherwise used.
   135  var _ context.Context
   136  var _ grpc.ClientConnInterface
   137  
   138  // This is a compile-time assertion to ensure that this generated file
   139  // is compatible with the grpc package it is being compiled against.
   140  const _ = grpc.SupportPackageIsVersion6
   141  
   142  // GreeterClient is the client API for Greeter service.
   143  //
   144  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   145  type GreeterClient interface {
   146  	// Sends a greeting
   147  	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
   148  }
   149  
   150  type greeterClient struct {
   151  	cc grpc.ClientConnInterface
   152  }
   153  
   154  func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient {
   155  	return &greeterClient{cc}
   156  }
   157  
   158  func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
   159  	out := new(HelloReply)
   160  	err := c.cc.Invoke(ctx, "/helloworld.Greeter/SayHello", in, out, opts...)
   161  	if err != nil {
   162  		return nil, err
   163  	}
   164  	return out, nil
   165  }
   166  
   167  // GreeterServer is the server API for Greeter service.
   168  type GreeterServer interface {
   169  	// Sends a greeting
   170  	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
   171  }
   172  
   173  // UnimplementedGreeterServer can be embedded to have forward compatible implementations.
   174  type UnimplementedGreeterServer struct {
   175  }
   176  
   177  func (*UnimplementedGreeterServer) SayHello(ctx context.Context, req *HelloRequest) (*HelloReply, error) {
   178  	return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
   179  }
   180  
   181  func RegisterGreeterServer(s *grpc.Server, srv GreeterServer) {
   182  	s.RegisterService(&_Greeter_serviceDesc, srv)
   183  }
   184  
   185  func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   186  	in := new(HelloRequest)
   187  	if err := dec(in); err != nil {
   188  		return nil, err
   189  	}
   190  	if interceptor == nil {
   191  		return srv.(GreeterServer).SayHello(ctx, in)
   192  	}
   193  	info := &grpc.UnaryServerInfo{
   194  		Server:     srv,
   195  		FullMethod: "/helloworld.Greeter/SayHello",
   196  	}
   197  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   198  		return srv.(GreeterServer).SayHello(ctx, req.(*HelloRequest))
   199  	}
   200  	return interceptor(ctx, in, info, handler)
   201  }
   202  
   203  var _Greeter_serviceDesc = grpc.ServiceDesc{
   204  	ServiceName: "helloworld.Greeter",
   205  	HandlerType: (*GreeterServer)(nil),
   206  	Methods: []grpc.MethodDesc{
   207  		{
   208  			MethodName: "SayHello",
   209  			Handler:    _Greeter_SayHello_Handler,
   210  		},
   211  	},
   212  	Streams:  []grpc.StreamDesc{},
   213  	Metadata: "examples/helloworld/helloworld/helloworld.proto",
   214  }