github.com/cs3org/reva/v2@v2.27.7/internal/grpc/services/helloworld/proto/helloworldsvc.pb.go (about) 1 // Copyright 2018-2021 CERN 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 // 15 // In applying this license, CERN does not waive the privileges and immunities 16 // granted to it by virtue of its status as an Intergovernmental Organization 17 // or submit itself to any jurisdiction. 18 19 // Code generated by protoc-gen-go. DO NOT EDIT. 20 // source: helloworld.proto 21 22 package proto 23 24 import ( 25 context "context" 26 fmt "fmt" 27 math "math" 28 29 proto "github.com/golang/protobuf/proto" 30 grpc "google.golang.org/grpc" 31 codes "google.golang.org/grpc/codes" 32 status "google.golang.org/grpc/status" 33 ) 34 35 // Reference imports to suppress errors if they are not otherwise used. 36 var _ = proto.Marshal 37 var _ = fmt.Errorf 38 var _ = math.Inf 39 40 // This is a compile-time assertion to ensure that this generated file 41 // is compatible with the proto package it is being compiled against. 42 // A compilation error at this line likely means your copy of the 43 // proto package needs to be updated. 44 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 45 46 type HelloRequest struct { 47 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 48 XXX_NoUnkeyedLiteral struct{} `json:"-"` 49 XXX_unrecognized []byte `json:"-"` 50 XXX_sizecache int32 `json:"-"` 51 } 52 53 func (m *HelloRequest) Reset() { *m = HelloRequest{} } 54 func (m *HelloRequest) String() string { return proto.CompactTextString(m) } 55 func (*HelloRequest) ProtoMessage() {} 56 func (*HelloRequest) Descriptor() ([]byte, []int) { 57 return fileDescriptor_f5f9b8b18f6fb9a6, []int{0} 58 } 59 60 func (m *HelloRequest) XXX_Unmarshal(b []byte) error { 61 return xxx_messageInfo_HelloRequest.Unmarshal(m, b) 62 } 63 func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 64 return xxx_messageInfo_HelloRequest.Marshal(b, m, deterministic) 65 } 66 func (m *HelloRequest) XXX_Merge(src proto.Message) { 67 xxx_messageInfo_HelloRequest.Merge(m, src) 68 } 69 func (m *HelloRequest) XXX_Size() int { 70 return xxx_messageInfo_HelloRequest.Size(m) 71 } 72 func (m *HelloRequest) XXX_DiscardUnknown() { 73 xxx_messageInfo_HelloRequest.DiscardUnknown(m) 74 } 75 76 var xxx_messageInfo_HelloRequest proto.InternalMessageInfo 77 78 func (m *HelloRequest) GetName() string { 79 if m != nil { 80 return m.Name 81 } 82 return "" 83 } 84 85 type HelloResponse struct { 86 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 87 XXX_NoUnkeyedLiteral struct{} `json:"-"` 88 XXX_unrecognized []byte `json:"-"` 89 XXX_sizecache int32 `json:"-"` 90 } 91 92 func (m *HelloResponse) Reset() { *m = HelloResponse{} } 93 func (m *HelloResponse) String() string { return proto.CompactTextString(m) } 94 func (*HelloResponse) ProtoMessage() {} 95 func (*HelloResponse) Descriptor() ([]byte, []int) { 96 return fileDescriptor_f5f9b8b18f6fb9a6, []int{1} 97 } 98 99 func (m *HelloResponse) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_HelloResponse.Unmarshal(m, b) 101 } 102 func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_HelloResponse.Marshal(b, m, deterministic) 104 } 105 func (m *HelloResponse) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_HelloResponse.Merge(m, src) 107 } 108 func (m *HelloResponse) XXX_Size() int { 109 return xxx_messageInfo_HelloResponse.Size(m) 110 } 111 func (m *HelloResponse) XXX_DiscardUnknown() { 112 xxx_messageInfo_HelloResponse.DiscardUnknown(m) 113 } 114 115 var xxx_messageInfo_HelloResponse proto.InternalMessageInfo 116 117 func (m *HelloResponse) GetMessage() string { 118 if m != nil { 119 return m.Message 120 } 121 return "" 122 } 123 124 func init() { 125 proto.RegisterType((*HelloRequest)(nil), "revad.helloworld.HelloRequest") 126 proto.RegisterType((*HelloResponse)(nil), "revad.helloworld.HelloResponse") 127 } 128 129 func init() { proto.RegisterFile("helloworld.proto", fileDescriptor_f5f9b8b18f6fb9a6) } 130 131 var fileDescriptor_f5f9b8b18f6fb9a6 = []byte{ 132 // 162 bytes of a gzipped FileDescriptorProto 133 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xce, 0x48, 0xcd, 0xc9, 134 0xc9, 0x2f, 0xcf, 0x2f, 0xca, 0x49, 0x29, 0x2e, 0x4b, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 135 0x12, 0x28, 0x4a, 0x2d, 0x4b, 0x4c, 0xd1, 0x43, 0x48, 0x29, 0x29, 0x71, 0xf1, 0x78, 0x80, 0x78, 136 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x42, 0x5c, 0x2c, 0x79, 0x89, 0xb9, 0xa9, 0x12, 137 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x60, 0xb6, 0x92, 0x26, 0x17, 0x2f, 0x54, 0x4d, 0x71, 0x41, 138 0x7e, 0x5e, 0x71, 0xaa, 0x90, 0x04, 0x17, 0x7b, 0x6e, 0x6a, 0x71, 0x71, 0x62, 0x7a, 0xaa, 0x04, 139 0x13, 0x58, 0x1d, 0x8c, 0x6b, 0x14, 0xcb, 0x25, 0x08, 0x56, 0x1a, 0x0e, 0x32, 0x3c, 0x38, 0xb5, 140 0xa8, 0x2c, 0x33, 0x39, 0x55, 0xc8, 0x83, 0x8b, 0x15, 0x2c, 0x28, 0x24, 0xa7, 0x87, 0x6e, 0xbf, 141 0x1e, 0xb2, 0xe5, 0x52, 0xf2, 0x38, 0xe5, 0x21, 0x16, 0x3b, 0xb1, 0x47, 0xb1, 0x82, 0x3d, 0x92, 142 0xc4, 0x06, 0xa6, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xab, 0x90, 0x7f, 0xe6, 0x00, 143 0x00, 0x00, 144 } 145 146 // Reference imports to suppress errors if they are not otherwise used. 147 var _ context.Context 148 var _ grpc.ClientConn 149 150 // This is a compile-time assertion to ensure that this generated file 151 // is compatible with the grpc package it is being compiled against. 152 const _ = grpc.SupportPackageIsVersion4 153 154 // HelloWorldServiceClient is the client API for HelloWorldService service. 155 // 156 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 157 type HelloWorldServiceClient interface { 158 Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) 159 } 160 161 type helloWorldServiceClient struct { 162 cc *grpc.ClientConn 163 } 164 165 func NewHelloWorldServiceClient(cc *grpc.ClientConn) HelloWorldServiceClient { 166 return &helloWorldServiceClient{cc} 167 } 168 169 func (c *helloWorldServiceClient) Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) { 170 out := new(HelloResponse) 171 err := c.cc.Invoke(ctx, "/revad.helloworld.HelloWorldService/Hello", in, out, opts...) 172 if err != nil { 173 return nil, err 174 } 175 return out, nil 176 } 177 178 // HelloWorldServiceServer is the server API for HelloWorldService service. 179 type HelloWorldServiceServer interface { 180 Hello(context.Context, *HelloRequest) (*HelloResponse, error) 181 } 182 183 // UnimplementedHelloWorldServiceServer can be embedded to have forward compatible implementations. 184 type UnimplementedHelloWorldServiceServer struct { 185 } 186 187 func (*UnimplementedHelloWorldServiceServer) Hello(ctx context.Context, req *HelloRequest) (*HelloResponse, error) { 188 return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented") 189 } 190 191 func RegisterHelloWorldServiceServer(s *grpc.Server, srv HelloWorldServiceServer) { 192 s.RegisterService(&_HelloWorldService_serviceDesc, srv) 193 } 194 195 func _HelloWorldService_Hello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 196 in := new(HelloRequest) 197 if err := dec(in); err != nil { 198 return nil, err 199 } 200 if interceptor == nil { 201 return srv.(HelloWorldServiceServer).Hello(ctx, in) 202 } 203 info := &grpc.UnaryServerInfo{ 204 Server: srv, 205 FullMethod: "/revad.helloworld.HelloWorldService/Hello", 206 } 207 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 208 return srv.(HelloWorldServiceServer).Hello(ctx, req.(*HelloRequest)) 209 } 210 return interceptor(ctx, in, info, handler) 211 } 212 213 var _HelloWorldService_serviceDesc = grpc.ServiceDesc{ 214 ServiceName: "revad.helloworld.HelloWorldService", 215 HandlerType: (*HelloWorldServiceServer)(nil), 216 Methods: []grpc.MethodDesc{ 217 { 218 MethodName: "Hello", 219 Handler: _HelloWorldService_Hello_Handler, 220 }, 221 }, 222 Streams: []grpc.StreamDesc{}, 223 Metadata: "helloworld.proto", 224 }