clair/vendor/github.com/grpc-ecosystem/grpc-gateway/examples/proto/examplepb/wrappers.pb.go
2018-05-24 13:48:14 +02:00

180 lines
6.7 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: examples/proto/examplepb/wrappers.proto
package examplepb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_protobuf5 "github.com/golang/protobuf/ptypes/wrappers"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Wrappers struct {
StringValue *google_protobuf5.StringValue `protobuf:"bytes,1,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
Int32Value *google_protobuf5.Int32Value `protobuf:"bytes,2,opt,name=int32_value,json=int32Value" json:"int32_value,omitempty"`
Int64Value *google_protobuf5.Int64Value `protobuf:"bytes,3,opt,name=int64_value,json=int64Value" json:"int64_value,omitempty"`
FloatValue *google_protobuf5.FloatValue `protobuf:"bytes,4,opt,name=float_value,json=floatValue" json:"float_value,omitempty"`
DoubleValue *google_protobuf5.DoubleValue `protobuf:"bytes,5,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"`
BoolValue *google_protobuf5.BoolValue `protobuf:"bytes,6,opt,name=bool_value,json=boolValue" json:"bool_value,omitempty"`
}
func (m *Wrappers) Reset() { *m = Wrappers{} }
func (m *Wrappers) String() string { return proto.CompactTextString(m) }
func (*Wrappers) ProtoMessage() {}
func (*Wrappers) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *Wrappers) GetStringValue() *google_protobuf5.StringValue {
if m != nil {
return m.StringValue
}
return nil
}
func (m *Wrappers) GetInt32Value() *google_protobuf5.Int32Value {
if m != nil {
return m.Int32Value
}
return nil
}
func (m *Wrappers) GetInt64Value() *google_protobuf5.Int64Value {
if m != nil {
return m.Int64Value
}
return nil
}
func (m *Wrappers) GetFloatValue() *google_protobuf5.FloatValue {
if m != nil {
return m.FloatValue
}
return nil
}
func (m *Wrappers) GetDoubleValue() *google_protobuf5.DoubleValue {
if m != nil {
return m.DoubleValue
}
return nil
}
func (m *Wrappers) GetBoolValue() *google_protobuf5.BoolValue {
if m != nil {
return m.BoolValue
}
return nil
}
func init() {
proto.RegisterType((*Wrappers)(nil), "grpc.gateway.examples.examplepb.Wrappers")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for WrappersService service
type WrappersServiceClient interface {
Create(ctx context.Context, in *Wrappers, opts ...grpc.CallOption) (*Wrappers, error)
}
type wrappersServiceClient struct {
cc *grpc.ClientConn
}
func NewWrappersServiceClient(cc *grpc.ClientConn) WrappersServiceClient {
return &wrappersServiceClient{cc}
}
func (c *wrappersServiceClient) Create(ctx context.Context, in *Wrappers, opts ...grpc.CallOption) (*Wrappers, error) {
out := new(Wrappers)
err := grpc.Invoke(ctx, "/grpc.gateway.examples.examplepb.WrappersService/Create", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for WrappersService service
type WrappersServiceServer interface {
Create(context.Context, *Wrappers) (*Wrappers, error)
}
func RegisterWrappersServiceServer(s *grpc.Server, srv WrappersServiceServer) {
s.RegisterService(&_WrappersService_serviceDesc, srv)
}
func _WrappersService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Wrappers)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WrappersServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/grpc.gateway.examples.examplepb.WrappersService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WrappersServiceServer).Create(ctx, req.(*Wrappers))
}
return interceptor(ctx, in, info, handler)
}
var _WrappersService_serviceDesc = grpc.ServiceDesc{
ServiceName: "grpc.gateway.examples.examplepb.WrappersService",
HandlerType: (*WrappersServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _WrappersService_Create_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "examples/proto/examplepb/wrappers.proto",
}
func init() { proto.RegisterFile("examples/proto/examplepb/wrappers.proto", fileDescriptor4) }
var fileDescriptor4 = []byte{
// 333 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0xd2, 0xcf, 0x4a, 0x3b, 0x31,
0x10, 0x07, 0x70, 0xb6, 0xfd, 0xfd, 0x8a, 0xcd, 0x0a, 0xc2, 0xe2, 0x41, 0xd7, 0x62, 0xa5, 0x17,
0xff, 0x1c, 0xb2, 0xd8, 0x96, 0x82, 0x22, 0x08, 0x55, 0x04, 0xaf, 0x16, 0x14, 0xbc, 0x48, 0xd2,
0xa6, 0x4b, 0x20, 0xee, 0x84, 0x6c, 0xda, 0xea, 0x49, 0xf4, 0x11, 0xf4, 0xd1, 0x7c, 0x05, 0x1f,
0x44, 0x36, 0x9d, 0x6c, 0xc1, 0x52, 0xf4, 0x36, 0xb3, 0xf9, 0x7e, 0x06, 0x86, 0x1d, 0xb2, 0x2f,
0x9e, 0xd8, 0xa3, 0x56, 0x22, 0x4f, 0xb4, 0x01, 0x0b, 0x09, 0xb6, 0x9a, 0x27, 0x33, 0xc3, 0xb4,
0x16, 0x26, 0xa7, 0xee, 0x21, 0x6a, 0xa6, 0x46, 0x0f, 0x69, 0xca, 0xac, 0x98, 0xb1, 0x67, 0xea,
0x15, 0x2d, 0xf3, 0x71, 0x23, 0x05, 0x48, 0x95, 0x48, 0x98, 0x96, 0x09, 0xcb, 0x32, 0xb0, 0xcc,
0x4a, 0xc8, 0x90, 0xc7, 0xbb, 0xf8, 0xea, 0x3a, 0x3e, 0x19, 0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