grpc_reflection_v1alpha

package
v1.39.10-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServerReflectionServer

func RegisterServerReflectionServer(s *grpc.Server, srv ServerReflectionServer)

Types

type ErrorResponse

type ErrorResponse struct {
	// This field uses the error codes defined in grpc::StatusCode.
	ErrorCode            int32    `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	ErrorMessage         string   `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The error code and error message sent by the server when an error occurs.

func (*ErrorResponse) Descriptor

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

func (*ErrorResponse) GetErrorCode added in v1.6.0

func (m *ErrorResponse) GetErrorCode() int32

func (*ErrorResponse) GetErrorMessage added in v1.6.0

func (m *ErrorResponse) GetErrorMessage() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) Reset

func (m *ErrorResponse) Reset()

func (*ErrorResponse) String

func (m *ErrorResponse) String() string

func (*ErrorResponse) XXX_DiscardUnknown added in v1.12.0

func (m *ErrorResponse) XXX_DiscardUnknown()

func (*ErrorResponse) XXX_Marshal added in v1.12.0

func (m *ErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ErrorResponse) XXX_Merge added in v1.12.0

func (m *ErrorResponse) XXX_Merge(src proto.Message)

func (*ErrorResponse) XXX_Size added in v1.12.0

func (m *ErrorResponse) XXX_Size() int

func (*ErrorResponse) XXX_Unmarshal added in v1.12.0

func (m *ErrorResponse) XXX_Unmarshal(b []byte) error

type ExtensionNumberResponse

type ExtensionNumberResponse struct {
	// Full name of the base type, including the package name. The format
	// is <package>.<type>
	BaseTypeName         string   `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName,proto3" json:"base_type_name,omitempty"`
	ExtensionNumber      []int32  `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A list of extension numbers sent by the server answering all_extension_numbers_of_type request.

func (*ExtensionNumberResponse) Descriptor

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

func (*ExtensionNumberResponse) GetBaseTypeName added in v1.6.0

func (m *ExtensionNumberResponse) GetBaseTypeName() string

func (*ExtensionNumberResponse) GetExtensionNumber added in v1.6.0

func (m *ExtensionNumberResponse) GetExtensionNumber() []int32

func (*ExtensionNumberResponse) ProtoMessage

func (*ExtensionNumberResponse) ProtoMessage()

func (*ExtensionNumberResponse) Reset

func (m *ExtensionNumberResponse) Reset()

func (*ExtensionNumberResponse) String

func (m *ExtensionNumberResponse) String() string

func (*ExtensionNumberResponse) XXX_DiscardUnknown added in v1.12.0

func (m *ExtensionNumberResponse) XXX_DiscardUnknown()

func (*ExtensionNumberResponse) XXX_Marshal added in v1.12.0

func (m *ExtensionNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtensionNumberResponse) XXX_Merge added in v1.12.0

func (m *ExtensionNumberResponse) XXX_Merge(src proto.Message)

func (*ExtensionNumberResponse) XXX_Size added in v1.12.0

func (m *ExtensionNumberResponse) XXX_Size() int

func (*ExtensionNumberResponse) XXX_Unmarshal added in v1.12.0

func (m *ExtensionNumberResponse) XXX_Unmarshal(b []byte) error

type ExtensionRequest

type ExtensionRequest struct {
	// Fully-qualified type name. The format should be <package>.<type>
	ContainingType       string   `protobuf:"bytes,1,opt,name=containing_type,json=containingType,proto3" json:"containing_type,omitempty"`
	ExtensionNumber      int32    `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The type name and extension number sent by the client when requesting file_containing_extension.

func (*ExtensionRequest) Descriptor

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

func (*ExtensionRequest) GetContainingType added in v1.6.0

func (m *ExtensionRequest) GetContainingType() string

func (*ExtensionRequest) GetExtensionNumber added in v1.6.0

func (m *ExtensionRequest) GetExtensionNumber() int32

func (*ExtensionRequest) ProtoMessage

func (*ExtensionRequest) ProtoMessage()

func (*ExtensionRequest) Reset

func (m *ExtensionRequest) Reset()

func (*ExtensionRequest) String

func (m *ExtensionRequest) String() string

func (*ExtensionRequest) XXX_DiscardUnknown added in v1.12.0

func (m *ExtensionRequest) XXX_DiscardUnknown()

func (*ExtensionRequest) XXX_Marshal added in v1.12.0

func (m *ExtensionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtensionRequest) XXX_Merge added in v1.12.0

func (m *ExtensionRequest) XXX_Merge(src proto.Message)

func (*ExtensionRequest) XXX_Size added in v1.12.0

func (m *ExtensionRequest) XXX_Size() int

func (*ExtensionRequest) XXX_Unmarshal added in v1.12.0

func (m *ExtensionRequest) XXX_Unmarshal(b []byte) error

type FileDescriptorResponse

type FileDescriptorResponse struct {
	// Serialized FileDescriptorProto messages. We avoid taking a dependency on
	// descriptor.proto, which uses proto2 only features, by making them opaque
	// bytes instead.
	FileDescriptorProto  [][]byte `protobuf:"bytes,1,rep,name=file_descriptor_proto,json=fileDescriptorProto,proto3" json:"file_descriptor_proto,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Serialized FileDescriptorProto messages sent by the server answering a file_by_filename, file_containing_symbol, or file_containing_extension request.

func (*FileDescriptorResponse) Descriptor

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

func (*FileDescriptorResponse) GetFileDescriptorProto added in v1.6.0

func (m *FileDescriptorResponse) GetFileDescriptorProto() [][]byte

func (*FileDescriptorResponse) ProtoMessage

func (*FileDescriptorResponse) ProtoMessage()

func (*FileDescriptorResponse) Reset

func (m *FileDescriptorResponse) Reset()

func (*FileDescriptorResponse) String

func (m *FileDescriptorResponse) String() string

func (*FileDescriptorResponse) XXX_DiscardUnknown added in v1.12.0

func (m *FileDescriptorResponse) XXX_DiscardUnknown()

func (*FileDescriptorResponse) XXX_Marshal added in v1.12.0

func (m *FileDescriptorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileDescriptorResponse) XXX_Merge added in v1.12.0

func (m *FileDescriptorResponse) XXX_Merge(src proto.Message)

func (*FileDescriptorResponse) XXX_Size added in v1.12.0

func (m *FileDescriptorResponse) XXX_Size() int

func (*FileDescriptorResponse) XXX_Unmarshal added in v1.12.0

func (m *FileDescriptorResponse) XXX_Unmarshal(b []byte) error

type ListServiceResponse

type ListServiceResponse struct {
	// The information of each service may be expanded in the future, so we use
	// ServiceResponse message to encapsulate it.
	Service              []*ServiceResponse `protobuf:"bytes,1,rep,name=service,proto3" json:"service,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

A list of ServiceResponse sent by the server answering list_services request.

func (*ListServiceResponse) Descriptor

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

func (*ListServiceResponse) GetService

func (m *ListServiceResponse) GetService() []*ServiceResponse

func (*ListServiceResponse) ProtoMessage

func (*ListServiceResponse) ProtoMessage()

func (*ListServiceResponse) Reset

func (m *ListServiceResponse) Reset()

func (*ListServiceResponse) String

func (m *ListServiceResponse) String() string

func (*ListServiceResponse) XXX_DiscardUnknown added in v1.12.0

func (m *ListServiceResponse) XXX_DiscardUnknown()

func (*ListServiceResponse) XXX_Marshal added in v1.12.0

func (m *ListServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListServiceResponse) XXX_Merge added in v1.12.0

func (m *ListServiceResponse) XXX_Merge(src proto.Message)

func (*ListServiceResponse) XXX_Size added in v1.12.0

func (m *ListServiceResponse) XXX_Size() int

func (*ListServiceResponse) XXX_Unmarshal added in v1.12.0

func (m *ListServiceResponse) XXX_Unmarshal(b []byte) error

type ServerReflectionClient

type ServerReflectionClient interface {
	// The reflection service is structured as a bidirectional stream, ensuring
	// all related requests go to a single server.
	ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error)
}

ServerReflectionClient is the client API for ServerReflection 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 ServerReflectionRequest

type ServerReflectionRequest struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// To use reflection service, the client should set one of the following
	// fields in message_request. The server distinguishes requests by their
	// defined field and then handles them using corresponding methods.
	//
	// Types that are valid to be assigned to MessageRequest:
	//	*ServerReflectionRequest_FileByFilename
	//	*ServerReflectionRequest_FileContainingSymbol
	//	*ServerReflectionRequest_FileContainingExtension
	//	*ServerReflectionRequest_AllExtensionNumbersOfType
	//	*ServerReflectionRequest_ListServices
	MessageRequest       isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"`
	XXX_NoUnkeyedLiteral struct{}                                 `json:"-"`
	XXX_unrecognized     []byte                                   `json:"-"`
	XXX_sizecache        int32                                    `json:"-"`
}

The message sent by the client when calling ServerReflectionInfo method.

func (*ServerReflectionRequest) Descriptor

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

func (*ServerReflectionRequest) GetAllExtensionNumbersOfType

func (m *ServerReflectionRequest) GetAllExtensionNumbersOfType() string

func (*ServerReflectionRequest) GetFileByFilename

func (m *ServerReflectionRequest) GetFileByFilename() string

func (*ServerReflectionRequest) GetFileContainingExtension

func (m *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest

func (*ServerReflectionRequest) GetFileContainingSymbol

func (m *ServerReflectionRequest) GetFileContainingSymbol() string

func (*ServerReflectionRequest) GetHost added in v1.6.0

func (m *ServerReflectionRequest) GetHost() string

func (*ServerReflectionRequest) GetListServices

func (m *ServerReflectionRequest) GetListServices() string

func (*ServerReflectionRequest) GetMessageRequest

func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest

func (*ServerReflectionRequest) ProtoMessage

func (*ServerReflectionRequest) ProtoMessage()

func (*ServerReflectionRequest) Reset

func (m *ServerReflectionRequest) Reset()

func (*ServerReflectionRequest) String

func (m *ServerReflectionRequest) String() string

func (*ServerReflectionRequest) XXX_DiscardUnknown added in v1.12.0

func (m *ServerReflectionRequest) XXX_DiscardUnknown()

func (*ServerReflectionRequest) XXX_Marshal added in v1.12.0

func (m *ServerReflectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServerReflectionRequest) XXX_Merge added in v1.12.0

func (m *ServerReflectionRequest) XXX_Merge(src proto.Message)

func (*ServerReflectionRequest) XXX_OneofWrappers

func (*ServerReflectionRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ServerReflectionRequest) XXX_Size added in v1.12.0

func (m *ServerReflectionRequest) XXX_Size() int

func (*ServerReflectionRequest) XXX_Unmarshal added in v1.12.0

func (m *ServerReflectionRequest) XXX_Unmarshal(b []byte) error

type ServerReflectionRequest_AllExtensionNumbersOfType

type ServerReflectionRequest_AllExtensionNumbersOfType struct {
	AllExtensionNumbersOfType string `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"`
}

type ServerReflectionRequest_FileByFilename

type ServerReflectionRequest_FileByFilename struct {
	FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,proto3,oneof"`
}

type ServerReflectionRequest_FileContainingExtension

type ServerReflectionRequest_FileContainingExtension struct {
	FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,proto3,oneof"`
}

type ServerReflectionRequest_FileContainingSymbol

type ServerReflectionRequest_FileContainingSymbol struct {
	FileContainingSymbol string `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,proto3,oneof"`
}

type ServerReflectionRequest_ListServices

type ServerReflectionRequest_ListServices struct {
	ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,proto3,oneof"`
}

type ServerReflectionResponse

type ServerReflectionResponse struct {
	ValidHost       string                   `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"`
	OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"`
	// The server sets one of the following fields according to the
	// message_request in the request.
	//
	// Types that are valid to be assigned to MessageResponse:
	//	*ServerReflectionResponse_FileDescriptorResponse
	//	*ServerReflectionResponse_AllExtensionNumbersResponse
	//	*ServerReflectionResponse_ListServicesResponse
	//	*ServerReflectionResponse_ErrorResponse
	MessageResponse      isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

The message sent by the server to answer ServerReflectionInfo method.

func (*ServerReflectionResponse) Descriptor

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

func (*ServerReflectionResponse) GetAllExtensionNumbersResponse

func (m *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse

func (*ServerReflectionResponse) GetErrorResponse

func (m *ServerReflectionResponse) GetErrorResponse() *ErrorResponse

func (*ServerReflectionResponse) GetFileDescriptorResponse

func (m *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse

func (*ServerReflectionResponse) GetListServicesResponse

func (m *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse

func (*ServerReflectionResponse) GetMessageResponse

func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse

func (*ServerReflectionResponse) GetOriginalRequest

func (m *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest

func (*ServerReflectionResponse) GetValidHost added in v1.6.0

func (m *ServerReflectionResponse) GetValidHost() string

func (*ServerReflectionResponse) ProtoMessage

func (*ServerReflectionResponse) ProtoMessage()

func (*ServerReflectionResponse) Reset

func (m *ServerReflectionResponse) Reset()

func (*ServerReflectionResponse) String

func (m *ServerReflectionResponse) String() string

func (*ServerReflectionResponse) XXX_DiscardUnknown added in v1.12.0

func (m *ServerReflectionResponse) XXX_DiscardUnknown()

func (*ServerReflectionResponse) XXX_Marshal added in v1.12.0

func (m *ServerReflectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServerReflectionResponse) XXX_Merge added in v1.12.0

func (m *ServerReflectionResponse) XXX_Merge(src proto.Message)

func (*ServerReflectionResponse) XXX_OneofWrappers

func (*ServerReflectionResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ServerReflectionResponse) XXX_Size added in v1.12.0

func (m *ServerReflectionResponse) XXX_Size() int

func (*ServerReflectionResponse) XXX_Unmarshal added in v1.12.0

func (m *ServerReflectionResponse) XXX_Unmarshal(b []byte) error

type ServerReflectionResponse_AllExtensionNumbersResponse

type ServerReflectionResponse_AllExtensionNumbersResponse struct {
	AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"`
}

type ServerReflectionResponse_ErrorResponse

type ServerReflectionResponse_ErrorResponse struct {
	ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,proto3,oneof"`
}

type ServerReflectionResponse_FileDescriptorResponse

type ServerReflectionResponse_FileDescriptorResponse struct {
	FileDescriptorResponse *FileDescriptorResponse `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,proto3,oneof"`
}

type ServerReflectionResponse_ListServicesResponse

type ServerReflectionResponse_ListServicesResponse struct {
	ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,oneof"`
}

type ServerReflectionServer

type ServerReflectionServer interface {
	// The reflection service is structured as a bidirectional stream, ensuring
	// all related requests go to a single server.
	ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error
}

ServerReflectionServer is the server API for ServerReflection service. All implementations should embed UnimplementedServerReflectionServer for forward compatibility

type ServerReflection_ServerReflectionInfoClient

type ServerReflection_ServerReflectionInfoClient interface {
	Send(*ServerReflectionRequest) error
	Recv() (*ServerReflectionResponse, error)
	grpc.ClientStream
}

type ServerReflection_ServerReflectionInfoServer

type ServerReflection_ServerReflectionInfoServer interface {
	Send(*ServerReflectionResponse) error
	Recv() (*ServerReflectionRequest, error)
	grpc.ServerStream
}

type ServiceResponse

type ServiceResponse struct {
	// Full name of a registered service, including its package name. The format
	// is <package>.<service>
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The information of a single service used by ListServiceResponse to answer list_services request.

func (*ServiceResponse) Descriptor

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

func (*ServiceResponse) GetName added in v1.6.0

func (m *ServiceResponse) GetName() string

func (*ServiceResponse) ProtoMessage

func (*ServiceResponse) ProtoMessage()

func (*ServiceResponse) Reset

func (m *ServiceResponse) Reset()

func (*ServiceResponse) String

func (m *ServiceResponse) String() string

func (*ServiceResponse) XXX_DiscardUnknown added in v1.12.0

func (m *ServiceResponse) XXX_DiscardUnknown()

func (*ServiceResponse) XXX_Marshal added in v1.12.0

func (m *ServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceResponse) XXX_Merge added in v1.12.0

func (m *ServiceResponse) XXX_Merge(src proto.Message)

func (*ServiceResponse) XXX_Size added in v1.12.0

func (m *ServiceResponse) XXX_Size() int

func (*ServiceResponse) XXX_Unmarshal added in v1.12.0

func (m *ServiceResponse) XXX_Unmarshal(b []byte) error

type UnimplementedServerReflectionServer

type UnimplementedServerReflectionServer struct {
}

UnimplementedServerReflectionServer should be embedded to have forward compatible implementations.

func (*UnimplementedServerReflectionServer) ServerReflectionInfo

Jump to

Keyboard shortcuts

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