Package io.grpc.reflection.v1
Class ServerReflectionResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.reflection.v1.ServerReflectionResponse
-
- All Implemented Interfaces:
Message
,MessageLite
,MessageLiteOrBuilder
,MessageOrBuilder
,ServerReflectionResponseOrBuilder
,Serializable
public final class ServerReflectionResponse extends GeneratedMessageV3 implements ServerReflectionResponseOrBuilder
The message sent by the server to answer ServerReflectionInfo method.
Protobuf typegrpc.reflection.v1.ServerReflectionResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerReflectionResponse.Builder
The message sent by the server to answer ServerReflectionInfo method.static class
ServerReflectionResponse.MessageResponseCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_EXTENSION_NUMBERS_RESPONSE_FIELD_NUMBER
static int
ERROR_RESPONSE_FIELD_NUMBER
static int
FILE_DESCRIPTOR_RESPONSE_FIELD_NUMBER
static int
LIST_SERVICES_RESPONSE_FIELD_NUMBER
static int
ORIGINAL_REQUEST_FIELD_NUMBER
static int
VALID_HOST_FIELD_NUMBER
-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Field Detail
-
VALID_HOST_FIELD_NUMBER
public static final int VALID_HOST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORIGINAL_REQUEST_FIELD_NUMBER
public static final int ORIGINAL_REQUEST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILE_DESCRIPTOR_RESPONSE_FIELD_NUMBER
public static final int FILE_DESCRIPTOR_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALL_EXTENSION_NUMBERS_RESPONSE_FIELD_NUMBER
public static final int ALL_EXTENSION_NUMBERS_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_SERVICES_RESPONSE_FIELD_NUMBER
public static final int LIST_SERVICES_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_RESPONSE_FIELD_NUMBER
public static final int ERROR_RESPONSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3
-
getMessageResponseCase
public ServerReflectionResponse.MessageResponseCase getMessageResponseCase()
- Specified by:
getMessageResponseCase
in interfaceServerReflectionResponseOrBuilder
-
getValidHost
public String getValidHost()
string valid_host = 1;
- Specified by:
getValidHost
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The validHost.
-
getValidHostBytes
public ByteString getValidHostBytes()
string valid_host = 1;
- Specified by:
getValidHostBytes
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The bytes for validHost.
-
hasOriginalRequest
public boolean hasOriginalRequest()
.grpc.reflection.v1.ServerReflectionRequest original_request = 2;
- Specified by:
hasOriginalRequest
in interfaceServerReflectionResponseOrBuilder
- Returns:
- Whether the originalRequest field is set.
-
getOriginalRequest
public ServerReflectionRequest getOriginalRequest()
.grpc.reflection.v1.ServerReflectionRequest original_request = 2;
- Specified by:
getOriginalRequest
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The originalRequest.
-
getOriginalRequestOrBuilder
public ServerReflectionRequestOrBuilder getOriginalRequestOrBuilder()
.grpc.reflection.v1.ServerReflectionRequest original_request = 2;
- Specified by:
getOriginalRequestOrBuilder
in interfaceServerReflectionResponseOrBuilder
-
hasFileDescriptorResponse
public boolean hasFileDescriptorResponse()
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.
.grpc.reflection.v1.FileDescriptorResponse file_descriptor_response = 4;
- Specified by:
hasFileDescriptorResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- Whether the fileDescriptorResponse field is set.
-
getFileDescriptorResponse
public FileDescriptorResponse getFileDescriptorResponse()
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.
.grpc.reflection.v1.FileDescriptorResponse file_descriptor_response = 4;
- Specified by:
getFileDescriptorResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The fileDescriptorResponse.
-
getFileDescriptorResponseOrBuilder
public FileDescriptorResponseOrBuilder getFileDescriptorResponseOrBuilder()
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.
.grpc.reflection.v1.FileDescriptorResponse file_descriptor_response = 4;
- Specified by:
getFileDescriptorResponseOrBuilder
in interfaceServerReflectionResponseOrBuilder
-
hasAllExtensionNumbersResponse
public boolean hasAllExtensionNumbersResponse()
This message is used to answer all_extension_numbers_of_type requests.
.grpc.reflection.v1.ExtensionNumberResponse all_extension_numbers_response = 5;
- Specified by:
hasAllExtensionNumbersResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- Whether the allExtensionNumbersResponse field is set.
-
getAllExtensionNumbersResponse
public ExtensionNumberResponse getAllExtensionNumbersResponse()
This message is used to answer all_extension_numbers_of_type requests.
.grpc.reflection.v1.ExtensionNumberResponse all_extension_numbers_response = 5;
- Specified by:
getAllExtensionNumbersResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The allExtensionNumbersResponse.
-
getAllExtensionNumbersResponseOrBuilder
public ExtensionNumberResponseOrBuilder getAllExtensionNumbersResponseOrBuilder()
This message is used to answer all_extension_numbers_of_type requests.
.grpc.reflection.v1.ExtensionNumberResponse all_extension_numbers_response = 5;
- Specified by:
getAllExtensionNumbersResponseOrBuilder
in interfaceServerReflectionResponseOrBuilder
-
hasListServicesResponse
public boolean hasListServicesResponse()
This message is used to answer list_services requests.
.grpc.reflection.v1.ListServiceResponse list_services_response = 6;
- Specified by:
hasListServicesResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- Whether the listServicesResponse field is set.
-
getListServicesResponse
public ListServiceResponse getListServicesResponse()
This message is used to answer list_services requests.
.grpc.reflection.v1.ListServiceResponse list_services_response = 6;
- Specified by:
getListServicesResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The listServicesResponse.
-
getListServicesResponseOrBuilder
public ListServiceResponseOrBuilder getListServicesResponseOrBuilder()
This message is used to answer list_services requests.
.grpc.reflection.v1.ListServiceResponse list_services_response = 6;
- Specified by:
getListServicesResponseOrBuilder
in interfaceServerReflectionResponseOrBuilder
-
hasErrorResponse
public boolean hasErrorResponse()
This message is used when an error occurs.
.grpc.reflection.v1.ErrorResponse error_response = 7;
- Specified by:
hasErrorResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- Whether the errorResponse field is set.
-
getErrorResponse
public ErrorResponse getErrorResponse()
This message is used when an error occurs.
.grpc.reflection.v1.ErrorResponse error_response = 7;
- Specified by:
getErrorResponse
in interfaceServerReflectionResponseOrBuilder
- Returns:
- The errorResponse.
-
getErrorResponseOrBuilder
public ErrorResponseOrBuilder getErrorResponseOrBuilder()
This message is used when an error occurs.
.grpc.reflection.v1.ErrorResponse error_response = 7;
- Specified by:
getErrorResponseOrBuilder
in interfaceServerReflectionResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceMessageLite
- Overrides:
writeTo
in classGeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceMessageLite
- Overrides:
getSerializedSize
in classGeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceMessage
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceMessage
- Overrides:
hashCode
in classAbstractMessage
-
parseFrom
public static ServerReflectionResponse parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ServerReflectionResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ServerReflectionResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ServerReflectionResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ServerReflectionResponse parseFrom(CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ServerReflectionResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ServerReflectionResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
public static ServerReflectionResponse.Builder newBuilder()
-
newBuilder
public static ServerReflectionResponse.Builder newBuilder(ServerReflectionResponse prototype)
-
toBuilder
public ServerReflectionResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfaceMessage
- Specified by:
toBuilder
in interfaceMessageLite
-
newBuilderForType
protected ServerReflectionResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classGeneratedMessageV3
-
getDefaultInstance
public static ServerReflectionResponse getDefaultInstance()
-
parser
public static Parser<ServerReflectionResponse> parser()
-
getParserForType
public Parser<ServerReflectionResponse> getParserForType()
- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
public ServerReflectionResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
-