mapfields

package
v1.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Messaging_UpdateMessage_FullMethodName = "/tests.mapfields.message.v1.Messaging/UpdateMessage"
)

Variables

View Source
var File_example_api_tests_mapfields_message_proto protoreflect.FileDescriptor
View Source
var Messaging_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tests.mapfields.message.v1.Messaging",
	HandlerType: (*MessagingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateMessage",
			Handler:    _Messaging_UpdateMessage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example/api/tests/mapfields/message.proto",
}

Messaging_ServiceDesc is the grpc.ServiceDesc for Messaging service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func MessagingClientRoutes added in v1.5.8

func MessagingClientRoutes(cli MessagingClient, opts ...gors.Option) []gors.Route

func MessagingServerRoutes added in v1.5.8

func MessagingServerRoutes(srv MessagingServer, opts ...gors.Option) []gors.Route

func MessagingServiceRoutes

func MessagingServiceRoutes(svc MessagingService, opts ...gors.Option) []gors.Route

func RegisterMessagingServer

func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)

Types

type AnotherMessage

type AnotherMessage struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*AnotherMessage) Descriptor deprecated

func (*AnotherMessage) Descriptor() ([]byte, []int)

Deprecated: Use AnotherMessage.ProtoReflect.Descriptor instead.

func (*AnotherMessage) GetId

func (x *AnotherMessage) GetId() int64

func (*AnotherMessage) GetLabel

func (x *AnotherMessage) GetLabel() string

func (*AnotherMessage) ProtoMessage

func (*AnotherMessage) ProtoMessage()

func (*AnotherMessage) ProtoReflect

func (x *AnotherMessage) ProtoReflect() protoreflect.Message

func (*AnotherMessage) Reset

func (x *AnotherMessage) Reset()

func (*AnotherMessage) String

func (x *AnotherMessage) String() string

type Message

type Message struct {
	MessageId      string                         `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	AnotherMessage *AnotherMessage                `protobuf:"bytes,2,opt,name=another_message,json=anotherMessage,proto3" json:"another_message,omitempty"`
	SubMessage     *Message_SubMessage            `protobuf:"bytes,3,opt,name=sub_message,json=subMessage,proto3" json:"sub_message,omitempty"`
	StringList     []string                       `protobuf:"bytes,4,rep,name=string_list,json=stringList,proto3" json:"string_list,omitempty"`
	SubMessageList []*Message_SubMessage          `protobuf:"bytes,5,rep,name=sub_message_list,json=subMessageList,proto3" json:"sub_message_list,omitempty"`
	ObjectList     []*structpb.Struct             `protobuf:"bytes,6,rep,name=object_list,json=objectList,proto3" json:"object_list,omitempty"`
	StringsMap     map[string]string              `` /* 179-byte string literal not displayed */
	SubMessagesMap map[string]*Message_SubMessage `` /* 193-byte string literal not displayed */
	ObjectsMap     map[string]*structpb.Struct    `` /* 179-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetAnotherMessage

func (x *Message) GetAnotherMessage() *AnotherMessage

func (*Message) GetMessageId

func (x *Message) GetMessageId() string

func (*Message) GetObjectList

func (x *Message) GetObjectList() []*structpb.Struct

func (*Message) GetObjectsMap

func (x *Message) GetObjectsMap() map[string]*structpb.Struct

func (*Message) GetStringList

func (x *Message) GetStringList() []string

func (*Message) GetStringsMap

func (x *Message) GetStringsMap() map[string]string

func (*Message) GetSubMessage

func (x *Message) GetSubMessage() *Message_SubMessage

func (*Message) GetSubMessageList

func (x *Message) GetSubMessageList() []*Message_SubMessage

func (*Message) GetSubMessagesMap

func (x *Message) GetSubMessagesMap() map[string]*Message_SubMessage

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_SubMessage

type Message_SubMessage struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*Message_SubMessage) Descriptor deprecated

func (*Message_SubMessage) Descriptor() ([]byte, []int)

Deprecated: Use Message_SubMessage.ProtoReflect.Descriptor instead.

func (*Message_SubMessage) GetId

func (x *Message_SubMessage) GetId() int64

func (*Message_SubMessage) GetLabel

func (x *Message_SubMessage) GetLabel() string

func (*Message_SubMessage) ProtoMessage

func (*Message_SubMessage) ProtoMessage()

func (*Message_SubMessage) ProtoReflect

func (x *Message_SubMessage) ProtoReflect() protoreflect.Message

func (*Message_SubMessage) Reset

func (x *Message_SubMessage) Reset()

func (*Message_SubMessage) String

func (x *Message_SubMessage) String() string

type MessagingClient

type MessagingClient interface {
	UpdateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}

MessagingClient is the client API for Messaging 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 NewMessagingClient

func NewMessagingClient(cc grpc.ClientConnInterface) MessagingClient

type MessagingServer

type MessagingServer interface {
	UpdateMessage(context.Context, *Message) (*Message, error)
	// contains filtered or unexported methods
}

MessagingServer is the server API for Messaging service. All implementations must embed UnimplementedMessagingServer for forward compatibility

type MessagingService

type MessagingService interface {
	UpdateMessage(context.Context, *Message) (*Message, error)
}

MessagingService is the service API for Messaging service.

type UnimplementedMessagingServer

type UnimplementedMessagingServer struct {
}

UnimplementedMessagingServer must be embedded to have forward compatible implementations.

func (UnimplementedMessagingServer) UpdateMessage

type UnsafeMessagingServer

type UnsafeMessagingServer interface {
	// contains filtered or unexported methods
}

UnsafeMessagingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessagingServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL