greetv1

package
v0.0.0-...-6d8d388 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GreetService_Greet_FullMethodName             = "/greet.v1.GreetService/Greet"
	GreetService_GreetManyTimes_FullMethodName    = "/greet.v1.GreetService/GreetManyTimes"
	GreetService_LongGreet_FullMethodName         = "/greet.v1.GreetService/LongGreet"
	GreetService_GreetEveryone_FullMethodName     = "/greet.v1.GreetService/GreetEveryone"
	GreetService_GreetWithDeadline_FullMethodName = "/greet.v1.GreetService/GreetWithDeadline"
)

Variables

View Source
var File_greet_v1_greet_proto protoreflect.FileDescriptor
View Source
var GreetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "greet.v1.GreetService",
	HandlerType: (*GreetServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Greet",
			Handler:    _GreetService_Greet_Handler,
		},
		{
			MethodName: "GreetWithDeadline",
			Handler:    _GreetService_GreetWithDeadline_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GreetManyTimes",
			Handler:       _GreetService_GreetManyTimes_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "LongGreet",
			Handler:       _GreetService_LongGreet_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "GreetEveryone",
			Handler:       _GreetService_GreetEveryone_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "greet/v1/greet.proto",
}

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

Functions

func RegisterGreetServiceServer

func RegisterGreetServiceServer(s grpc.ServiceRegistrar, srv GreetServiceServer)

Types

type GreetEveryoneRequest

type GreetEveryoneRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetEveryoneRequest) Descriptor deprecated

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

Deprecated: Use GreetEveryoneRequest.ProtoReflect.Descriptor instead.

func (*GreetEveryoneRequest) GetGreeting

func (x *GreetEveryoneRequest) GetGreeting() *Greeting

func (*GreetEveryoneRequest) ProtoMessage

func (*GreetEveryoneRequest) ProtoMessage()

func (*GreetEveryoneRequest) ProtoReflect

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

func (*GreetEveryoneRequest) Reset

func (x *GreetEveryoneRequest) Reset()

func (*GreetEveryoneRequest) String

func (x *GreetEveryoneRequest) String() string

type GreetEveryoneResponse

type GreetEveryoneResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetEveryoneResponse) Descriptor deprecated

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

Deprecated: Use GreetEveryoneResponse.ProtoReflect.Descriptor instead.

func (*GreetEveryoneResponse) GetResult

func (x *GreetEveryoneResponse) GetResult() string

func (*GreetEveryoneResponse) ProtoMessage

func (*GreetEveryoneResponse) ProtoMessage()

func (*GreetEveryoneResponse) ProtoReflect

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

func (*GreetEveryoneResponse) Reset

func (x *GreetEveryoneResponse) Reset()

func (*GreetEveryoneResponse) String

func (x *GreetEveryoneResponse) String() string

type GreetManyTimesRequest

type GreetManyTimesRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetManyTimesRequest) Descriptor deprecated

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

Deprecated: Use GreetManyTimesRequest.ProtoReflect.Descriptor instead.

func (*GreetManyTimesRequest) GetGreeting

func (x *GreetManyTimesRequest) GetGreeting() *Greeting

func (*GreetManyTimesRequest) ProtoMessage

func (*GreetManyTimesRequest) ProtoMessage()

func (*GreetManyTimesRequest) ProtoReflect

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

func (*GreetManyTimesRequest) Reset

func (x *GreetManyTimesRequest) Reset()

func (*GreetManyTimesRequest) String

func (x *GreetManyTimesRequest) String() string

type GreetManyTimesResponse

type GreetManyTimesResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetManyTimesResponse) Descriptor deprecated

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

Deprecated: Use GreetManyTimesResponse.ProtoReflect.Descriptor instead.

func (*GreetManyTimesResponse) GetResult

func (x *GreetManyTimesResponse) GetResult() string

func (*GreetManyTimesResponse) ProtoMessage

func (*GreetManyTimesResponse) ProtoMessage()

func (*GreetManyTimesResponse) ProtoReflect

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

func (*GreetManyTimesResponse) Reset

func (x *GreetManyTimesResponse) Reset()

func (*GreetManyTimesResponse) String

func (x *GreetManyTimesResponse) String() string

type GreetRequest

type GreetRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetRequest) Descriptor deprecated

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

Deprecated: Use GreetRequest.ProtoReflect.Descriptor instead.

func (*GreetRequest) GetGreeting

func (x *GreetRequest) GetGreeting() *Greeting

func (*GreetRequest) ProtoMessage

func (*GreetRequest) ProtoMessage()

func (*GreetRequest) ProtoReflect

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

func (*GreetRequest) Reset

func (x *GreetRequest) Reset()

func (*GreetRequest) String

func (x *GreetRequest) String() string

type GreetResponse

type GreetResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetResponse) Descriptor deprecated

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

Deprecated: Use GreetResponse.ProtoReflect.Descriptor instead.

func (*GreetResponse) GetResult

func (x *GreetResponse) GetResult() string

func (*GreetResponse) ProtoMessage

func (*GreetResponse) ProtoMessage()

func (*GreetResponse) ProtoReflect

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

func (*GreetResponse) Reset

func (x *GreetResponse) Reset()

func (*GreetResponse) String

func (x *GreetResponse) String() string

type GreetServiceClient

type GreetServiceClient interface {
	// Unary
	Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error)
	// Server Streaming
	GreetManyTimes(ctx context.Context, in *GreetManyTimesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GreetManyTimesResponse], error)
	// Client Streaming
	LongGreet(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[LongGreetRequest, LongGreetResponse], error)
	// BiDi Streaming
	GreetEveryone(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[GreetEveryoneRequest, GreetEveryoneResponse], error)
	// Unary With Deadline
	GreetWithDeadline(ctx context.Context, in *GreetWithDeadlineRequest, opts ...grpc.CallOption) (*GreetWithDeadlineResponse, error)
}

GreetServiceClient is the client API for GreetService 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 GreetServiceServer

type GreetServiceServer interface {
	// Unary
	Greet(context.Context, *GreetRequest) (*GreetResponse, error)
	// Server Streaming
	GreetManyTimes(*GreetManyTimesRequest, grpc.ServerStreamingServer[GreetManyTimesResponse]) error
	// Client Streaming
	LongGreet(grpc.ClientStreamingServer[LongGreetRequest, LongGreetResponse]) error
	// BiDi Streaming
	GreetEveryone(grpc.BidiStreamingServer[GreetEveryoneRequest, GreetEveryoneResponse]) error
	// Unary With Deadline
	GreetWithDeadline(context.Context, *GreetWithDeadlineRequest) (*GreetWithDeadlineResponse, error)
	// contains filtered or unexported methods
}

GreetServiceServer is the server API for GreetService service. All implementations must embed UnimplementedGreetServiceServer for forward compatibility.

type GreetService_GreetEveryoneClient

type GreetService_GreetEveryoneClient = grpc.BidiStreamingClient[GreetEveryoneRequest, GreetEveryoneResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GreetService_GreetEveryoneServer

type GreetService_GreetEveryoneServer = grpc.BidiStreamingServer[GreetEveryoneRequest, GreetEveryoneResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GreetService_GreetManyTimesClient

type GreetService_GreetManyTimesClient = grpc.ServerStreamingClient[GreetManyTimesResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GreetService_GreetManyTimesServer

type GreetService_GreetManyTimesServer = grpc.ServerStreamingServer[GreetManyTimesResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GreetService_LongGreetClient

type GreetService_LongGreetClient = grpc.ClientStreamingClient[LongGreetRequest, LongGreetResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GreetService_LongGreetServer

type GreetService_LongGreetServer = grpc.ClientStreamingServer[LongGreetRequest, LongGreetResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GreetWithDeadlineRequest

type GreetWithDeadlineRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetWithDeadlineRequest) Descriptor deprecated

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

Deprecated: Use GreetWithDeadlineRequest.ProtoReflect.Descriptor instead.

func (*GreetWithDeadlineRequest) GetGreeting

func (x *GreetWithDeadlineRequest) GetGreeting() *Greeting

func (*GreetWithDeadlineRequest) ProtoMessage

func (*GreetWithDeadlineRequest) ProtoMessage()

func (*GreetWithDeadlineRequest) ProtoReflect

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

func (*GreetWithDeadlineRequest) Reset

func (x *GreetWithDeadlineRequest) Reset()

func (*GreetWithDeadlineRequest) String

func (x *GreetWithDeadlineRequest) String() string

type GreetWithDeadlineResponse

type GreetWithDeadlineResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GreetWithDeadlineResponse) Descriptor deprecated

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

Deprecated: Use GreetWithDeadlineResponse.ProtoReflect.Descriptor instead.

func (*GreetWithDeadlineResponse) GetResult

func (x *GreetWithDeadlineResponse) GetResult() string

func (*GreetWithDeadlineResponse) ProtoMessage

func (*GreetWithDeadlineResponse) ProtoMessage()

func (*GreetWithDeadlineResponse) ProtoReflect

func (*GreetWithDeadlineResponse) Reset

func (x *GreetWithDeadlineResponse) Reset()

func (*GreetWithDeadlineResponse) String

func (x *GreetWithDeadlineResponse) String() string

type Greeting

type Greeting struct {
	FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	LastName  string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Greeting) Descriptor deprecated

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

Deprecated: Use Greeting.ProtoReflect.Descriptor instead.

func (*Greeting) GetFirstName

func (x *Greeting) GetFirstName() string

func (*Greeting) GetLastName

func (x *Greeting) GetLastName() string

func (*Greeting) ProtoMessage

func (*Greeting) ProtoMessage()

func (*Greeting) ProtoReflect

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

func (*Greeting) Reset

func (x *Greeting) Reset()

func (*Greeting) String

func (x *Greeting) String() string

type LongGreetRequest

type LongGreetRequest struct {
	Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"`
	// contains filtered or unexported fields
}

func (*LongGreetRequest) Descriptor deprecated

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

Deprecated: Use LongGreetRequest.ProtoReflect.Descriptor instead.

func (*LongGreetRequest) GetGreeting

func (x *LongGreetRequest) GetGreeting() *Greeting

func (*LongGreetRequest) ProtoMessage

func (*LongGreetRequest) ProtoMessage()

func (*LongGreetRequest) ProtoReflect

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

func (*LongGreetRequest) Reset

func (x *LongGreetRequest) Reset()

func (*LongGreetRequest) String

func (x *LongGreetRequest) String() string

type LongGreetResponse

type LongGreetResponse struct {
	Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*LongGreetResponse) Descriptor deprecated

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

Deprecated: Use LongGreetResponse.ProtoReflect.Descriptor instead.

func (*LongGreetResponse) GetResult

func (x *LongGreetResponse) GetResult() string

func (*LongGreetResponse) ProtoMessage

func (*LongGreetResponse) ProtoMessage()

func (*LongGreetResponse) ProtoReflect

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

func (*LongGreetResponse) Reset

func (x *LongGreetResponse) Reset()

func (*LongGreetResponse) String

func (x *LongGreetResponse) String() string

type UnimplementedGreetServiceServer

type UnimplementedGreetServiceServer struct{}

UnimplementedGreetServiceServer 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 (UnimplementedGreetServiceServer) Greet

func (UnimplementedGreetServiceServer) GreetWithDeadline

type UnsafeGreetServiceServer

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

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

Jump to

Keyboard shortcuts

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