v1

package
v0.0.0-...-213d5aa Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_udp2mysql_v1_udp2mysql_proto protoreflect.FileDescriptor
View Source
var UDPPacketApi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "udp2mysql.v1.UDPPacketApi",
	HandlerType: (*UDPPacketApiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUDPPackets",
			Handler:    _UDPPacketApi_ListUDPPackets_Handler,
		},
		{
			MethodName: "GetUDPPacket",
			Handler:    _UDPPacketApi_GetUDPPacket_Handler,
		},
		{
			MethodName: "CreateUDPPacket",
			Handler:    _UDPPacketApi_CreateUDPPacket_Handler,
		},
		{
			MethodName: "UpdateUDPPacket",
			Handler:    _UDPPacketApi_UpdateUDPPacket_Handler,
		},
		{
			MethodName: "DeleteUDPPacket",
			Handler:    _UDPPacketApi_DeleteUDPPacket_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/udp2mysql/v1/udp2mysql.proto",
}

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

Functions

func RegisterUDPPacketApiServer

func RegisterUDPPacketApiServer(s grpc.ServiceRegistrar, srv UDPPacketApiServer)

Types

type CreateUDPPacketRequest

type CreateUDPPacketRequest struct {

	// Resource name of the parent resource where to create the udp_packet.
	// For example: "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The udp_packet id to use for this udp_packet
	UdpPacketId string `protobuf:"bytes,3,opt,name=udp_packet_id,json=udpPacketId,proto3" json:"udp_packet_id,omitempty"`
	// The udp_packet resource to create.
	// The field name should match the Noun in the method name.
	UdpPacket *UDPPacket `protobuf:"bytes,2,opt,name=udp_packet,json=udpPacket,proto3" json:"udp_packet,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUDPPacketRequest) Descriptor deprecated

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

Deprecated: Use CreateUDPPacketRequest.ProtoReflect.Descriptor instead.

func (*CreateUDPPacketRequest) GetParent

func (x *CreateUDPPacketRequest) GetParent() string

func (*CreateUDPPacketRequest) GetUdpPacket

func (x *CreateUDPPacketRequest) GetUdpPacket() *UDPPacket

func (*CreateUDPPacketRequest) GetUdpPacketId

func (x *CreateUDPPacketRequest) GetUdpPacketId() string

func (*CreateUDPPacketRequest) ProtoMessage

func (*CreateUDPPacketRequest) ProtoMessage()

func (*CreateUDPPacketRequest) ProtoReflect

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

func (*CreateUDPPacketRequest) Reset

func (x *CreateUDPPacketRequest) Reset()

func (*CreateUDPPacketRequest) String

func (x *CreateUDPPacketRequest) String() string

type DeleteUDPPacketRequest

type DeleteUDPPacketRequest struct {

	// Resource name of the parent resource where to create the udp_packet.
	// For example: "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUDPPacketRequest) Descriptor deprecated

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

Deprecated: Use DeleteUDPPacketRequest.ProtoReflect.Descriptor instead.

func (*DeleteUDPPacketRequest) GetName

func (x *DeleteUDPPacketRequest) GetName() string

func (*DeleteUDPPacketRequest) GetParent

func (x *DeleteUDPPacketRequest) GetParent() string

func (*DeleteUDPPacketRequest) ProtoMessage

func (*DeleteUDPPacketRequest) ProtoMessage()

func (*DeleteUDPPacketRequest) ProtoReflect

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

func (*DeleteUDPPacketRequest) Reset

func (x *DeleteUDPPacketRequest) Reset()

func (*DeleteUDPPacketRequest) String

func (x *DeleteUDPPacketRequest) String() string

type GetUDPPacketRequest

type GetUDPPacketRequest struct {

	// Resource name of a UDPPacket. For example: "shelves/shelf1/books/book2".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUDPPacketRequest) Descriptor deprecated

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

Deprecated: Use GetUDPPacketRequest.ProtoReflect.Descriptor instead.

func (*GetUDPPacketRequest) GetName

func (x *GetUDPPacketRequest) GetName() string

func (*GetUDPPacketRequest) ProtoMessage

func (*GetUDPPacketRequest) ProtoMessage()

func (*GetUDPPacketRequest) ProtoReflect

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

func (*GetUDPPacketRequest) Reset

func (x *GetUDPPacketRequest) Reset()

func (*GetUDPPacketRequest) String

func (x *GetUDPPacketRequest) String() string

type ListUDPPacketsRequest

type ListUDPPacketsRequest struct {

	// Resource name of the parent resource where to create the udp_packet.
	// For example: "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUDPPacketsRequest) Descriptor deprecated

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

Deprecated: Use ListUDPPacketsRequest.ProtoReflect.Descriptor instead.

func (*ListUDPPacketsRequest) GetPageSize

func (x *ListUDPPacketsRequest) GetPageSize() int32

func (*ListUDPPacketsRequest) GetPageToken

func (x *ListUDPPacketsRequest) GetPageToken() string

func (*ListUDPPacketsRequest) GetParent

func (x *ListUDPPacketsRequest) GetParent() string

func (*ListUDPPacketsRequest) ProtoMessage

func (*ListUDPPacketsRequest) ProtoMessage()

func (*ListUDPPacketsRequest) ProtoReflect

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

func (*ListUDPPacketsRequest) Reset

func (x *ListUDPPacketsRequest) Reset()

func (*ListUDPPacketsRequest) String

func (x *ListUDPPacketsRequest) String() string

type ListUDPPacketsResponse

type ListUDPPacketsResponse struct {

	// The field name should match the noun "udp_packet" in the method name.  There
	// will be a maximum number of items returned based on the page_size field
	// in the request.
	UdpPackets []*UDPPacket `protobuf:"bytes,1,rep,name=udp_packets,json=udpPackets,proto3" json:"udp_packets,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUDPPacketsResponse) Descriptor deprecated

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

Deprecated: Use ListUDPPacketsResponse.ProtoReflect.Descriptor instead.

func (*ListUDPPacketsResponse) GetNextPageToken

func (x *ListUDPPacketsResponse) GetNextPageToken() string

func (*ListUDPPacketsResponse) GetUdpPackets

func (x *ListUDPPacketsResponse) GetUdpPackets() []*UDPPacket

func (*ListUDPPacketsResponse) ProtoMessage

func (*ListUDPPacketsResponse) ProtoMessage()

func (*ListUDPPacketsResponse) ProtoReflect

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

func (*ListUDPPacketsResponse) Reset

func (x *ListUDPPacketsResponse) Reset()

func (*ListUDPPacketsResponse) String

func (x *ListUDPPacketsResponse) String() string

type UDPPacket

type UDPPacket struct {

	// Resource name of the UDPPacket. It must have the format of "shelves/*/books/*".
	// For example: "shelves/shelf1/books/book2".
	Name       string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id         string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Title      string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Content    string                 `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*UDPPacket) Descriptor deprecated

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

Deprecated: Use UDPPacket.ProtoReflect.Descriptor instead.

func (*UDPPacket) GetContent

func (x *UDPPacket) GetContent() string

func (*UDPPacket) GetId

func (x *UDPPacket) GetId() string

func (*UDPPacket) GetName

func (x *UDPPacket) GetName() string

func (*UDPPacket) GetTitle

func (x *UDPPacket) GetTitle() string

func (*UDPPacket) GetUpdateTime

func (x *UDPPacket) GetUpdateTime() *timestamppb.Timestamp

func (*UDPPacket) ProtoMessage

func (*UDPPacket) ProtoMessage()

func (*UDPPacket) ProtoReflect

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

func (*UDPPacket) Reset

func (x *UDPPacket) Reset()

func (*UDPPacket) String

func (x *UDPPacket) String() string

type UDPPacketApiClient

type UDPPacketApiClient interface {
	ListUDPPackets(ctx context.Context, in *ListUDPPacketsRequest, opts ...grpc.CallOption) (*ListUDPPacketsResponse, error)
	GetUDPPacket(ctx context.Context, in *GetUDPPacketRequest, opts ...grpc.CallOption) (*UDPPacket, error)
	CreateUDPPacket(ctx context.Context, in *CreateUDPPacketRequest, opts ...grpc.CallOption) (*UDPPacket, error)
	// UpdateUDPPacket MUST have no rename or move feature.
	UpdateUDPPacket(ctx context.Context, in *UpdateUDPPacketRequest, opts ...grpc.CallOption) (*UDPPacket, error)
	DeleteUDPPacket(ctx context.Context, in *DeleteUDPPacketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UDPPacketApiClient is the client API for UDPPacketApi 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.

type UDPPacketApiServer

type UDPPacketApiServer interface {
	ListUDPPackets(context.Context, *ListUDPPacketsRequest) (*ListUDPPacketsResponse, error)
	GetUDPPacket(context.Context, *GetUDPPacketRequest) (*UDPPacket, error)
	CreateUDPPacket(context.Context, *CreateUDPPacketRequest) (*UDPPacket, error)
	// UpdateUDPPacket MUST have no rename or move feature.
	UpdateUDPPacket(context.Context, *UpdateUDPPacketRequest) (*UDPPacket, error)
	DeleteUDPPacket(context.Context, *DeleteUDPPacketRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UDPPacketApiServer is the server API for UDPPacketApi service. All implementations must embed UnimplementedUDPPacketApiServer for forward compatibility

type UnimplementedUDPPacketApiServer

type UnimplementedUDPPacketApiServer struct {
}

UnimplementedUDPPacketApiServer must be embedded to have forward compatible implementations.

func (UnimplementedUDPPacketApiServer) CreateUDPPacket

func (UnimplementedUDPPacketApiServer) DeleteUDPPacket

func (UnimplementedUDPPacketApiServer) GetUDPPacket

func (UnimplementedUDPPacketApiServer) ListUDPPackets

func (UnimplementedUDPPacketApiServer) UpdateUDPPacket

type UnsafeUDPPacketApiServer

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

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

type UpdateUDPPacketRequest

type UpdateUDPPacketRequest struct {

	// Resource name of the parent resource where to create the udp_packet.
	// For example: "shelves/shelf1".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The udp_packet resource which replaces the resource on the server.
	UdpPacket *UDPPacket `protobuf:"bytes,2,opt,name=udp_packet,json=udpPacket,proto3" json:"udp_packet,omitempty"`
	// The update mask applies to the resource. For the `FieldMask` definition,
	// see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUDPPacketRequest) Descriptor deprecated

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

Deprecated: Use UpdateUDPPacketRequest.ProtoReflect.Descriptor instead.

func (*UpdateUDPPacketRequest) GetParent

func (x *UpdateUDPPacketRequest) GetParent() string

func (*UpdateUDPPacketRequest) GetUdpPacket

func (x *UpdateUDPPacketRequest) GetUdpPacket() *UDPPacket

func (*UpdateUDPPacketRequest) GetUpdateMask

func (x *UpdateUDPPacketRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUDPPacketRequest) ProtoMessage

func (*UpdateUDPPacketRequest) ProtoMessage()

func (*UpdateUDPPacketRequest) ProtoReflect

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

func (*UpdateUDPPacketRequest) Reset

func (x *UpdateUDPPacketRequest) Reset()

func (*UpdateUDPPacketRequest) String

func (x *UpdateUDPPacketRequest) String() string

Jump to

Keyboard shortcuts

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