pb

package
v0.0.0-...-d5aecf8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Corpus_name = map[int32]string{
		0: "UNIVERSAL",
		1: "WEB",
		2: "IMAGES",
		3: "LOCAL",
		4: "NEWS",
		5: "PRODUCTS",
		6: "VIDEO",
	}
	Corpus_value = map[string]int32{
		"UNIVERSAL": 0,
		"WEB":       1,
		"IMAGES":    2,
		"LOCAL":     3,
		"NEWS":      4,
		"PRODUCTS":  5,
		"VIDEO":     6,
	}
)

Enum value maps for Corpus.

View Source
var File_pb_any_proto protoreflect.FileDescriptor
View Source
var File_pb_enum_proto protoreflect.FileDescriptor
View Source
var File_pb_hello_proto protoreflect.FileDescriptor
View Source
var File_pb_import_proto protoreflect.FileDescriptor
View Source
var File_pb_oneof_proto protoreflect.FileDescriptor
View Source
var File_pb_repeated_proto protoreflect.FileDescriptor
View Source
var HelloService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "hello.HelloService",
	HandlerType: (*HelloServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _HelloService_Hello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/hello.proto",
}

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

Functions

func RegisterHelloServiceServer

func RegisterHelloServiceServer(s grpc.ServiceRegistrar, srv HelloServiceServer)

Types

type Corpus

type Corpus int32
const (
	Corpus_UNIVERSAL Corpus = 0
	Corpus_WEB       Corpus = 1
	Corpus_IMAGES    Corpus = 2
	Corpus_LOCAL     Corpus = 3
	Corpus_NEWS      Corpus = 4
	Corpus_PRODUCTS  Corpus = 5
	Corpus_VIDEO     Corpus = 6
)

func (Corpus) Descriptor

func (Corpus) Descriptor() protoreflect.EnumDescriptor

func (Corpus) Enum

func (x Corpus) Enum() *Corpus

func (Corpus) EnumDescriptor deprecated

func (Corpus) EnumDescriptor() ([]byte, []int)

Deprecated: Use Corpus.Descriptor instead.

func (Corpus) Number

func (x Corpus) Number() protoreflect.EnumNumber

func (Corpus) String

func (x Corpus) String() string

func (Corpus) Type

func (Corpus) Type() protoreflect.EnumType

type ErrorStatus

type ErrorStatus struct {
	Message string       `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Details []*anypb.Any `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorStatus) Descriptor deprecated

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

Deprecated: Use ErrorStatus.ProtoReflect.Descriptor instead.

func (*ErrorStatus) GetDetails

func (x *ErrorStatus) GetDetails() []*anypb.Any

func (*ErrorStatus) GetMessage

func (x *ErrorStatus) GetMessage() string

func (*ErrorStatus) ProtoMessage

func (*ErrorStatus) ProtoMessage()

func (*ErrorStatus) ProtoReflect

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

func (*ErrorStatus) Reset

func (x *ErrorStatus) Reset()

func (*ErrorStatus) String

func (x *ErrorStatus) String() string

type ErrorStatusExt

type ErrorStatusExt struct {
	ErrorStatus *ErrorStatus `protobuf:"bytes,1,opt,name=error_status,json=errorStatus,proto3" json:"error_status,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorStatusExt) Descriptor deprecated

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

Deprecated: Use ErrorStatusExt.ProtoReflect.Descriptor instead.

func (*ErrorStatusExt) GetErrorStatus

func (x *ErrorStatusExt) GetErrorStatus() *ErrorStatus

func (*ErrorStatusExt) ProtoMessage

func (*ErrorStatusExt) ProtoMessage()

func (*ErrorStatusExt) ProtoReflect

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

func (*ErrorStatusExt) Reset

func (x *ErrorStatusExt) Reset()

func (*ErrorStatusExt) String

func (x *ErrorStatusExt) String() string

type HelloServiceClient

type HelloServiceClient interface {
	Hello(ctx context.Context, in *String, opts ...grpc.CallOption) (*String, error)
}

HelloServiceClient is the client API for HelloService 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 HelloServiceServer

type HelloServiceServer interface {
	Hello(context.Context, *String) (*String, error)
	// contains filtered or unexported methods
}

HelloServiceServer is the server API for HelloService service. All implementations must embed UnimplementedHelloServiceServer for forward compatibility

type Result

type Result struct {
	Value string           `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	A     map[string]int32 `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetA

func (x *Result) GetA() map[string]int32

func (*Result) GetValue

func (x *Result) GetValue() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type SampleMessage

type SampleMessage struct {

	// Types that are assignable to TestOneof:
	//	*SampleMessage_Sub1
	//	*SampleMessage_Sub2
	TestOneof isSampleMessage_TestOneof `protobuf_oneof:"test_oneof"`
	// contains filtered or unexported fields
}

func (*SampleMessage) Descriptor deprecated

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

Deprecated: Use SampleMessage.ProtoReflect.Descriptor instead.

func (*SampleMessage) GetSub1

func (x *SampleMessage) GetSub1() *Sub1

func (*SampleMessage) GetSub2

func (x *SampleMessage) GetSub2() *Sub2

func (*SampleMessage) GetTestOneof

func (m *SampleMessage) GetTestOneof() isSampleMessage_TestOneof

func (*SampleMessage) ProtoMessage

func (*SampleMessage) ProtoMessage()

func (*SampleMessage) ProtoReflect

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

func (*SampleMessage) Reset

func (x *SampleMessage) Reset()

func (*SampleMessage) String

func (x *SampleMessage) String() string

type SampleMessage_Sub1

type SampleMessage_Sub1 struct {
	Sub1 *Sub1 `protobuf:"bytes,1,opt,name=sub1,proto3,oneof"`
}

type SampleMessage_Sub2

type SampleMessage_Sub2 struct {
	Sub2 *Sub2 `protobuf:"bytes,2,opt,name=sub2,proto3,oneof"`
}

type SearchResponse

type SearchResponse struct {
	Results []*Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetResults

func (x *SearchResponse) GetResults() []*Result

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

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

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type String

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

func (*String) Descriptor deprecated

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

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

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

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type Sub1

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

func (*Sub1) Descriptor deprecated

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

Deprecated: Use Sub1.ProtoReflect.Descriptor instead.

func (*Sub1) GetName

func (x *Sub1) GetName() string

func (*Sub1) ProtoMessage

func (*Sub1) ProtoMessage()

func (*Sub1) ProtoReflect

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

func (*Sub1) Reset

func (x *Sub1) Reset()

func (*Sub1) String

func (x *Sub1) String() string

type Sub2

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

func (*Sub2) Descriptor deprecated

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

Deprecated: Use Sub2.ProtoReflect.Descriptor instead.

func (*Sub2) GetName

func (x *Sub2) GetName() string

func (*Sub2) ProtoMessage

func (*Sub2) ProtoMessage()

func (*Sub2) ProtoReflect

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

func (*Sub2) Reset

func (x *Sub2) Reset()

func (*Sub2) String

func (x *Sub2) String() string

type UnimplementedHelloServiceServer

type UnimplementedHelloServiceServer struct {
}

UnimplementedHelloServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHelloServiceServer) Hello

type UnsafeHelloServiceServer

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

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

Jump to

Keyboard shortcuts

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