Documentation ¶
Index ¶
- Variables
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type ComplexObject
- func (*ComplexObject) Descriptor() ([]byte, []int)deprecated
- func (x *ComplexObject) GetRepeatedAndSingleValue() *RepeatedAndSingle
- func (x *ComplexObject) GetSingleValue() string
- func (*ComplexObject) ProtoMessage()
- func (x *ComplexObject) ProtoReflect() protoreflect.Message
- func (x *ComplexObject) Reset()
- func (x *ComplexObject) String() string
- type FakeFieldMaskRequest
- func (*FakeFieldMaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FakeFieldMaskRequest) GetNrResponses() int32
- func (x *FakeFieldMaskRequest) GetReadMask() []string
- func (x *FakeFieldMaskRequest) GetRetError() string
- func (x *FakeFieldMaskRequest) GetWantedResponse() *SimpleObject
- func (*FakeFieldMaskRequest) ProtoMessage()
- func (x *FakeFieldMaskRequest) ProtoReflect() protoreflect.Message
- func (x *FakeFieldMaskRequest) Reset()
- func (x *FakeFieldMaskRequest) String() string
- type NestedObject
- func (*NestedObject) Descriptor() ([]byte, []int)deprecated
- func (x *NestedObject) GetComplexObject() *ComplexObject
- func (x *NestedObject) GetFooBaz() []*NestedObject_FooBaz
- func (x *NestedObject) GetPow() int32
- func (x *NestedObject) GetWow() string
- func (*NestedObject) ProtoMessage()
- func (x *NestedObject) ProtoReflect() protoreflect.Message
- func (x *NestedObject) Reset()
- func (x *NestedObject) String() string
- type NestedObject_FooBaz
- func (*NestedObject_FooBaz) Descriptor() ([]byte, []int)deprecated
- func (x *NestedObject_FooBaz) GetBaz() string
- func (x *NestedObject_FooBaz) GetFoo() int32
- func (*NestedObject_FooBaz) ProtoMessage()
- func (x *NestedObject_FooBaz) ProtoReflect() protoreflect.Message
- func (x *NestedObject_FooBaz) Reset()
- func (x *NestedObject_FooBaz) String() string
- type NoFieldMaskRequest
- func (*NoFieldMaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NoFieldMaskRequest) GetNrResponses() int32
- func (x *NoFieldMaskRequest) GetRetError() string
- func (x *NoFieldMaskRequest) GetWantedResponse() *SimpleObject
- func (*NoFieldMaskRequest) ProtoMessage()
- func (x *NoFieldMaskRequest) ProtoReflect() protoreflect.Message
- func (x *NoFieldMaskRequest) Reset()
- func (x *NoFieldMaskRequest) String() string
- type RepeatedAndSingle
- func (*RepeatedAndSingle) Descriptor() ([]byte, []int)deprecated
- func (x *RepeatedAndSingle) GetRepeatedValue() []string
- func (x *RepeatedAndSingle) GetSingleValue() *Single
- func (*RepeatedAndSingle) ProtoMessage()
- func (x *RepeatedAndSingle) ProtoReflect() protoreflect.Message
- func (x *RepeatedAndSingle) Reset()
- func (x *RepeatedAndSingle) String() string
- type SimpleObject
- func (*SimpleObject) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleObject) GetBaz() int32
- func (x *SimpleObject) GetFoo() int32
- func (x *SimpleObject) GetPow() string
- func (x *SimpleObject) GetWow() string
- func (*SimpleObject) ProtoMessage()
- func (x *SimpleObject) ProtoReflect() protoreflect.Message
- func (x *SimpleObject) Reset()
- func (x *SimpleObject) String() string
- type Single
- type TestServiceClient
- type TestServiceServer
- type TestService_TestStreamFieldMaskClient
- type TestService_TestStreamFieldMaskServer
- type TestService_TestStreamNoFieldMaskClient
- type TestService_TestStreamNoFieldMaskServer
- type UnimplementedTestServiceServer
- type UnsafeTestServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_testproto_testproto_proto protoreflect.FileDescriptor
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protofm.test.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "TestStreamFieldMask", Handler: _TestService_TestStreamFieldMask_Handler, ServerStreams: true, }, { StreamName: "TestStreamNoFieldMask", Handler: _TestService_TestStreamNoFieldMask_Handler, ServerStreams: true, }, }, Metadata: "testproto/testproto.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type ComplexObject ¶
type ComplexObject struct { RepeatedAndSingleValue *RepeatedAndSingle `` /* 131-byte string literal not displayed */ SingleValue string `protobuf:"bytes,2,opt,name=single_value,json=singleValue,proto3" json:"single_value,omitempty"` // contains filtered or unexported fields }
func (*ComplexObject) Descriptor
deprecated
func (*ComplexObject) Descriptor() ([]byte, []int)
Deprecated: Use ComplexObject.ProtoReflect.Descriptor instead.
func (*ComplexObject) GetRepeatedAndSingleValue ¶
func (x *ComplexObject) GetRepeatedAndSingleValue() *RepeatedAndSingle
func (*ComplexObject) GetSingleValue ¶
func (x *ComplexObject) GetSingleValue() string
func (*ComplexObject) ProtoMessage ¶
func (*ComplexObject) ProtoMessage()
func (*ComplexObject) ProtoReflect ¶
func (x *ComplexObject) ProtoReflect() protoreflect.Message
func (*ComplexObject) Reset ¶
func (x *ComplexObject) Reset()
func (*ComplexObject) String ¶
func (x *ComplexObject) String() string
type FakeFieldMaskRequest ¶
type FakeFieldMaskRequest struct { ReadMask []string `protobuf:"bytes,1,rep,name=read_mask,json=readMask,proto3" json:"read_mask,omitempty"` NrResponses int32 `protobuf:"varint,2,opt,name=nr_responses,json=nrResponses,proto3" json:"nr_responses,omitempty"` RetError string `protobuf:"bytes,3,opt,name=ret_error,json=retError,proto3" json:"ret_error,omitempty"` WantedResponse *SimpleObject `protobuf:"bytes,4,opt,name=wanted_response,json=wantedResponse,proto3" json:"wanted_response,omitempty"` // contains filtered or unexported fields }
func (*FakeFieldMaskRequest) Descriptor
deprecated
func (*FakeFieldMaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use FakeFieldMaskRequest.ProtoReflect.Descriptor instead.
func (*FakeFieldMaskRequest) GetNrResponses ¶
func (x *FakeFieldMaskRequest) GetNrResponses() int32
func (*FakeFieldMaskRequest) GetReadMask ¶
func (x *FakeFieldMaskRequest) GetReadMask() []string
func (*FakeFieldMaskRequest) GetRetError ¶
func (x *FakeFieldMaskRequest) GetRetError() string
func (*FakeFieldMaskRequest) GetWantedResponse ¶
func (x *FakeFieldMaskRequest) GetWantedResponse() *SimpleObject
func (*FakeFieldMaskRequest) ProtoMessage ¶
func (*FakeFieldMaskRequest) ProtoMessage()
func (*FakeFieldMaskRequest) ProtoReflect ¶
func (x *FakeFieldMaskRequest) ProtoReflect() protoreflect.Message
func (*FakeFieldMaskRequest) Reset ¶
func (x *FakeFieldMaskRequest) Reset()
func (*FakeFieldMaskRequest) String ¶
func (x *FakeFieldMaskRequest) String() string
type NestedObject ¶
type NestedObject struct { Pow int32 `protobuf:"varint,1,opt,name=pow,proto3" json:"pow,omitempty"` Wow string `protobuf:"bytes,2,opt,name=wow,proto3" json:"wow,omitempty"` FooBaz []*NestedObject_FooBaz `protobuf:"bytes,3,rep,name=foo_baz,json=fooBaz,proto3" json:"foo_baz,omitempty"` ComplexObject *ComplexObject `protobuf:"bytes,4,opt,name=complex_object,json=complexObject,proto3" json:"complex_object,omitempty"` // contains filtered or unexported fields }
func (*NestedObject) Descriptor
deprecated
func (*NestedObject) Descriptor() ([]byte, []int)
Deprecated: Use NestedObject.ProtoReflect.Descriptor instead.
func (*NestedObject) GetComplexObject ¶
func (x *NestedObject) GetComplexObject() *ComplexObject
func (*NestedObject) GetFooBaz ¶
func (x *NestedObject) GetFooBaz() []*NestedObject_FooBaz
func (*NestedObject) GetPow ¶
func (x *NestedObject) GetPow() int32
func (*NestedObject) GetWow ¶
func (x *NestedObject) GetWow() string
func (*NestedObject) ProtoMessage ¶
func (*NestedObject) ProtoMessage()
func (*NestedObject) ProtoReflect ¶
func (x *NestedObject) ProtoReflect() protoreflect.Message
func (*NestedObject) Reset ¶
func (x *NestedObject) Reset()
func (*NestedObject) String ¶
func (x *NestedObject) String() string
type NestedObject_FooBaz ¶
type NestedObject_FooBaz struct { Foo int32 `protobuf:"varint,1,opt,name=foo,proto3" json:"foo,omitempty"` Baz string `protobuf:"bytes,2,opt,name=baz,proto3" json:"baz,omitempty"` // contains filtered or unexported fields }
func (*NestedObject_FooBaz) Descriptor
deprecated
func (*NestedObject_FooBaz) Descriptor() ([]byte, []int)
Deprecated: Use NestedObject_FooBaz.ProtoReflect.Descriptor instead.
func (*NestedObject_FooBaz) GetBaz ¶
func (x *NestedObject_FooBaz) GetBaz() string
func (*NestedObject_FooBaz) GetFoo ¶
func (x *NestedObject_FooBaz) GetFoo() int32
func (*NestedObject_FooBaz) ProtoMessage ¶
func (*NestedObject_FooBaz) ProtoMessage()
func (*NestedObject_FooBaz) ProtoReflect ¶
func (x *NestedObject_FooBaz) ProtoReflect() protoreflect.Message
func (*NestedObject_FooBaz) Reset ¶
func (x *NestedObject_FooBaz) Reset()
func (*NestedObject_FooBaz) String ¶
func (x *NestedObject_FooBaz) String() string
type NoFieldMaskRequest ¶
type NoFieldMaskRequest struct { NrResponses int32 `protobuf:"varint,1,opt,name=nr_responses,json=nrResponses,proto3" json:"nr_responses,omitempty"` RetError string `protobuf:"bytes,2,opt,name=ret_error,json=retError,proto3" json:"ret_error,omitempty"` WantedResponse *SimpleObject `protobuf:"bytes,3,opt,name=wanted_response,json=wantedResponse,proto3" json:"wanted_response,omitempty"` // contains filtered or unexported fields }
func (*NoFieldMaskRequest) Descriptor
deprecated
func (*NoFieldMaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use NoFieldMaskRequest.ProtoReflect.Descriptor instead.
func (*NoFieldMaskRequest) GetNrResponses ¶
func (x *NoFieldMaskRequest) GetNrResponses() int32
func (*NoFieldMaskRequest) GetRetError ¶
func (x *NoFieldMaskRequest) GetRetError() string
func (*NoFieldMaskRequest) GetWantedResponse ¶
func (x *NoFieldMaskRequest) GetWantedResponse() *SimpleObject
func (*NoFieldMaskRequest) ProtoMessage ¶
func (*NoFieldMaskRequest) ProtoMessage()
func (*NoFieldMaskRequest) ProtoReflect ¶
func (x *NoFieldMaskRequest) ProtoReflect() protoreflect.Message
func (*NoFieldMaskRequest) Reset ¶
func (x *NoFieldMaskRequest) Reset()
func (*NoFieldMaskRequest) String ¶
func (x *NoFieldMaskRequest) String() string
type RepeatedAndSingle ¶
type RepeatedAndSingle struct { SingleValue *Single `protobuf:"bytes,1,opt,name=single_value,json=singleValue,proto3" json:"single_value,omitempty"` RepeatedValue []string `protobuf:"bytes,2,rep,name=repeated_value,json=repeatedValue,proto3" json:"repeated_value,omitempty"` // contains filtered or unexported fields }
func (*RepeatedAndSingle) Descriptor
deprecated
func (*RepeatedAndSingle) Descriptor() ([]byte, []int)
Deprecated: Use RepeatedAndSingle.ProtoReflect.Descriptor instead.
func (*RepeatedAndSingle) GetRepeatedValue ¶
func (x *RepeatedAndSingle) GetRepeatedValue() []string
func (*RepeatedAndSingle) GetSingleValue ¶
func (x *RepeatedAndSingle) GetSingleValue() *Single
func (*RepeatedAndSingle) ProtoMessage ¶
func (*RepeatedAndSingle) ProtoMessage()
func (*RepeatedAndSingle) ProtoReflect ¶
func (x *RepeatedAndSingle) ProtoReflect() protoreflect.Message
func (*RepeatedAndSingle) Reset ¶
func (x *RepeatedAndSingle) Reset()
func (*RepeatedAndSingle) String ¶
func (x *RepeatedAndSingle) String() string
type SimpleObject ¶
type SimpleObject struct { Pow string `protobuf:"bytes,1,opt,name=pow,proto3" json:"pow,omitempty"` Wow string `protobuf:"bytes,2,opt,name=wow,proto3" json:"wow,omitempty"` Foo int32 `protobuf:"varint,3,opt,name=foo,proto3" json:"foo,omitempty"` Baz int32 `protobuf:"varint,4,opt,name=baz,proto3" json:"baz,omitempty"` // contains filtered or unexported fields }
func (*SimpleObject) Descriptor
deprecated
func (*SimpleObject) Descriptor() ([]byte, []int)
Deprecated: Use SimpleObject.ProtoReflect.Descriptor instead.
func (*SimpleObject) GetBaz ¶
func (x *SimpleObject) GetBaz() int32
func (*SimpleObject) GetFoo ¶
func (x *SimpleObject) GetFoo() int32
func (*SimpleObject) GetPow ¶
func (x *SimpleObject) GetPow() string
func (*SimpleObject) GetWow ¶
func (x *SimpleObject) GetWow() string
func (*SimpleObject) ProtoMessage ¶
func (*SimpleObject) ProtoMessage()
func (*SimpleObject) ProtoReflect ¶
func (x *SimpleObject) ProtoReflect() protoreflect.Message
func (*SimpleObject) Reset ¶
func (x *SimpleObject) Reset()
func (*SimpleObject) String ¶
func (x *SimpleObject) String() string
type Single ¶
type Single struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Single) Descriptor
deprecated
func (*Single) ProtoMessage ¶
func (*Single) ProtoMessage()
func (*Single) ProtoReflect ¶
func (x *Single) ProtoReflect() protoreflect.Message
type TestServiceClient ¶
type TestServiceClient interface { TestStreamFieldMask(ctx context.Context, in *FakeFieldMaskRequest, opts ...grpc.CallOption) (TestService_TestStreamFieldMaskClient, error) TestStreamNoFieldMask(ctx context.Context, in *NoFieldMaskRequest, opts ...grpc.CallOption) (TestService_TestStreamNoFieldMaskClient, error) }
TestServiceClient is the client API for TestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { TestStreamFieldMask(*FakeFieldMaskRequest, TestService_TestStreamFieldMaskServer) error TestStreamNoFieldMask(*NoFieldMaskRequest, TestService_TestStreamNoFieldMaskServer) error // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility
type TestService_TestStreamFieldMaskClient ¶
type TestService_TestStreamFieldMaskClient interface { Recv() (*SimpleObject, error) grpc.ClientStream }
type TestService_TestStreamFieldMaskServer ¶
type TestService_TestStreamFieldMaskServer interface { Send(*SimpleObject) error grpc.ServerStream }
type TestService_TestStreamNoFieldMaskClient ¶
type TestService_TestStreamNoFieldMaskClient interface { Recv() (*SimpleObject, error) grpc.ClientStream }
type TestService_TestStreamNoFieldMaskServer ¶
type TestService_TestStreamNoFieldMaskServer interface { Send(*SimpleObject) error grpc.ServerStream }
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTestServiceServer) TestStreamFieldMask ¶
func (UnimplementedTestServiceServer) TestStreamFieldMask(*FakeFieldMaskRequest, TestService_TestStreamFieldMaskServer) error
func (UnimplementedTestServiceServer) TestStreamNoFieldMask ¶
func (UnimplementedTestServiceServer) TestStreamNoFieldMask(*NoFieldMaskRequest, TestService_TestStreamNoFieldMaskServer) error
type UnsafeTestServiceServer ¶
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.