gen

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional bool bool_value = 51234;
	E_BoolValue = &file_reflect_proto_extTypes[0]
	// optional string string_value = 51235;
	E_StringValue = &file_reflect_proto_extTypes[1]
	// optional int32 int_value = 51236;
	E_IntValue = &file_reflect_proto_extTypes[2]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_reflect_proto protoreflect.FileDescriptor
View Source
var Reflect_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "reflect.Reflect",
	HandlerType: (*ReflectServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNoAnnotations",
			Handler:    _Reflect_GetNoAnnotations_Handler,
		},
		{
			MethodName: "GetAnnotations",
			Handler:    _Reflect_GetAnnotations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "reflect.proto",
}

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

Functions

func RegisterReflectServer

func RegisterReflectServer(s grpc.ServiceRegistrar, srv ReflectServer)

Types

type Annotations

type Annotations struct {
	BoolValue   bool   `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	IntValue    int32  `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3" json:"int_value,omitempty"`
	// contains filtered or unexported fields
}

func (*Annotations) Descriptor deprecated

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

Deprecated: Use Annotations.ProtoReflect.Descriptor instead.

func (*Annotations) GetBoolValue

func (x *Annotations) GetBoolValue() bool

func (*Annotations) GetIntValue

func (x *Annotations) GetIntValue() int32

func (*Annotations) GetStringValue

func (x *Annotations) GetStringValue() string

func (*Annotations) ProtoMessage

func (*Annotations) ProtoMessage()

func (*Annotations) ProtoReflect

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

func (*Annotations) Reset

func (x *Annotations) Reset()

func (*Annotations) String

func (x *Annotations) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ReflectClient

type ReflectClient interface {
	// we will read the options of this method using reflection
	GetNoAnnotations(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Annotations, error)
	// we will read the options of this method using reflection
	GetAnnotations(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Annotations, error)
}

ReflectClient is the client API for Reflect 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 NewReflectClient

func NewReflectClient(cc grpc.ClientConnInterface) ReflectClient

type ReflectServer

type ReflectServer interface {
	// we will read the options of this method using reflection
	GetNoAnnotations(context.Context, *Empty) (*Annotations, error)
	// we will read the options of this method using reflection
	GetAnnotations(context.Context, *Empty) (*Annotations, error)
	// contains filtered or unexported methods
}

ReflectServer is the server API for Reflect service. All implementations must embed UnimplementedReflectServer for forward compatibility

type UnimplementedReflectServer

type UnimplementedReflectServer struct {
}

UnimplementedReflectServer must be embedded to have forward compatible implementations.

func (UnimplementedReflectServer) GetAnnotations

func (UnimplementedReflectServer) GetNoAnnotations

type UnsafeReflectServer

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

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

Jump to

Keyboard shortcuts

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