grpc: google.golang.org/grpc/reflection/grpc_reflection_v1alpha Index | Files

package grpc_reflection_v1alpha

import "google.golang.org/grpc/reflection/grpc_reflection_v1alpha"

Index

Package Files

reflection.pb.go reflection_grpc.pb.go

Variables

var File_reflection_grpc_reflection_v1alpha_reflection_proto protoreflect.FileDescriptor

func RegisterServerReflectionServer Uses

func RegisterServerReflectionServer(s grpc.ServiceRegistrar, srv ServerReflectionServer)

type ErrorResponse Uses

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"`
    // contains filtered or unexported fields
}

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

func (*ErrorResponse) Descriptor Uses

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

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetErrorCode Uses

func (x *ErrorResponse) GetErrorCode() int32

func (*ErrorResponse) GetErrorMessage Uses

func (x *ErrorResponse) GetErrorMessage() string

func (*ErrorResponse) ProtoMessage Uses

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect Uses

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

func (*ErrorResponse) Reset Uses

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String Uses

func (x *ErrorResponse) String() string

type ExtensionNumberResponse Uses

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"`
    // contains filtered or unexported fields
}

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

func (*ExtensionNumberResponse) Descriptor Uses

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

Deprecated: Use ExtensionNumberResponse.ProtoReflect.Descriptor instead.

func (*ExtensionNumberResponse) GetBaseTypeName Uses

func (x *ExtensionNumberResponse) GetBaseTypeName() string

func (*ExtensionNumberResponse) GetExtensionNumber Uses

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

func (*ExtensionNumberResponse) ProtoMessage Uses

func (*ExtensionNumberResponse) ProtoMessage()

func (*ExtensionNumberResponse) ProtoReflect Uses

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

func (*ExtensionNumberResponse) Reset Uses

func (x *ExtensionNumberResponse) Reset()

func (*ExtensionNumberResponse) String Uses

func (x *ExtensionNumberResponse) String() string

type ExtensionRequest Uses

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"`
    // contains filtered or unexported fields
}

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

func (*ExtensionRequest) Descriptor Uses

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

Deprecated: Use ExtensionRequest.ProtoReflect.Descriptor instead.

func (*ExtensionRequest) GetContainingType Uses

func (x *ExtensionRequest) GetContainingType() string

func (*ExtensionRequest) GetExtensionNumber Uses

func (x *ExtensionRequest) GetExtensionNumber() int32

func (*ExtensionRequest) ProtoMessage Uses

func (*ExtensionRequest) ProtoMessage()

func (*ExtensionRequest) ProtoReflect Uses

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

func (*ExtensionRequest) Reset Uses

func (x *ExtensionRequest) Reset()

func (*ExtensionRequest) String Uses

func (x *ExtensionRequest) String() string

type FileDescriptorResponse Uses

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"`
    // 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) Descriptor Uses

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

Deprecated: Use FileDescriptorResponse.ProtoReflect.Descriptor instead.

func (*FileDescriptorResponse) GetFileDescriptorProto Uses

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

func (*FileDescriptorResponse) ProtoMessage Uses

func (*FileDescriptorResponse) ProtoMessage()

func (*FileDescriptorResponse) ProtoReflect Uses

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

func (*FileDescriptorResponse) Reset Uses

func (x *FileDescriptorResponse) Reset()

func (*FileDescriptorResponse) String Uses

func (x *FileDescriptorResponse) String() string

type ListServiceResponse Uses

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"`
    // contains filtered or unexported fields
}

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

func (*ListServiceResponse) Descriptor Uses

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

Deprecated: Use ListServiceResponse.ProtoReflect.Descriptor instead.

func (*ListServiceResponse) GetService Uses

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

func (*ListServiceResponse) ProtoMessage Uses

func (*ListServiceResponse) ProtoMessage()

func (*ListServiceResponse) ProtoReflect Uses

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

func (*ListServiceResponse) Reset Uses

func (x *ListServiceResponse) Reset()

func (*ListServiceResponse) String Uses

func (x *ListServiceResponse) String() string

type ServerReflectionClient Uses

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.

func NewServerReflectionClient Uses

func NewServerReflectionClient(cc grpc.ClientConnInterface) ServerReflectionClient

type ServerReflectionRequest Uses

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 assignable to MessageRequest:
    //	*ServerReflectionRequest_FileByFilename
    //	*ServerReflectionRequest_FileContainingSymbol
    //	*ServerReflectionRequest_FileContainingExtension
    //	*ServerReflectionRequest_AllExtensionNumbersOfType
    //	*ServerReflectionRequest_ListServices
    MessageRequest isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"`
    // contains filtered or unexported fields
}

The message sent by the client when calling ServerReflectionInfo method.

func (*ServerReflectionRequest) Descriptor Uses

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

Deprecated: Use ServerReflectionRequest.ProtoReflect.Descriptor instead.

func (*ServerReflectionRequest) GetAllExtensionNumbersOfType Uses

func (x *ServerReflectionRequest) GetAllExtensionNumbersOfType() string

func (*ServerReflectionRequest) GetFileByFilename Uses

func (x *ServerReflectionRequest) GetFileByFilename() string

func (*ServerReflectionRequest) GetFileContainingExtension Uses

func (x *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest

func (*ServerReflectionRequest) GetFileContainingSymbol Uses

func (x *ServerReflectionRequest) GetFileContainingSymbol() string

func (*ServerReflectionRequest) GetHost Uses

func (x *ServerReflectionRequest) GetHost() string

func (*ServerReflectionRequest) GetListServices Uses

func (x *ServerReflectionRequest) GetListServices() string

func (*ServerReflectionRequest) GetMessageRequest Uses

func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest

func (*ServerReflectionRequest) ProtoMessage Uses

func (*ServerReflectionRequest) ProtoMessage()

func (*ServerReflectionRequest) ProtoReflect Uses

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

func (*ServerReflectionRequest) Reset Uses

func (x *ServerReflectionRequest) Reset()

func (*ServerReflectionRequest) String Uses

func (x *ServerReflectionRequest) String() string

type ServerReflectionRequest_AllExtensionNumbersOfType Uses

type ServerReflectionRequest_AllExtensionNumbersOfType struct {
    // Finds the tag numbers used by all known extensions of extendee_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 `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"`
}

type ServerReflectionRequest_FileByFilename Uses

type ServerReflectionRequest_FileByFilename struct {
    // Find a proto file by the file name.
    FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,proto3,oneof"`
}

type ServerReflectionRequest_FileContainingExtension Uses

type ServerReflectionRequest_FileContainingExtension struct {
    // Find the proto file which defines an extension extending the given
    // message type with the given field number.
    FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,proto3,oneof"`
}

type ServerReflectionRequest_FileContainingSymbol Uses

type ServerReflectionRequest_FileContainingSymbol struct {
    // 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 `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,proto3,oneof"`
}

type ServerReflectionRequest_ListServices Uses

type ServerReflectionRequest_ListServices struct {
    // List the full names of registered services. The content will not be
    // checked.
    ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,proto3,oneof"`
}

type ServerReflectionResponse Uses

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 assignable to MessageResponse:
    //	*ServerReflectionResponse_FileDescriptorResponse
    //	*ServerReflectionResponse_AllExtensionNumbersResponse
    //	*ServerReflectionResponse_ListServicesResponse
    //	*ServerReflectionResponse_ErrorResponse
    MessageResponse isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"`
    // contains filtered or unexported fields
}

The message sent by the server to answer ServerReflectionInfo method.

func (*ServerReflectionResponse) Descriptor Uses

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

Deprecated: Use ServerReflectionResponse.ProtoReflect.Descriptor instead.

func (*ServerReflectionResponse) GetAllExtensionNumbersResponse Uses

func (x *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse

func (*ServerReflectionResponse) GetErrorResponse Uses

func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse

func (*ServerReflectionResponse) GetFileDescriptorResponse Uses

func (x *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse

func (*ServerReflectionResponse) GetListServicesResponse Uses

func (x *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse

func (*ServerReflectionResponse) GetMessageResponse Uses

func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse

func (*ServerReflectionResponse) GetOriginalRequest Uses

func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest

func (*ServerReflectionResponse) GetValidHost Uses

func (x *ServerReflectionResponse) GetValidHost() string

func (*ServerReflectionResponse) ProtoMessage Uses

func (*ServerReflectionResponse) ProtoMessage()

func (*ServerReflectionResponse) ProtoReflect Uses

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

func (*ServerReflectionResponse) Reset Uses

func (x *ServerReflectionResponse) Reset()

func (*ServerReflectionResponse) String Uses

func (x *ServerReflectionResponse) String() string

type ServerReflectionResponse_AllExtensionNumbersResponse Uses

type ServerReflectionResponse_AllExtensionNumbersResponse struct {
    // This message is used to answer all_extension_numbers_of_type requests.
    AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,proto3,oneof"`
}

type ServerReflectionResponse_ErrorResponse Uses

type ServerReflectionResponse_ErrorResponse struct {
    // This message is used when an error occurs.
    ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,proto3,oneof"`
}

type ServerReflectionResponse_FileDescriptorResponse Uses

type ServerReflectionResponse_FileDescriptorResponse struct {
    // 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 `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,proto3,oneof"`
}

type ServerReflectionResponse_ListServicesResponse Uses

type ServerReflectionResponse_ListServicesResponse struct {
    // This message is used to answer list_services requests.
    ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,oneof"`
}

type ServerReflectionServer Uses

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 Uses

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

type ServerReflection_ServerReflectionInfoServer Uses

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

type ServiceResponse Uses

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"`
    // contains filtered or unexported fields
}

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

func (*ServiceResponse) Descriptor Uses

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

Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead.

func (*ServiceResponse) GetName Uses

func (x *ServiceResponse) GetName() string

func (*ServiceResponse) ProtoMessage Uses

func (*ServiceResponse) ProtoMessage()

func (*ServiceResponse) ProtoReflect Uses

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

func (*ServiceResponse) Reset Uses

func (x *ServiceResponse) Reset()

func (*ServiceResponse) String Uses

func (x *ServiceResponse) String() string

type UnimplementedServerReflectionServer Uses

type UnimplementedServerReflectionServer struct {
}

UnimplementedServerReflectionServer should be embedded to have forward compatible implementations.

func (UnimplementedServerReflectionServer) ServerReflectionInfo Uses

func (UnimplementedServerReflectionServer) ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error

type UnsafeServerReflectionServer Uses

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

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

Package grpc_reflection_v1alpha imports 9 packages (graph) and is imported by 34 packages. Updated 2020-10-22. Refresh now. Tools for package owners.