reflectionv1

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const ServerReflectionRequest_AllExtensionNumbersOfType_case case_ServerReflectionRequest_MessageRequest = 6
View Source
const ServerReflectionRequest_FileByFilename_case case_ServerReflectionRequest_MessageRequest = 3
View Source
const ServerReflectionRequest_FileContainingExtension_case case_ServerReflectionRequest_MessageRequest = 5
View Source
const ServerReflectionRequest_FileContainingSymbol_case case_ServerReflectionRequest_MessageRequest = 4
View Source
const ServerReflectionRequest_ListServices_case case_ServerReflectionRequest_MessageRequest = 7
View Source
const ServerReflectionRequest_MessageRequest_not_set_case case_ServerReflectionRequest_MessageRequest = 0
View Source
const ServerReflectionResponse_AllExtensionNumbersResponse_case case_ServerReflectionResponse_MessageResponse = 5
View Source
const ServerReflectionResponse_ErrorResponse_case case_ServerReflectionResponse_MessageResponse = 7
View Source
const ServerReflectionResponse_FileDescriptorResponse_case case_ServerReflectionResponse_MessageResponse = 4
View Source
const ServerReflectionResponse_ListServicesResponse_case case_ServerReflectionResponse_MessageResponse = 6
View Source
const ServerReflectionResponse_MessageResponse_not_set_case case_ServerReflectionResponse_MessageResponse = 0

Variables

View Source
var File_grpc_reflection_v1_reflection_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ErrorResponse

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

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

func (*ErrorResponse) GetErrorCode

func (x *ErrorResponse) GetErrorCode() int32

func (*ErrorResponse) GetErrorMessage

func (x *ErrorResponse) GetErrorMessage() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect

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

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) SetErrorCode added in v1.49.0

func (x *ErrorResponse) SetErrorCode(v int32)

func (*ErrorResponse) SetErrorMessage added in v1.49.0

func (x *ErrorResponse) SetErrorMessage(v string)

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

type ErrorResponse_builder added in v1.49.0

type ErrorResponse_builder struct {

	// This field uses the error codes defined in grpc::StatusCode.
	ErrorCode    int32
	ErrorMessage string
	// contains filtered or unexported fields
}

func (ErrorResponse_builder) Build added in v1.49.0

type ExtensionNumberResponse

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

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

func (*ExtensionNumberResponse) GetBaseTypeName

func (x *ExtensionNumberResponse) GetBaseTypeName() string

func (*ExtensionNumberResponse) GetExtensionNumber

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

func (*ExtensionNumberResponse) ProtoMessage

func (*ExtensionNumberResponse) ProtoMessage()

func (*ExtensionNumberResponse) ProtoReflect

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

func (*ExtensionNumberResponse) Reset

func (x *ExtensionNumberResponse) Reset()

func (*ExtensionNumberResponse) SetBaseTypeName added in v1.49.0

func (x *ExtensionNumberResponse) SetBaseTypeName(v string)

func (*ExtensionNumberResponse) SetExtensionNumber added in v1.49.0

func (x *ExtensionNumberResponse) SetExtensionNumber(v []int32)

func (*ExtensionNumberResponse) String

func (x *ExtensionNumberResponse) String() string

type ExtensionNumberResponse_builder added in v1.49.0

type ExtensionNumberResponse_builder struct {

	// Full name of the base type, including the package name. The format
	// is <package>.<type>
	BaseTypeName    string
	ExtensionNumber []int32
	// contains filtered or unexported fields
}

func (ExtensionNumberResponse_builder) Build added in v1.49.0

type ExtensionRequest

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

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

func (*ExtensionRequest) GetContainingType

func (x *ExtensionRequest) GetContainingType() string

func (*ExtensionRequest) GetExtensionNumber

func (x *ExtensionRequest) GetExtensionNumber() int32

func (*ExtensionRequest) ProtoMessage

func (*ExtensionRequest) ProtoMessage()

func (*ExtensionRequest) ProtoReflect

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

func (*ExtensionRequest) Reset

func (x *ExtensionRequest) Reset()

func (*ExtensionRequest) SetContainingType added in v1.49.0

func (x *ExtensionRequest) SetContainingType(v string)

func (*ExtensionRequest) SetExtensionNumber added in v1.49.0

func (x *ExtensionRequest) SetExtensionNumber(v int32)

func (*ExtensionRequest) String

func (x *ExtensionRequest) String() string

type ExtensionRequest_builder added in v1.49.0

type ExtensionRequest_builder struct {

	// Fully-qualified type name. The format should be <package>.<type>
	ContainingType  string
	ExtensionNumber int32
	// contains filtered or unexported fields
}

func (ExtensionRequest_builder) Build added in v1.49.0

type FileDescriptorResponse

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

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

func (*FileDescriptorResponse) GetFileDescriptorProto

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

func (*FileDescriptorResponse) ProtoMessage

func (*FileDescriptorResponse) ProtoMessage()

func (*FileDescriptorResponse) ProtoReflect

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

func (*FileDescriptorResponse) Reset

func (x *FileDescriptorResponse) Reset()

func (*FileDescriptorResponse) SetFileDescriptorProto added in v1.49.0

func (x *FileDescriptorResponse) SetFileDescriptorProto(v [][]byte)

func (*FileDescriptorResponse) String

func (x *FileDescriptorResponse) String() string

type FileDescriptorResponse_builder added in v1.49.0

type FileDescriptorResponse_builder 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
	// contains filtered or unexported fields
}

func (FileDescriptorResponse_builder) Build added in v1.49.0

type ListServiceResponse

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

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

func (*ListServiceResponse) GetService

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

func (*ListServiceResponse) ProtoMessage

func (*ListServiceResponse) ProtoMessage()

func (*ListServiceResponse) ProtoReflect

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

func (*ListServiceResponse) Reset

func (x *ListServiceResponse) Reset()

func (*ListServiceResponse) SetService added in v1.49.0

func (x *ListServiceResponse) SetService(v []*ServiceResponse)

func (*ListServiceResponse) String

func (x *ListServiceResponse) String() string

type ListServiceResponse_builder added in v1.49.0

type ListServiceResponse_builder struct {

	// The information of each service may be expanded in the future, so we use
	// ServiceResponse message to encapsulate it.
	Service []*ServiceResponse
	// contains filtered or unexported fields
}

func (ListServiceResponse_builder) Build added in v1.49.0

type ServerReflectionRequest

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

The message sent by the client when calling ServerReflectionInfo method.

func (*ServerReflectionRequest) ClearAllExtensionNumbersOfType added in v1.49.0

func (x *ServerReflectionRequest) ClearAllExtensionNumbersOfType()

func (*ServerReflectionRequest) ClearFileByFilename added in v1.49.0

func (x *ServerReflectionRequest) ClearFileByFilename()

func (*ServerReflectionRequest) ClearFileContainingExtension added in v1.49.0

func (x *ServerReflectionRequest) ClearFileContainingExtension()

func (*ServerReflectionRequest) ClearFileContainingSymbol added in v1.49.0

func (x *ServerReflectionRequest) ClearFileContainingSymbol()

func (*ServerReflectionRequest) ClearListServices added in v1.49.0

func (x *ServerReflectionRequest) ClearListServices()

func (*ServerReflectionRequest) ClearMessageRequest added in v1.49.0

func (x *ServerReflectionRequest) ClearMessageRequest()

func (*ServerReflectionRequest) GetAllExtensionNumbersOfType

func (x *ServerReflectionRequest) GetAllExtensionNumbersOfType() string

func (*ServerReflectionRequest) GetFileByFilename

func (x *ServerReflectionRequest) GetFileByFilename() string

func (*ServerReflectionRequest) GetFileContainingExtension

func (x *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest

func (*ServerReflectionRequest) GetFileContainingSymbol

func (x *ServerReflectionRequest) GetFileContainingSymbol() string

func (*ServerReflectionRequest) GetHost

func (x *ServerReflectionRequest) GetHost() string

func (*ServerReflectionRequest) GetListServices

func (x *ServerReflectionRequest) GetListServices() string

func (*ServerReflectionRequest) HasAllExtensionNumbersOfType added in v1.49.0

func (x *ServerReflectionRequest) HasAllExtensionNumbersOfType() bool

func (*ServerReflectionRequest) HasFileByFilename added in v1.49.0

func (x *ServerReflectionRequest) HasFileByFilename() bool

func (*ServerReflectionRequest) HasFileContainingExtension added in v1.49.0

func (x *ServerReflectionRequest) HasFileContainingExtension() bool

func (*ServerReflectionRequest) HasFileContainingSymbol added in v1.49.0

func (x *ServerReflectionRequest) HasFileContainingSymbol() bool

func (*ServerReflectionRequest) HasListServices added in v1.49.0

func (x *ServerReflectionRequest) HasListServices() bool

func (*ServerReflectionRequest) HasMessageRequest added in v1.49.0

func (x *ServerReflectionRequest) HasMessageRequest() bool

func (*ServerReflectionRequest) ProtoMessage

func (*ServerReflectionRequest) ProtoMessage()

func (*ServerReflectionRequest) ProtoReflect

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

func (*ServerReflectionRequest) Reset

func (x *ServerReflectionRequest) Reset()

func (*ServerReflectionRequest) SetAllExtensionNumbersOfType added in v1.49.0

func (x *ServerReflectionRequest) SetAllExtensionNumbersOfType(v string)

func (*ServerReflectionRequest) SetFileByFilename added in v1.49.0

func (x *ServerReflectionRequest) SetFileByFilename(v string)

func (*ServerReflectionRequest) SetFileContainingExtension added in v1.49.0

func (x *ServerReflectionRequest) SetFileContainingExtension(v *ExtensionRequest)

func (*ServerReflectionRequest) SetFileContainingSymbol added in v1.49.0

func (x *ServerReflectionRequest) SetFileContainingSymbol(v string)

func (*ServerReflectionRequest) SetHost added in v1.49.0

func (x *ServerReflectionRequest) SetHost(v string)

func (*ServerReflectionRequest) SetListServices added in v1.49.0

func (x *ServerReflectionRequest) SetListServices(v string)

func (*ServerReflectionRequest) String

func (x *ServerReflectionRequest) String() string

func (*ServerReflectionRequest) WhichMessageRequest added in v1.49.0

func (x *ServerReflectionRequest) WhichMessageRequest() case_ServerReflectionRequest_MessageRequest

type ServerReflectionRequest_builder added in v1.49.0

type ServerReflectionRequest_builder struct {
	Host string

	// Fields of oneof xxx_hidden_MessageRequest:
	// Find a proto file by the file name.
	FileByFilename *string
	// Find the proto file that declares the given fully-qualified symbol name.
	// This field should be a fully-qualified symbol name
	// (e.g. <package>.<service>[.<method>] or <package>.<type>).
	FileContainingSymbol *string
	// Find the proto file which defines an extension extending the given
	// message type with the given field number.
	FileContainingExtension *ExtensionRequest
	// Finds the tag numbers used by all known extensions of the given message
	// type, and appends them to ExtensionNumberResponse in an undefined order.
	// Its corresponding method is best-effort: it's not guaranteed that the
	// reflection service will implement this method, and it's not guaranteed
	// that this method will provide all extensions. Returns
	// StatusCode::UNIMPLEMENTED if it's not implemented.
	// This field should be a fully-qualified type name. The format is
	// <package>.<type>
	AllExtensionNumbersOfType *string
	// List the full names of registered services. The content will not be
	// checked.
	ListServices *string
	// contains filtered or unexported fields
}

func (ServerReflectionRequest_builder) Build added in v1.49.0

type ServerReflectionResponse

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

The message sent by the server to answer ServerReflectionInfo method.

func (*ServerReflectionResponse) ClearAllExtensionNumbersResponse added in v1.49.0

func (x *ServerReflectionResponse) ClearAllExtensionNumbersResponse()

func (*ServerReflectionResponse) ClearErrorResponse added in v1.49.0

func (x *ServerReflectionResponse) ClearErrorResponse()

func (*ServerReflectionResponse) ClearFileDescriptorResponse added in v1.49.0

func (x *ServerReflectionResponse) ClearFileDescriptorResponse()

func (*ServerReflectionResponse) ClearListServicesResponse added in v1.49.0

func (x *ServerReflectionResponse) ClearListServicesResponse()

func (*ServerReflectionResponse) ClearMessageResponse added in v1.49.0

func (x *ServerReflectionResponse) ClearMessageResponse()

func (*ServerReflectionResponse) ClearOriginalRequest added in v1.49.0

func (x *ServerReflectionResponse) ClearOriginalRequest()

func (*ServerReflectionResponse) GetAllExtensionNumbersResponse

func (x *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse

func (*ServerReflectionResponse) GetErrorResponse

func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse

func (*ServerReflectionResponse) GetFileDescriptorResponse

func (x *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse

func (*ServerReflectionResponse) GetListServicesResponse

func (x *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse

func (*ServerReflectionResponse) GetOriginalRequest

func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest

func (*ServerReflectionResponse) GetValidHost

func (x *ServerReflectionResponse) GetValidHost() string

func (*ServerReflectionResponse) HasAllExtensionNumbersResponse added in v1.49.0

func (x *ServerReflectionResponse) HasAllExtensionNumbersResponse() bool

func (*ServerReflectionResponse) HasErrorResponse added in v1.49.0

func (x *ServerReflectionResponse) HasErrorResponse() bool

func (*ServerReflectionResponse) HasFileDescriptorResponse added in v1.49.0

func (x *ServerReflectionResponse) HasFileDescriptorResponse() bool

func (*ServerReflectionResponse) HasListServicesResponse added in v1.49.0

func (x *ServerReflectionResponse) HasListServicesResponse() bool

func (*ServerReflectionResponse) HasMessageResponse added in v1.49.0

func (x *ServerReflectionResponse) HasMessageResponse() bool

func (*ServerReflectionResponse) HasOriginalRequest added in v1.49.0

func (x *ServerReflectionResponse) HasOriginalRequest() bool

func (*ServerReflectionResponse) ProtoMessage

func (*ServerReflectionResponse) ProtoMessage()

func (*ServerReflectionResponse) ProtoReflect

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

func (*ServerReflectionResponse) Reset

func (x *ServerReflectionResponse) Reset()

func (*ServerReflectionResponse) SetAllExtensionNumbersResponse added in v1.49.0

func (x *ServerReflectionResponse) SetAllExtensionNumbersResponse(v *ExtensionNumberResponse)

func (*ServerReflectionResponse) SetErrorResponse added in v1.49.0

func (x *ServerReflectionResponse) SetErrorResponse(v *ErrorResponse)

func (*ServerReflectionResponse) SetFileDescriptorResponse added in v1.49.0

func (x *ServerReflectionResponse) SetFileDescriptorResponse(v *FileDescriptorResponse)

func (*ServerReflectionResponse) SetListServicesResponse added in v1.49.0

func (x *ServerReflectionResponse) SetListServicesResponse(v *ListServiceResponse)

func (*ServerReflectionResponse) SetOriginalRequest added in v1.49.0

func (x *ServerReflectionResponse) SetOriginalRequest(v *ServerReflectionRequest)

func (*ServerReflectionResponse) SetValidHost added in v1.49.0

func (x *ServerReflectionResponse) SetValidHost(v string)

func (*ServerReflectionResponse) String

func (x *ServerReflectionResponse) String() string

func (*ServerReflectionResponse) WhichMessageResponse added in v1.49.0

func (x *ServerReflectionResponse) WhichMessageResponse() case_ServerReflectionResponse_MessageResponse

type ServerReflectionResponse_builder added in v1.49.0

type ServerReflectionResponse_builder struct {
	ValidHost       string
	OriginalRequest *ServerReflectionRequest

	// Fields of oneof xxx_hidden_MessageResponse:
	// This message is used to answer file_by_filename, file_containing_symbol,
	// file_containing_extension requests with transitive dependencies.
	// As the repeated label is not allowed in oneof fields, we use a
	// FileDescriptorResponse message to encapsulate the repeated fields.
	// The reflection service is allowed to avoid sending FileDescriptorProtos
	// that were previously sent in response to earlier requests in the stream.
	FileDescriptorResponse *FileDescriptorResponse
	// This message is used to answer all_extension_numbers_of_type requests.
	AllExtensionNumbersResponse *ExtensionNumberResponse
	// This message is used to answer list_services requests.
	ListServicesResponse *ListServiceResponse
	// This message is used when an error occurs.
	ErrorResponse *ErrorResponse
	// contains filtered or unexported fields
}

func (ServerReflectionResponse_builder) Build added in v1.49.0

type ServiceResponse

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

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

func (*ServiceResponse) GetName

func (x *ServiceResponse) GetName() string

func (*ServiceResponse) ProtoMessage

func (*ServiceResponse) ProtoMessage()

func (*ServiceResponse) ProtoReflect

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

func (*ServiceResponse) Reset

func (x *ServiceResponse) Reset()

func (*ServiceResponse) SetName added in v1.49.0

func (x *ServiceResponse) SetName(v string)

func (*ServiceResponse) String

func (x *ServiceResponse) String() string

type ServiceResponse_builder added in v1.49.0

type ServiceResponse_builder struct {

	// Full name of a registered service, including its package name. The format
	// is <package>.<service>
	Name string
	// contains filtered or unexported fields
}

func (ServiceResponse_builder) Build added in v1.49.0

Jump to

Keyboard shortcuts

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