Documentation
¶
Overview ¶
Package platformtestv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterEchoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEchoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EchoServiceClient) error
- func RegisterEchoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEchoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EchoServiceServer) error
- func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
- type Color
- type CreateThingRequest
- func (*CreateThingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateThingRequest) GetName() string
- func (*CreateThingRequest) ProtoMessage()
- func (x *CreateThingRequest) ProtoReflect() protoreflect.Message
- func (x *CreateThingRequest) Reset()
- func (x *CreateThingRequest) String() string
- type CreateThingResponse
- func (*CreateThingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateThingResponse) GetCalls() int32
- func (x *CreateThingResponse) GetId() string
- func (*CreateThingResponse) ProtoMessage()
- func (x *CreateThingResponse) ProtoReflect() protoreflect.Message
- func (x *CreateThingResponse) Reset()
- func (x *CreateThingResponse) String() string
- type EchoRequest
- type EchoResponse
- func (*EchoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EchoResponse) GetLength() int32
- func (x *EchoResponse) GetMessageText() string
- func (x *EchoResponse) GetShouted() bool
- func (*EchoResponse) ProtoMessage()
- func (x *EchoResponse) ProtoReflect() protoreflect.Message
- func (x *EchoResponse) Reset()
- func (x *EchoResponse) String() string
- type EchoServiceClient
- type EchoServiceServer
- type FailRequest
- type FailResponse
- type File
- type KindsRequest
- func (*KindsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *KindsRequest) GetColor() Color
- func (x *KindsRequest) GetFull() bool
- func (x *KindsRequest) GetId() int64
- func (x *KindsRequest) GetTags() []string
- func (*KindsRequest) ProtoMessage()
- func (x *KindsRequest) ProtoReflect() protoreflect.Message
- func (x *KindsRequest) Reset()
- func (x *KindsRequest) String() string
- type KindsResponse
- func (*KindsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KindsResponse) GetAnything() *structpb.Value
- func (x *KindsResponse) GetAt() *timestamppb.Timestamp
- func (x *KindsResponse) GetBig() uint64
- func (x *KindsResponse) GetByNumber() map[int32]*Meta
- func (x *KindsResponse) GetChoice() isKindsResponse_Choice
- func (x *KindsResponse) GetColor() Color
- func (x *KindsResponse) GetCounts() map[string]int64
- func (x *KindsResponse) GetData() []byte
- func (x *KindsResponse) GetExtra() *structpb.Struct
- func (x *KindsResponse) GetFlag() bool
- func (x *KindsResponse) GetId() int64
- func (x *KindsResponse) GetMask() *fieldmaskpb.FieldMask
- func (x *KindsResponse) GetMaybe() *wrapperspb.StringValue
- func (x *KindsResponse) GetMeta() *Meta
- func (x *KindsResponse) GetMetas() []*Meta
- func (x *KindsResponse) GetNegative() int64
- func (x *KindsResponse) GetNote() string
- func (x *KindsResponse) GetNothing() *emptypb.Empty
- func (x *KindsResponse) GetNumber() int32
- func (x *KindsResponse) GetPacked() *anypb.Any
- func (x *KindsResponse) GetPart() float32
- func (x *KindsResponse) GetRatio() float64
- func (x *KindsResponse) GetSmall() int32
- func (x *KindsResponse) GetTags() []string
- func (x *KindsResponse) GetText() string
- func (x *KindsResponse) GetTook() *durationpb.Duration
- func (x *KindsResponse) GetUnsigned() uint32
- func (x *KindsResponse) GetWord() string
- func (*KindsResponse) ProtoMessage()
- func (x *KindsResponse) ProtoReflect() protoreflect.Message
- func (x *KindsResponse) Reset()
- func (x *KindsResponse) String() string
- type KindsResponse_Number
- type KindsResponse_Word
- type Meta
- type UnimplementedEchoServiceServer
- func (UnimplementedEchoServiceServer) CreateThing(context.Context, *CreateThingRequest) (*CreateThingResponse, error)
- func (UnimplementedEchoServiceServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
- func (UnimplementedEchoServiceServer) Fail(context.Context, *FailRequest) (*FailResponse, error)
- func (UnimplementedEchoServiceServer) Kinds(context.Context, *KindsRequest) (*KindsResponse, error)
- func (UnimplementedEchoServiceServer) OldEcho(context.Context, *EchoRequest) (*EchoResponse, error)
- func (UnimplementedEchoServiceServer) Upload(context.Context, *UploadRequest) (*UploadResponse, error)
- type UnsafeEchoServiceServer
- type UploadRequest
- func (*UploadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadRequest) GetAvatar() *File
- func (x *UploadRequest) GetImages() []*File
- func (x *UploadRequest) GetMeta() *Meta
- func (x *UploadRequest) GetTitle() string
- func (*UploadRequest) ProtoMessage()
- func (x *UploadRequest) ProtoReflect() protoreflect.Message
- func (x *UploadRequest) Reset()
- func (x *UploadRequest) String() string
- type UploadResponse
- func (*UploadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadResponse) GetAuthor() string
- func (x *UploadResponse) GetAvatarName() string
- func (x *UploadResponse) GetAvatarSize() int32
- func (x *UploadResponse) GetAvatarType() string
- func (x *UploadResponse) GetImages() []string
- func (x *UploadResponse) GetTitle() string
- func (*UploadResponse) ProtoMessage()
- func (x *UploadResponse) ProtoReflect() protoreflect.Message
- func (x *UploadResponse) Reset()
- func (x *UploadResponse) String() string
Constants ¶
const ( EchoService_Echo_FullMethodName = "/platformtest.v1.EchoService/Echo" EchoService_Fail_FullMethodName = "/platformtest.v1.EchoService/Fail" EchoService_Upload_FullMethodName = "/platformtest.v1.EchoService/Upload" EchoService_OldEcho_FullMethodName = "/platformtest.v1.EchoService/OldEcho" EchoService_Kinds_FullMethodName = "/platformtest.v1.EchoService/Kinds" EchoService_CreateThing_FullMethodName = "/platformtest.v1.EchoService/CreateThing" )
Variables ¶
var ( Color_name = map[int32]string{ 0: "COLOR_UNSPECIFIED", 1: "COLOR_RED", 2: "COLOR_GREEN", } Color_value = map[string]int32{ "COLOR_UNSPECIFIED": 0, "COLOR_RED": 1, "COLOR_GREEN": 2, } )
Enum value maps for Color.
var EchoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "platformtest.v1.EchoService", HandlerType: (*EchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _EchoService_Echo_Handler, }, { MethodName: "Fail", Handler: _EchoService_Fail_Handler, }, { MethodName: "Upload", Handler: _EchoService_Upload_Handler, }, { MethodName: "OldEcho", Handler: _EchoService_OldEcho_Handler, }, { MethodName: "Kinds", Handler: _EchoService_Kinds_Handler, }, { MethodName: "CreateThing", Handler: _EchoService_CreateThing_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "platformtest/v1/echo.proto", }
EchoService_ServiceDesc is the grpc.ServiceDesc for EchoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_platformtest_v1_echo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEchoServiceHandler ¶
func RegisterEchoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterEchoServiceHandler registers the http handlers for service EchoService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEchoServiceHandlerClient ¶
func RegisterEchoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EchoServiceClient) error
RegisterEchoServiceHandlerClient registers the http handlers for service EchoService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EchoServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EchoServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EchoServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterEchoServiceHandlerFromEndpoint ¶
func RegisterEchoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEchoServiceHandlerFromEndpoint is same as RegisterEchoServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEchoServiceHandlerServer ¶
func RegisterEchoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EchoServiceServer) error
RegisterEchoServiceHandlerServer registers the http handlers for service EchoService to "mux". UnaryRPC :call EchoServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEchoServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterEchoServiceServer ¶
func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
Types ¶
type Color ¶ added in v0.10.0
type Color int32
func (Color) Descriptor ¶ added in v0.10.0
func (Color) Descriptor() protoreflect.EnumDescriptor
func (Color) EnumDescriptor
deprecated
added in
v0.10.0
func (Color) Number ¶ added in v0.10.0
func (x Color) Number() protoreflect.EnumNumber
func (Color) Type ¶ added in v0.10.0
func (Color) Type() protoreflect.EnumType
type CreateThingRequest ¶
type CreateThingRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*CreateThingRequest) Descriptor
deprecated
func (*CreateThingRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateThingRequest.ProtoReflect.Descriptor instead.
func (*CreateThingRequest) GetName ¶
func (x *CreateThingRequest) GetName() string
func (*CreateThingRequest) ProtoMessage ¶
func (*CreateThingRequest) ProtoMessage()
func (*CreateThingRequest) ProtoReflect ¶
func (x *CreateThingRequest) ProtoReflect() protoreflect.Message
func (*CreateThingRequest) Reset ¶
func (x *CreateThingRequest) Reset()
func (*CreateThingRequest) String ¶
func (x *CreateThingRequest) String() string
type CreateThingResponse ¶
type CreateThingResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Calls int32 `protobuf:"varint,2,opt,name=calls,proto3" json:"calls,omitempty"`
// contains filtered or unexported fields
}
func (*CreateThingResponse) Descriptor
deprecated
func (*CreateThingResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateThingResponse.ProtoReflect.Descriptor instead.
func (*CreateThingResponse) GetCalls ¶
func (x *CreateThingResponse) GetCalls() int32
func (*CreateThingResponse) GetId ¶
func (x *CreateThingResponse) GetId() string
func (*CreateThingResponse) ProtoMessage ¶
func (*CreateThingResponse) ProtoMessage()
func (*CreateThingResponse) ProtoReflect ¶
func (x *CreateThingResponse) ProtoReflect() protoreflect.Message
func (*CreateThingResponse) Reset ¶
func (x *CreateThingResponse) Reset()
func (*CreateThingResponse) String ¶
func (x *CreateThingResponse) String() string
type EchoRequest ¶
type EchoRequest struct {
MessageText string `protobuf:"bytes,1,opt,name=message_text,json=messageText,proto3" json:"message_text,omitempty"`
// contains filtered or unexported fields
}
func (*EchoRequest) Descriptor
deprecated
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) GetMessageText ¶
func (x *EchoRequest) GetMessageText() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) Reset ¶
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (x *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct {
MessageText string `protobuf:"bytes,1,opt,name=message_text,json=messageText,proto3" json:"message_text,omitempty"`
Length int32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
Shouted bool `protobuf:"varint,3,opt,name=shouted,proto3" json:"shouted,omitempty"`
// contains filtered or unexported fields
}
func (*EchoResponse) Descriptor
deprecated
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetLength ¶
func (x *EchoResponse) GetLength() int32
func (*EchoResponse) GetMessageText ¶
func (x *EchoResponse) GetMessageText() string
func (*EchoResponse) GetShouted ¶
func (x *EchoResponse) GetShouted() bool
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) Reset ¶
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (x *EchoResponse) String() string
type EchoServiceClient ¶
type EchoServiceClient interface {
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
Fail(ctx context.Context, in *FailRequest, opts ...grpc.CallOption) (*FailResponse, error)
// Files over multipart/form-data through the gateway.
Upload(ctx context.Context, in *UploadRequest, opts ...grpc.CallOption) (*UploadResponse, error)
// Deprecated: Do not use.
// A method kept for old clients.
OldEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
// Every form of JSON the gateway writes, for the test of the OpenAPI description:
// full=true sets every field, without it every field keeps its zero value.
Kinds(ctx context.Context, in *KindsRequest, opts ...grpc.CallOption) (*KindsResponse, error)
// A method that creates something, for idempotency.
CreateThing(ctx context.Context, in *CreateThingRequest, opts ...grpc.CallOption) (*CreateThingResponse, error)
}
EchoServiceClient is the client API for EchoService 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 NewEchoServiceClient ¶
func NewEchoServiceClient(cc grpc.ClientConnInterface) EchoServiceClient
type EchoServiceServer ¶
type EchoServiceServer interface {
Echo(context.Context, *EchoRequest) (*EchoResponse, error)
Fail(context.Context, *FailRequest) (*FailResponse, error)
// Files over multipart/form-data through the gateway.
Upload(context.Context, *UploadRequest) (*UploadResponse, error)
// Deprecated: Do not use.
// A method kept for old clients.
OldEcho(context.Context, *EchoRequest) (*EchoResponse, error)
// Every form of JSON the gateway writes, for the test of the OpenAPI description:
// full=true sets every field, without it every field keeps its zero value.
Kinds(context.Context, *KindsRequest) (*KindsResponse, error)
// A method that creates something, for idempotency.
CreateThing(context.Context, *CreateThingRequest) (*CreateThingResponse, error)
// contains filtered or unexported methods
}
EchoServiceServer is the server API for EchoService service. All implementations must embed UnimplementedEchoServiceServer for forward compatibility.
type FailRequest ¶
type FailRequest struct {
// panic, internal, not_found or slow
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
// contains filtered or unexported fields
}
func (*FailRequest) Descriptor
deprecated
func (*FailRequest) Descriptor() ([]byte, []int)
Deprecated: Use FailRequest.ProtoReflect.Descriptor instead.
func (*FailRequest) GetKind ¶
func (x *FailRequest) GetKind() string
func (*FailRequest) ProtoMessage ¶
func (*FailRequest) ProtoMessage()
func (*FailRequest) ProtoReflect ¶
func (x *FailRequest) ProtoReflect() protoreflect.Message
func (*FailRequest) Reset ¶
func (x *FailRequest) Reset()
func (*FailRequest) String ¶
func (x *FailRequest) String() string
type FailResponse ¶
type FailResponse struct {
// contains filtered or unexported fields
}
func (*FailResponse) Descriptor
deprecated
func (*FailResponse) Descriptor() ([]byte, []int)
Deprecated: Use FailResponse.ProtoReflect.Descriptor instead.
func (*FailResponse) ProtoMessage ¶
func (*FailResponse) ProtoMessage()
func (*FailResponse) ProtoReflect ¶
func (x *FailResponse) ProtoReflect() protoreflect.Message
func (*FailResponse) Reset ¶
func (x *FailResponse) Reset()
func (*FailResponse) String ¶
func (x *FailResponse) String() string
type File ¶
type File struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*File) Descriptor
deprecated
func (*File) GetContent ¶
func (*File) GetContentType ¶
func (*File) GetFilename ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type KindsRequest ¶ added in v0.10.0
type KindsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Full bool `protobuf:"varint,2,opt,name=full,proto3" json:"full,omitempty"`
Color Color `protobuf:"varint,3,opt,name=color,proto3,enum=platformtest.v1.Color" json:"color,omitempty"`
Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
func (*KindsRequest) Descriptor
deprecated
added in
v0.10.0
func (*KindsRequest) Descriptor() ([]byte, []int)
Deprecated: Use KindsRequest.ProtoReflect.Descriptor instead.
func (*KindsRequest) GetColor ¶ added in v0.10.0
func (x *KindsRequest) GetColor() Color
func (*KindsRequest) GetFull ¶ added in v0.10.0
func (x *KindsRequest) GetFull() bool
func (*KindsRequest) GetId ¶ added in v0.10.0
func (x *KindsRequest) GetId() int64
func (*KindsRequest) GetTags ¶ added in v0.10.0
func (x *KindsRequest) GetTags() []string
func (*KindsRequest) ProtoMessage ¶ added in v0.10.0
func (*KindsRequest) ProtoMessage()
func (*KindsRequest) ProtoReflect ¶ added in v0.10.0
func (x *KindsRequest) ProtoReflect() protoreflect.Message
func (*KindsRequest) Reset ¶ added in v0.10.0
func (x *KindsRequest) Reset()
func (*KindsRequest) String ¶ added in v0.10.0
func (x *KindsRequest) String() string
type KindsResponse ¶ added in v0.10.0
type KindsResponse struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Big uint64 `protobuf:"varint,2,opt,name=big,proto3" json:"big,omitempty"`
Small int32 `protobuf:"varint,3,opt,name=small,proto3" json:"small,omitempty"`
Ratio float64 `protobuf:"fixed64,4,opt,name=ratio,proto3" json:"ratio,omitempty"`
Part float32 `protobuf:"fixed32,5,opt,name=part,proto3" json:"part,omitempty"`
Flag bool `protobuf:"varint,6,opt,name=flag,proto3" json:"flag,omitempty"`
Text string `protobuf:"bytes,7,opt,name=text,proto3" json:"text,omitempty"`
Data []byte `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
Color Color `protobuf:"varint,9,opt,name=color,proto3,enum=platformtest.v1.Color" json:"color,omitempty"`
Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
Counts map[string]int64 `` /* 141-byte string literal not displayed */
Meta *Meta `protobuf:"bytes,12,opt,name=meta,proto3" json:"meta,omitempty"`
Note *string `protobuf:"bytes,13,opt,name=note,proto3,oneof" json:"note,omitempty"`
// Types that are valid to be assigned to Choice:
//
// *KindsResponse_Word
// *KindsResponse_Number
Choice isKindsResponse_Choice `protobuf_oneof:"choice"`
At *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=at,proto3" json:"at,omitempty"`
Took *durationpb.Duration `protobuf:"bytes,17,opt,name=took,proto3" json:"took,omitempty"`
Maybe *wrapperspb.StringValue `protobuf:"bytes,18,opt,name=maybe,proto3" json:"maybe,omitempty"`
Extra *structpb.Struct `protobuf:"bytes,19,opt,name=extra,proto3" json:"extra,omitempty"`
Anything *structpb.Value `protobuf:"bytes,20,opt,name=anything,proto3" json:"anything,omitempty"`
Metas []*Meta `protobuf:"bytes,21,rep,name=metas,proto3" json:"metas,omitempty"`
Mask *fieldmaskpb.FieldMask `protobuf:"bytes,22,opt,name=mask,proto3" json:"mask,omitempty"`
Packed *anypb.Any `protobuf:"bytes,23,opt,name=packed,proto3" json:"packed,omitempty"`
Nothing *emptypb.Empty `protobuf:"bytes,24,opt,name=nothing,proto3" json:"nothing,omitempty"`
ByNumber map[int32]*Meta `` /* 161-byte string literal not displayed */
Negative int64 `protobuf:"zigzag64,26,opt,name=negative,proto3" json:"negative,omitempty"`
Unsigned uint32 `protobuf:"fixed32,27,opt,name=unsigned,proto3" json:"unsigned,omitempty"`
// contains filtered or unexported fields
}
func (*KindsResponse) Descriptor
deprecated
added in
v0.10.0
func (*KindsResponse) Descriptor() ([]byte, []int)
Deprecated: Use KindsResponse.ProtoReflect.Descriptor instead.
func (*KindsResponse) GetAnything ¶ added in v0.10.0
func (x *KindsResponse) GetAnything() *structpb.Value
func (*KindsResponse) GetAt ¶ added in v0.10.0
func (x *KindsResponse) GetAt() *timestamppb.Timestamp
func (*KindsResponse) GetBig ¶ added in v0.10.0
func (x *KindsResponse) GetBig() uint64
func (*KindsResponse) GetByNumber ¶ added in v0.10.0
func (x *KindsResponse) GetByNumber() map[int32]*Meta
func (*KindsResponse) GetChoice ¶ added in v0.10.0
func (x *KindsResponse) GetChoice() isKindsResponse_Choice
func (*KindsResponse) GetColor ¶ added in v0.10.0
func (x *KindsResponse) GetColor() Color
func (*KindsResponse) GetCounts ¶ added in v0.10.0
func (x *KindsResponse) GetCounts() map[string]int64
func (*KindsResponse) GetData ¶ added in v0.10.0
func (x *KindsResponse) GetData() []byte
func (*KindsResponse) GetExtra ¶ added in v0.10.0
func (x *KindsResponse) GetExtra() *structpb.Struct
func (*KindsResponse) GetFlag ¶ added in v0.10.0
func (x *KindsResponse) GetFlag() bool
func (*KindsResponse) GetId ¶ added in v0.10.0
func (x *KindsResponse) GetId() int64
func (*KindsResponse) GetMask ¶ added in v0.10.0
func (x *KindsResponse) GetMask() *fieldmaskpb.FieldMask
func (*KindsResponse) GetMaybe ¶ added in v0.10.0
func (x *KindsResponse) GetMaybe() *wrapperspb.StringValue
func (*KindsResponse) GetMeta ¶ added in v0.10.0
func (x *KindsResponse) GetMeta() *Meta
func (*KindsResponse) GetMetas ¶ added in v0.10.0
func (x *KindsResponse) GetMetas() []*Meta
func (*KindsResponse) GetNegative ¶ added in v0.10.0
func (x *KindsResponse) GetNegative() int64
func (*KindsResponse) GetNote ¶ added in v0.10.0
func (x *KindsResponse) GetNote() string
func (*KindsResponse) GetNothing ¶ added in v0.10.0
func (x *KindsResponse) GetNothing() *emptypb.Empty
func (*KindsResponse) GetNumber ¶ added in v0.10.0
func (x *KindsResponse) GetNumber() int32
func (*KindsResponse) GetPacked ¶ added in v0.10.0
func (x *KindsResponse) GetPacked() *anypb.Any
func (*KindsResponse) GetPart ¶ added in v0.10.0
func (x *KindsResponse) GetPart() float32
func (*KindsResponse) GetRatio ¶ added in v0.10.0
func (x *KindsResponse) GetRatio() float64
func (*KindsResponse) GetSmall ¶ added in v0.10.0
func (x *KindsResponse) GetSmall() int32
func (*KindsResponse) GetTags ¶ added in v0.10.0
func (x *KindsResponse) GetTags() []string
func (*KindsResponse) GetText ¶ added in v0.10.0
func (x *KindsResponse) GetText() string
func (*KindsResponse) GetTook ¶ added in v0.10.0
func (x *KindsResponse) GetTook() *durationpb.Duration
func (*KindsResponse) GetUnsigned ¶ added in v0.10.0
func (x *KindsResponse) GetUnsigned() uint32
func (*KindsResponse) GetWord ¶ added in v0.10.0
func (x *KindsResponse) GetWord() string
func (*KindsResponse) ProtoMessage ¶ added in v0.10.0
func (*KindsResponse) ProtoMessage()
func (*KindsResponse) ProtoReflect ¶ added in v0.10.0
func (x *KindsResponse) ProtoReflect() protoreflect.Message
func (*KindsResponse) Reset ¶ added in v0.10.0
func (x *KindsResponse) Reset()
func (*KindsResponse) String ¶ added in v0.10.0
func (x *KindsResponse) String() string
type KindsResponse_Number ¶ added in v0.10.0
type KindsResponse_Number struct {
Number int32 `protobuf:"varint,15,opt,name=number,proto3,oneof"`
}
type KindsResponse_Word ¶ added in v0.10.0
type KindsResponse_Word struct {
Word string `protobuf:"bytes,14,opt,name=word,proto3,oneof"`
}
type Meta ¶
type Meta struct {
Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
// contains filtered or unexported fields
}
func (*Meta) Descriptor
deprecated
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type UnimplementedEchoServiceServer ¶
type UnimplementedEchoServiceServer struct{}
UnimplementedEchoServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEchoServiceServer) CreateThing ¶
func (UnimplementedEchoServiceServer) CreateThing(context.Context, *CreateThingRequest) (*CreateThingResponse, error)
func (UnimplementedEchoServiceServer) Echo ¶
func (UnimplementedEchoServiceServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
func (UnimplementedEchoServiceServer) Fail ¶
func (UnimplementedEchoServiceServer) Fail(context.Context, *FailRequest) (*FailResponse, error)
func (UnimplementedEchoServiceServer) Kinds ¶ added in v0.10.0
func (UnimplementedEchoServiceServer) Kinds(context.Context, *KindsRequest) (*KindsResponse, error)
func (UnimplementedEchoServiceServer) OldEcho ¶
func (UnimplementedEchoServiceServer) OldEcho(context.Context, *EchoRequest) (*EchoResponse, error)
func (UnimplementedEchoServiceServer) Upload ¶
func (UnimplementedEchoServiceServer) Upload(context.Context, *UploadRequest) (*UploadResponse, error)
type UnsafeEchoServiceServer ¶
type UnsafeEchoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEchoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServiceServer will result in compilation errors.
type UploadRequest ¶
type UploadRequest struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Avatar *File `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
Images []*File `protobuf:"bytes,3,rep,name=images,proto3" json:"images,omitempty"`
Meta *Meta `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
// contains filtered or unexported fields
}
func (*UploadRequest) Descriptor
deprecated
func (*UploadRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.
func (*UploadRequest) GetAvatar ¶
func (x *UploadRequest) GetAvatar() *File
func (*UploadRequest) GetImages ¶
func (x *UploadRequest) GetImages() []*File
func (*UploadRequest) GetMeta ¶
func (x *UploadRequest) GetMeta() *Meta
func (*UploadRequest) GetTitle ¶
func (x *UploadRequest) GetTitle() string
func (*UploadRequest) ProtoMessage ¶
func (*UploadRequest) ProtoMessage()
func (*UploadRequest) ProtoReflect ¶
func (x *UploadRequest) ProtoReflect() protoreflect.Message
func (*UploadRequest) Reset ¶
func (x *UploadRequest) Reset()
func (*UploadRequest) String ¶
func (x *UploadRequest) String() string
type UploadResponse ¶
type UploadResponse struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
AvatarName string `protobuf:"bytes,2,opt,name=avatar_name,json=avatarName,proto3" json:"avatar_name,omitempty"`
AvatarSize int32 `protobuf:"varint,3,opt,name=avatar_size,json=avatarSize,proto3" json:"avatar_size,omitempty"`
Images []string `protobuf:"bytes,4,rep,name=images,proto3" json:"images,omitempty"`
Author string `protobuf:"bytes,5,opt,name=author,proto3" json:"author,omitempty"`
AvatarType string `protobuf:"bytes,6,opt,name=avatar_type,json=avatarType,proto3" json:"avatar_type,omitempty"`
// contains filtered or unexported fields
}
func (*UploadResponse) Descriptor
deprecated
func (*UploadResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.
func (*UploadResponse) GetAuthor ¶
func (x *UploadResponse) GetAuthor() string
func (*UploadResponse) GetAvatarName ¶
func (x *UploadResponse) GetAvatarName() string
func (*UploadResponse) GetAvatarSize ¶
func (x *UploadResponse) GetAvatarSize() int32
func (*UploadResponse) GetAvatarType ¶
func (x *UploadResponse) GetAvatarType() string
func (*UploadResponse) GetImages ¶
func (x *UploadResponse) GetImages() []string
func (*UploadResponse) GetTitle ¶
func (x *UploadResponse) GetTitle() string
func (*UploadResponse) ProtoMessage ¶
func (*UploadResponse) ProtoMessage()
func (*UploadResponse) ProtoReflect ¶
func (x *UploadResponse) ProtoReflect() protoreflect.Message
func (*UploadResponse) Reset ¶
func (x *UploadResponse) Reset()
func (*UploadResponse) String ¶
func (x *UploadResponse) String() string