Documentation ¶
Index ¶
- Variables
- type ErrorResponse
- func (x *ErrorResponse) Default()
- func (*ErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorResponse) GetErrorCode() int32
- func (x *ErrorResponse) GetErrorMessage() string
- func (msg *ErrorResponse) MarshalJSON() ([]byte, error)
- func (*ErrorResponse) ProtoMessage()
- func (x *ErrorResponse) ProtoReflect() protoreflect.Message
- func (x *ErrorResponse) Reset()
- func (x *ErrorResponse) String() string
- func (msg *ErrorResponse) UnmarshalJSON(b []byte) error
- func (m *ErrorResponse) Validate() error
- func (m *ErrorResponse) ValidateAll() error
- type ErrorResponseMultiError
- type ErrorResponseValidationError
- func (e ErrorResponseValidationError) Cause() error
- func (e ErrorResponseValidationError) Error() string
- func (e ErrorResponseValidationError) ErrorName() string
- func (e ErrorResponseValidationError) Field() string
- func (e ErrorResponseValidationError) Key() bool
- func (e ErrorResponseValidationError) Reason() string
- type ExtensionNumberResponse
- func (x *ExtensionNumberResponse) Default()
- func (*ExtensionNumberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExtensionNumberResponse) GetBaseTypeName() string
- func (x *ExtensionNumberResponse) GetExtensionNumber() []int32
- func (msg *ExtensionNumberResponse) MarshalJSON() ([]byte, error)
- func (*ExtensionNumberResponse) ProtoMessage()
- func (x *ExtensionNumberResponse) ProtoReflect() protoreflect.Message
- func (x *ExtensionNumberResponse) Reset()
- func (x *ExtensionNumberResponse) String() string
- func (msg *ExtensionNumberResponse) UnmarshalJSON(b []byte) error
- func (m *ExtensionNumberResponse) Validate() error
- func (m *ExtensionNumberResponse) ValidateAll() error
- type ExtensionNumberResponseMultiError
- type ExtensionNumberResponseValidationError
- func (e ExtensionNumberResponseValidationError) Cause() error
- func (e ExtensionNumberResponseValidationError) Error() string
- func (e ExtensionNumberResponseValidationError) ErrorName() string
- func (e ExtensionNumberResponseValidationError) Field() string
- func (e ExtensionNumberResponseValidationError) Key() bool
- func (e ExtensionNumberResponseValidationError) Reason() string
- type ExtensionRequest
- func (x *ExtensionRequest) Default()
- func (*ExtensionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExtensionRequest) GetContainingType() string
- func (x *ExtensionRequest) GetExtensionNumber() int32
- func (msg *ExtensionRequest) MarshalJSON() ([]byte, error)
- func (*ExtensionRequest) ProtoMessage()
- func (x *ExtensionRequest) ProtoReflect() protoreflect.Message
- func (x *ExtensionRequest) Reset()
- func (x *ExtensionRequest) String() string
- func (msg *ExtensionRequest) UnmarshalJSON(b []byte) error
- func (m *ExtensionRequest) Validate() error
- func (m *ExtensionRequest) ValidateAll() error
- type ExtensionRequestMultiError
- type ExtensionRequestValidationError
- func (e ExtensionRequestValidationError) Cause() error
- func (e ExtensionRequestValidationError) Error() string
- func (e ExtensionRequestValidationError) ErrorName() string
- func (e ExtensionRequestValidationError) Field() string
- func (e ExtensionRequestValidationError) Key() bool
- func (e ExtensionRequestValidationError) Reason() string
- type FileDescriptorResponse
- func (x *FileDescriptorResponse) Default()
- func (*FileDescriptorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte
- func (msg *FileDescriptorResponse) MarshalJSON() ([]byte, error)
- func (*FileDescriptorResponse) ProtoMessage()
- func (x *FileDescriptorResponse) ProtoReflect() protoreflect.Message
- func (x *FileDescriptorResponse) Reset()
- func (x *FileDescriptorResponse) String() string
- func (msg *FileDescriptorResponse) UnmarshalJSON(b []byte) error
- func (m *FileDescriptorResponse) Validate() error
- func (m *FileDescriptorResponse) ValidateAll() error
- type FileDescriptorResponseMultiError
- type FileDescriptorResponseValidationError
- func (e FileDescriptorResponseValidationError) Cause() error
- func (e FileDescriptorResponseValidationError) Error() string
- func (e FileDescriptorResponseValidationError) ErrorName() string
- func (e FileDescriptorResponseValidationError) Field() string
- func (e FileDescriptorResponseValidationError) Key() bool
- func (e FileDescriptorResponseValidationError) Reason() string
- type ListServiceResponse
- func (x *ListServiceResponse) Default()
- func (*ListServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListServiceResponse) GetService() []*ServiceResponse
- func (msg *ListServiceResponse) MarshalJSON() ([]byte, error)
- func (*ListServiceResponse) ProtoMessage()
- func (x *ListServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ListServiceResponse) Reset()
- func (x *ListServiceResponse) String() string
- func (msg *ListServiceResponse) UnmarshalJSON(b []byte) error
- func (m *ListServiceResponse) Validate() error
- func (m *ListServiceResponse) ValidateAll() error
- type ListServiceResponseMultiError
- type ListServiceResponseValidationError
- func (e ListServiceResponseValidationError) Cause() error
- func (e ListServiceResponseValidationError) Error() string
- func (e ListServiceResponseValidationError) ErrorName() string
- func (e ListServiceResponseValidationError) Field() string
- func (e ListServiceResponseValidationError) Key() bool
- func (e ListServiceResponseValidationError) Reason() string
- type ServerReflectionRequest
- func (x *ServerReflectionRequest) Default()
- func (*ServerReflectionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerReflectionRequest) GetAllExtensionNumbersOfType() string
- func (x *ServerReflectionRequest) GetFileByFilename() string
- func (x *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest
- func (x *ServerReflectionRequest) GetFileContainingSymbol() string
- func (x *ServerReflectionRequest) GetHost() string
- func (x *ServerReflectionRequest) GetListServices() string
- func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest
- func (msg *ServerReflectionRequest) MarshalJSON() ([]byte, error)
- func (*ServerReflectionRequest) ProtoMessage()
- func (x *ServerReflectionRequest) ProtoReflect() protoreflect.Message
- func (x *ServerReflectionRequest) Reset()
- func (x *ServerReflectionRequest) String() string
- func (msg *ServerReflectionRequest) UnmarshalJSON(b []byte) error
- func (m *ServerReflectionRequest) Validate() error
- func (m *ServerReflectionRequest) ValidateAll() error
- type ServerReflectionRequestMultiError
- type ServerReflectionRequestValidationError
- func (e ServerReflectionRequestValidationError) Cause() error
- func (e ServerReflectionRequestValidationError) Error() string
- func (e ServerReflectionRequestValidationError) ErrorName() string
- func (e ServerReflectionRequestValidationError) Field() string
- func (e ServerReflectionRequestValidationError) Key() bool
- func (e ServerReflectionRequestValidationError) Reason() string
- type ServerReflectionRequest_AllExtensionNumbersOfType
- type ServerReflectionRequest_FileByFilename
- type ServerReflectionRequest_FileContainingExtension
- type ServerReflectionRequest_FileContainingSymbol
- type ServerReflectionRequest_ListServices
- type ServerReflectionResponse
- func (x *ServerReflectionResponse) Default()
- func (*ServerReflectionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse
- func (x *ServerReflectionResponse) GetErrorResponse() *ErrorResponse
- func (x *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse
- func (x *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse
- func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse
- func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest
- func (x *ServerReflectionResponse) GetValidHost() string
- func (msg *ServerReflectionResponse) MarshalJSON() ([]byte, error)
- func (*ServerReflectionResponse) ProtoMessage()
- func (x *ServerReflectionResponse) ProtoReflect() protoreflect.Message
- func (x *ServerReflectionResponse) Reset()
- func (x *ServerReflectionResponse) String() string
- func (msg *ServerReflectionResponse) UnmarshalJSON(b []byte) error
- func (m *ServerReflectionResponse) Validate() error
- func (m *ServerReflectionResponse) ValidateAll() error
- type ServerReflectionResponseMultiError
- type ServerReflectionResponseValidationError
- func (e ServerReflectionResponseValidationError) Cause() error
- func (e ServerReflectionResponseValidationError) Error() string
- func (e ServerReflectionResponseValidationError) ErrorName() string
- func (e ServerReflectionResponseValidationError) Field() string
- func (e ServerReflectionResponseValidationError) Key() bool
- func (e ServerReflectionResponseValidationError) Reason() string
- type ServerReflectionResponse_AllExtensionNumbersResponse
- type ServerReflectionResponse_ErrorResponse
- type ServerReflectionResponse_FileDescriptorResponse
- type ServerReflectionResponse_ListServicesResponse
- type ServiceResponse
- func (x *ServiceResponse) Default()
- func (*ServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceResponse) GetName() string
- func (msg *ServiceResponse) MarshalJSON() ([]byte, error)
- func (*ServiceResponse) ProtoMessage()
- func (x *ServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ServiceResponse) Reset()
- func (x *ServiceResponse) String() string
- func (msg *ServiceResponse) UnmarshalJSON(b []byte) error
- func (m *ServiceResponse) Validate() error
- func (m *ServiceResponse) ValidateAll() error
- type ServiceResponseMultiError
- type ServiceResponseValidationError
- func (e ServiceResponseValidationError) Cause() error
- func (e ServiceResponseValidationError) Error() string
- func (e ServiceResponseValidationError) ErrorName() string
- func (e ServiceResponseValidationError) Field() string
- func (e ServiceResponseValidationError) Key() bool
- func (e ServiceResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_grpc_reflection_v1_reflection_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
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"` // contains filtered or unexported fields }
The error code and error message sent by the server when an error occurs.
func (*ErrorResponse) Default ¶
func (x *ErrorResponse) Default()
func (*ErrorResponse) Descriptor
deprecated
func (*ErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
func (*ErrorResponse) GetErrorCode ¶
func (x *ErrorResponse) GetErrorCode() int32
func (*ErrorResponse) GetErrorMessage ¶
func (x *ErrorResponse) GetErrorMessage() string
func (*ErrorResponse) MarshalJSON ¶
func (msg *ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ErrorResponse) ProtoMessage ¶
func (*ErrorResponse) ProtoMessage()
func (*ErrorResponse) ProtoReflect ¶
func (x *ErrorResponse) ProtoReflect() protoreflect.Message
func (*ErrorResponse) Reset ¶
func (x *ErrorResponse) Reset()
func (*ErrorResponse) String ¶
func (x *ErrorResponse) String() string
func (*ErrorResponse) UnmarshalJSON ¶
func (msg *ErrorResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ErrorResponse) Validate ¶
func (m *ErrorResponse) Validate() error
Validate checks the field values on ErrorResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ErrorResponse) ValidateAll ¶
func (m *ErrorResponse) ValidateAll() error
ValidateAll checks the field values on ErrorResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorResponseMultiError, or nil if none found.
type ErrorResponseMultiError ¶
type ErrorResponseMultiError []error
ErrorResponseMultiError is an error wrapping multiple validation errors returned by ErrorResponse.ValidateAll() if the designated constraints aren't met.
func (ErrorResponseMultiError) AllErrors ¶
func (m ErrorResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorResponseMultiError) Error ¶
func (m ErrorResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorResponseValidationError ¶
type ErrorResponseValidationError struct {
// contains filtered or unexported fields
}
ErrorResponseValidationError is the validation error returned by ErrorResponse.Validate if the designated constraints aren't met.
func (ErrorResponseValidationError) Cause ¶
func (e ErrorResponseValidationError) Cause() error
Cause function returns cause value.
func (ErrorResponseValidationError) Error ¶
func (e ErrorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorResponseValidationError) ErrorName ¶
func (e ErrorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorResponseValidationError) Field ¶
func (e ErrorResponseValidationError) Field() string
Field function returns field value.
func (ErrorResponseValidationError) Key ¶
func (e ErrorResponseValidationError) Key() bool
Key function returns key value.
func (ErrorResponseValidationError) Reason ¶
func (e ErrorResponseValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
A list of extension numbers sent by the server answering all_extension_numbers_of_type request.
func (*ExtensionNumberResponse) Default ¶
func (x *ExtensionNumberResponse) Default()
func (*ExtensionNumberResponse) Descriptor
deprecated
func (*ExtensionNumberResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExtensionNumberResponse.ProtoReflect.Descriptor instead.
func (*ExtensionNumberResponse) GetBaseTypeName ¶
func (x *ExtensionNumberResponse) GetBaseTypeName() string
func (*ExtensionNumberResponse) GetExtensionNumber ¶
func (x *ExtensionNumberResponse) GetExtensionNumber() []int32
func (*ExtensionNumberResponse) MarshalJSON ¶
func (msg *ExtensionNumberResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ExtensionNumberResponse) ProtoMessage ¶
func (*ExtensionNumberResponse) ProtoMessage()
func (*ExtensionNumberResponse) ProtoReflect ¶
func (x *ExtensionNumberResponse) ProtoReflect() protoreflect.Message
func (*ExtensionNumberResponse) Reset ¶
func (x *ExtensionNumberResponse) Reset()
func (*ExtensionNumberResponse) String ¶
func (x *ExtensionNumberResponse) String() string
func (*ExtensionNumberResponse) UnmarshalJSON ¶
func (msg *ExtensionNumberResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ExtensionNumberResponse) Validate ¶
func (m *ExtensionNumberResponse) Validate() error
Validate checks the field values on ExtensionNumberResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExtensionNumberResponse) ValidateAll ¶
func (m *ExtensionNumberResponse) ValidateAll() error
ValidateAll checks the field values on ExtensionNumberResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExtensionNumberResponseMultiError, or nil if none found.
type ExtensionNumberResponseMultiError ¶
type ExtensionNumberResponseMultiError []error
ExtensionNumberResponseMultiError is an error wrapping multiple validation errors returned by ExtensionNumberResponse.ValidateAll() if the designated constraints aren't met.
func (ExtensionNumberResponseMultiError) AllErrors ¶
func (m ExtensionNumberResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExtensionNumberResponseMultiError) Error ¶
func (m ExtensionNumberResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExtensionNumberResponseValidationError ¶
type ExtensionNumberResponseValidationError struct {
// contains filtered or unexported fields
}
ExtensionNumberResponseValidationError is the validation error returned by ExtensionNumberResponse.Validate if the designated constraints aren't met.
func (ExtensionNumberResponseValidationError) Cause ¶
func (e ExtensionNumberResponseValidationError) Cause() error
Cause function returns cause value.
func (ExtensionNumberResponseValidationError) Error ¶
func (e ExtensionNumberResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ExtensionNumberResponseValidationError) ErrorName ¶
func (e ExtensionNumberResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ExtensionNumberResponseValidationError) Field ¶
func (e ExtensionNumberResponseValidationError) Field() string
Field function returns field value.
func (ExtensionNumberResponseValidationError) Key ¶
func (e ExtensionNumberResponseValidationError) Key() bool
Key function returns key value.
func (ExtensionNumberResponseValidationError) Reason ¶
func (e ExtensionNumberResponseValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
The type name and extension number sent by the client when requesting file_containing_extension.
func (*ExtensionRequest) Default ¶
func (x *ExtensionRequest) Default()
func (*ExtensionRequest) Descriptor
deprecated
func (*ExtensionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExtensionRequest.ProtoReflect.Descriptor instead.
func (*ExtensionRequest) GetContainingType ¶
func (x *ExtensionRequest) GetContainingType() string
func (*ExtensionRequest) GetExtensionNumber ¶
func (x *ExtensionRequest) GetExtensionNumber() int32
func (*ExtensionRequest) MarshalJSON ¶
func (msg *ExtensionRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ExtensionRequest) ProtoMessage ¶
func (*ExtensionRequest) ProtoMessage()
func (*ExtensionRequest) ProtoReflect ¶
func (x *ExtensionRequest) ProtoReflect() protoreflect.Message
func (*ExtensionRequest) Reset ¶
func (x *ExtensionRequest) Reset()
func (*ExtensionRequest) String ¶
func (x *ExtensionRequest) String() string
func (*ExtensionRequest) UnmarshalJSON ¶
func (msg *ExtensionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ExtensionRequest) Validate ¶
func (m *ExtensionRequest) Validate() error
Validate checks the field values on ExtensionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExtensionRequest) ValidateAll ¶
func (m *ExtensionRequest) ValidateAll() error
ValidateAll checks the field values on ExtensionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExtensionRequestMultiError, or nil if none found.
type ExtensionRequestMultiError ¶
type ExtensionRequestMultiError []error
ExtensionRequestMultiError is an error wrapping multiple validation errors returned by ExtensionRequest.ValidateAll() if the designated constraints aren't met.
func (ExtensionRequestMultiError) AllErrors ¶
func (m ExtensionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExtensionRequestMultiError) Error ¶
func (m ExtensionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExtensionRequestValidationError ¶
type ExtensionRequestValidationError struct {
// contains filtered or unexported fields
}
ExtensionRequestValidationError is the validation error returned by ExtensionRequest.Validate if the designated constraints aren't met.
func (ExtensionRequestValidationError) Cause ¶
func (e ExtensionRequestValidationError) Cause() error
Cause function returns cause value.
func (ExtensionRequestValidationError) Error ¶
func (e ExtensionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ExtensionRequestValidationError) ErrorName ¶
func (e ExtensionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ExtensionRequestValidationError) Field ¶
func (e ExtensionRequestValidationError) Field() string
Field function returns field value.
func (ExtensionRequestValidationError) Key ¶
func (e ExtensionRequestValidationError) Key() bool
Key function returns key value.
func (ExtensionRequestValidationError) Reason ¶
func (e ExtensionRequestValidationError) Reason() string
Reason function returns reason value.
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"` // 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) Default ¶
func (x *FileDescriptorResponse) Default()
func (*FileDescriptorResponse) Descriptor
deprecated
func (*FileDescriptorResponse) Descriptor() ([]byte, []int)
Deprecated: Use FileDescriptorResponse.ProtoReflect.Descriptor instead.
func (*FileDescriptorResponse) GetFileDescriptorProto ¶
func (x *FileDescriptorResponse) GetFileDescriptorProto() [][]byte
func (*FileDescriptorResponse) MarshalJSON ¶
func (msg *FileDescriptorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*FileDescriptorResponse) ProtoMessage ¶
func (*FileDescriptorResponse) ProtoMessage()
func (*FileDescriptorResponse) ProtoReflect ¶
func (x *FileDescriptorResponse) ProtoReflect() protoreflect.Message
func (*FileDescriptorResponse) Reset ¶
func (x *FileDescriptorResponse) Reset()
func (*FileDescriptorResponse) String ¶
func (x *FileDescriptorResponse) String() string
func (*FileDescriptorResponse) UnmarshalJSON ¶
func (msg *FileDescriptorResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*FileDescriptorResponse) Validate ¶
func (m *FileDescriptorResponse) Validate() error
Validate checks the field values on FileDescriptorResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FileDescriptorResponse) ValidateAll ¶
func (m *FileDescriptorResponse) ValidateAll() error
ValidateAll checks the field values on FileDescriptorResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileDescriptorResponseMultiError, or nil if none found.
type FileDescriptorResponseMultiError ¶
type FileDescriptorResponseMultiError []error
FileDescriptorResponseMultiError is an error wrapping multiple validation errors returned by FileDescriptorResponse.ValidateAll() if the designated constraints aren't met.
func (FileDescriptorResponseMultiError) AllErrors ¶
func (m FileDescriptorResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileDescriptorResponseMultiError) Error ¶
func (m FileDescriptorResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileDescriptorResponseValidationError ¶
type FileDescriptorResponseValidationError struct {
// contains filtered or unexported fields
}
FileDescriptorResponseValidationError is the validation error returned by FileDescriptorResponse.Validate if the designated constraints aren't met.
func (FileDescriptorResponseValidationError) Cause ¶
func (e FileDescriptorResponseValidationError) Cause() error
Cause function returns cause value.
func (FileDescriptorResponseValidationError) Error ¶
func (e FileDescriptorResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FileDescriptorResponseValidationError) ErrorName ¶
func (e FileDescriptorResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FileDescriptorResponseValidationError) Field ¶
func (e FileDescriptorResponseValidationError) Field() string
Field function returns field value.
func (FileDescriptorResponseValidationError) Key ¶
func (e FileDescriptorResponseValidationError) Key() bool
Key function returns key value.
func (FileDescriptorResponseValidationError) Reason ¶
func (e FileDescriptorResponseValidationError) Reason() string
Reason function returns reason value.
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"` // contains filtered or unexported fields }
A list of ServiceResponse sent by the server answering list_services request.
func (*ListServiceResponse) Default ¶
func (x *ListServiceResponse) Default()
func (*ListServiceResponse) Descriptor
deprecated
func (*ListServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListServiceResponse.ProtoReflect.Descriptor instead.
func (*ListServiceResponse) GetService ¶
func (x *ListServiceResponse) GetService() []*ServiceResponse
func (*ListServiceResponse) MarshalJSON ¶
func (msg *ListServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ListServiceResponse) ProtoMessage ¶
func (*ListServiceResponse) ProtoMessage()
func (*ListServiceResponse) ProtoReflect ¶
func (x *ListServiceResponse) ProtoReflect() protoreflect.Message
func (*ListServiceResponse) Reset ¶
func (x *ListServiceResponse) Reset()
func (*ListServiceResponse) String ¶
func (x *ListServiceResponse) String() string
func (*ListServiceResponse) UnmarshalJSON ¶
func (msg *ListServiceResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ListServiceResponse) Validate ¶
func (m *ListServiceResponse) Validate() error
Validate checks the field values on ListServiceResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListServiceResponse) ValidateAll ¶
func (m *ListServiceResponse) ValidateAll() error
ValidateAll checks the field values on ListServiceResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListServiceResponseMultiError, or nil if none found.
type ListServiceResponseMultiError ¶
type ListServiceResponseMultiError []error
ListServiceResponseMultiError is an error wrapping multiple validation errors returned by ListServiceResponse.ValidateAll() if the designated constraints aren't met.
func (ListServiceResponseMultiError) AllErrors ¶
func (m ListServiceResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListServiceResponseMultiError) Error ¶
func (m ListServiceResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListServiceResponseValidationError ¶
type ListServiceResponseValidationError struct {
// contains filtered or unexported fields
}
ListServiceResponseValidationError is the validation error returned by ListServiceResponse.Validate if the designated constraints aren't met.
func (ListServiceResponseValidationError) Cause ¶
func (e ListServiceResponseValidationError) Cause() error
Cause function returns cause value.
func (ListServiceResponseValidationError) Error ¶
func (e ListServiceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListServiceResponseValidationError) ErrorName ¶
func (e ListServiceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListServiceResponseValidationError) Field ¶
func (e ListServiceResponseValidationError) Field() string
Field function returns field value.
func (ListServiceResponseValidationError) Key ¶
func (e ListServiceResponseValidationError) Key() bool
Key function returns key value.
func (ListServiceResponseValidationError) Reason ¶
func (e ListServiceResponseValidationError) Reason() string
Reason function returns reason value.
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 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) Default ¶
func (x *ServerReflectionRequest) Default()
func (*ServerReflectionRequest) Descriptor
deprecated
func (*ServerReflectionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerReflectionRequest.ProtoReflect.Descriptor instead.
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) GetMessageRequest ¶
func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest
func (*ServerReflectionRequest) MarshalJSON ¶
func (msg *ServerReflectionRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ServerReflectionRequest) ProtoMessage ¶
func (*ServerReflectionRequest) ProtoMessage()
func (*ServerReflectionRequest) ProtoReflect ¶
func (x *ServerReflectionRequest) ProtoReflect() protoreflect.Message
func (*ServerReflectionRequest) Reset ¶
func (x *ServerReflectionRequest) Reset()
func (*ServerReflectionRequest) String ¶
func (x *ServerReflectionRequest) String() string
func (*ServerReflectionRequest) UnmarshalJSON ¶
func (msg *ServerReflectionRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ServerReflectionRequest) Validate ¶
func (m *ServerReflectionRequest) Validate() error
Validate checks the field values on ServerReflectionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ServerReflectionRequest) ValidateAll ¶
func (m *ServerReflectionRequest) ValidateAll() error
ValidateAll checks the field values on ServerReflectionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerReflectionRequestMultiError, or nil if none found.
type ServerReflectionRequestMultiError ¶
type ServerReflectionRequestMultiError []error
ServerReflectionRequestMultiError is an error wrapping multiple validation errors returned by ServerReflectionRequest.ValidateAll() if the designated constraints aren't met.
func (ServerReflectionRequestMultiError) AllErrors ¶
func (m ServerReflectionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerReflectionRequestMultiError) Error ¶
func (m ServerReflectionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerReflectionRequestValidationError ¶
type ServerReflectionRequestValidationError struct {
// contains filtered or unexported fields
}
ServerReflectionRequestValidationError is the validation error returned by ServerReflectionRequest.Validate if the designated constraints aren't met.
func (ServerReflectionRequestValidationError) Cause ¶
func (e ServerReflectionRequestValidationError) Cause() error
Cause function returns cause value.
func (ServerReflectionRequestValidationError) Error ¶
func (e ServerReflectionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ServerReflectionRequestValidationError) ErrorName ¶
func (e ServerReflectionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ServerReflectionRequestValidationError) Field ¶
func (e ServerReflectionRequestValidationError) Field() string
Field function returns field value.
func (ServerReflectionRequestValidationError) Key ¶
func (e ServerReflectionRequestValidationError) Key() bool
Key function returns key value.
func (ServerReflectionRequestValidationError) Reason ¶
func (e ServerReflectionRequestValidationError) Reason() string
Reason function returns reason value.
type ServerReflectionRequest_AllExtensionNumbersOfType ¶
type ServerReflectionRequest_AllExtensionNumbersOfType struct { // 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 `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,proto3,oneof"` }
type ServerReflectionRequest_FileByFilename ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) Default ¶
func (x *ServerReflectionResponse) Default()
func (*ServerReflectionResponse) Descriptor
deprecated
func (*ServerReflectionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerReflectionResponse.ProtoReflect.Descriptor instead.
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) GetMessageResponse ¶
func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse
func (*ServerReflectionResponse) GetOriginalRequest ¶
func (x *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest
func (*ServerReflectionResponse) GetValidHost ¶
func (x *ServerReflectionResponse) GetValidHost() string
func (*ServerReflectionResponse) MarshalJSON ¶
func (msg *ServerReflectionResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ServerReflectionResponse) ProtoMessage ¶
func (*ServerReflectionResponse) ProtoMessage()
func (*ServerReflectionResponse) ProtoReflect ¶
func (x *ServerReflectionResponse) ProtoReflect() protoreflect.Message
func (*ServerReflectionResponse) Reset ¶
func (x *ServerReflectionResponse) Reset()
func (*ServerReflectionResponse) String ¶
func (x *ServerReflectionResponse) String() string
func (*ServerReflectionResponse) UnmarshalJSON ¶
func (msg *ServerReflectionResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ServerReflectionResponse) Validate ¶
func (m *ServerReflectionResponse) Validate() error
Validate checks the field values on ServerReflectionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ServerReflectionResponse) ValidateAll ¶
func (m *ServerReflectionResponse) ValidateAll() error
ValidateAll checks the field values on ServerReflectionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerReflectionResponseMultiError, or nil if none found.
type ServerReflectionResponseMultiError ¶
type ServerReflectionResponseMultiError []error
ServerReflectionResponseMultiError is an error wrapping multiple validation errors returned by ServerReflectionResponse.ValidateAll() if the designated constraints aren't met.
func (ServerReflectionResponseMultiError) AllErrors ¶
func (m ServerReflectionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServerReflectionResponseMultiError) Error ¶
func (m ServerReflectionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServerReflectionResponseValidationError ¶
type ServerReflectionResponseValidationError struct {
// contains filtered or unexported fields
}
ServerReflectionResponseValidationError is the validation error returned by ServerReflectionResponse.Validate if the designated constraints aren't met.
func (ServerReflectionResponseValidationError) Cause ¶
func (e ServerReflectionResponseValidationError) Cause() error
Cause function returns cause value.
func (ServerReflectionResponseValidationError) Error ¶
func (e ServerReflectionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ServerReflectionResponseValidationError) ErrorName ¶
func (e ServerReflectionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ServerReflectionResponseValidationError) Field ¶
func (e ServerReflectionResponseValidationError) Field() string
Field function returns field value.
func (ServerReflectionResponseValidationError) Key ¶
func (e ServerReflectionResponseValidationError) Key() bool
Key function returns key value.
func (ServerReflectionResponseValidationError) Reason ¶
func (e ServerReflectionResponseValidationError) Reason() string
Reason function returns reason value.
type ServerReflectionResponse_AllExtensionNumbersResponse ¶
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 ¶
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 ¶
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 ¶
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 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"` // contains filtered or unexported fields }
The information of a single service used by ListServiceResponse to answer list_services request.
func (*ServiceResponse) Default ¶
func (x *ServiceResponse) Default()
func (*ServiceResponse) Descriptor
deprecated
func (*ServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead.
func (*ServiceResponse) GetName ¶
func (x *ServiceResponse) GetName() string
func (*ServiceResponse) MarshalJSON ¶
func (msg *ServiceResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ServiceResponse) ProtoMessage ¶
func (*ServiceResponse) ProtoMessage()
func (*ServiceResponse) ProtoReflect ¶
func (x *ServiceResponse) ProtoReflect() protoreflect.Message
func (*ServiceResponse) Reset ¶
func (x *ServiceResponse) Reset()
func (*ServiceResponse) String ¶
func (x *ServiceResponse) String() string
func (*ServiceResponse) UnmarshalJSON ¶
func (msg *ServiceResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ServiceResponse) Validate ¶
func (m *ServiceResponse) Validate() error
Validate checks the field values on ServiceResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ServiceResponse) ValidateAll ¶
func (m *ServiceResponse) ValidateAll() error
ValidateAll checks the field values on ServiceResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceResponseMultiError, or nil if none found.
type ServiceResponseMultiError ¶
type ServiceResponseMultiError []error
ServiceResponseMultiError is an error wrapping multiple validation errors returned by ServiceResponse.ValidateAll() if the designated constraints aren't met.
func (ServiceResponseMultiError) AllErrors ¶
func (m ServiceResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ServiceResponseMultiError) Error ¶
func (m ServiceResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ServiceResponseValidationError ¶
type ServiceResponseValidationError struct {
// contains filtered or unexported fields
}
ServiceResponseValidationError is the validation error returned by ServiceResponse.Validate if the designated constraints aren't met.
func (ServiceResponseValidationError) Cause ¶
func (e ServiceResponseValidationError) Cause() error
Cause function returns cause value.
func (ServiceResponseValidationError) Error ¶
func (e ServiceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ServiceResponseValidationError) ErrorName ¶
func (e ServiceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ServiceResponseValidationError) Field ¶
func (e ServiceResponseValidationError) Field() string
Field function returns field value.
func (ServiceResponseValidationError) Key ¶
func (e ServiceResponseValidationError) Key() bool
Key function returns key value.
func (ServiceResponseValidationError) Reason ¶
func (e ServiceResponseValidationError) Reason() string
Reason function returns reason value.