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:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ServerReflectionResponseOrBuilder,Serializable
public final class ServerReflectionResponse
extends com.google.protobuf.GeneratedMessageV3
implements ServerReflectionResponseOrBuilder
The message sent by the server to answer ServerReflectionInfo method.Protobuf type
grpc.reflection.v1.ServerReflectionResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe message sent by the server to answer ServerReflectionInfo method.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis message is used to answer all_extension_numbers_of_type requests.This message is used to answer all_extension_numbers_of_type requests.static ServerReflectionResponsestatic final com.google.protobuf.Descriptors.DescriptorThis message is used when an error occurs.This message is used when an error occurs.This message is used to answer file_by_filename, file_containing_symbol, file_containing_extension requests with transitive dependencies.This message is used to answer file_by_filename, file_containing_symbol, file_containing_extension requests with transitive dependencies.This message is used to answer list_services requests.This message is used to answer list_services requests..grpc.reflection.v1.ServerReflectionRequest original_request = 2;.grpc.reflection.v1.ServerReflectionRequest original_request = 2;com.google.protobuf.Parser<ServerReflectionResponse>intstring valid_host = 1;com.google.protobuf.ByteStringstring valid_host = 1;booleanThis message is used to answer all_extension_numbers_of_type requests.booleanThis message is used when an error occurs.booleanThis message is used to answer file_by_filename, file_containing_symbol, file_containing_extension requests with transitive dependencies.inthashCode()booleanThis message is used to answer list_services requests.boolean.grpc.reflection.v1.ServerReflectionRequest original_request = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(ServerReflectionResponse prototype) protected ServerReflectionResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ServerReflectionResponseparseDelimitedFrom(InputStream input) static ServerReflectionResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerReflectionResponseparseFrom(byte[] data) static ServerReflectionResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerReflectionResponseparseFrom(com.google.protobuf.ByteString data) static ServerReflectionResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerReflectionResponseparseFrom(com.google.protobuf.CodedInputStream input) static ServerReflectionResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerReflectionResponseparseFrom(InputStream input) static ServerReflectionResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServerReflectionResponseparseFrom(ByteBuffer data) static ServerReflectionResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServerReflectionResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
VALID_HOST_FIELD_NUMBER
public static final int VALID_HOST_FIELD_NUMBER- See Also:
-
ORIGINAL_REQUEST_FIELD_NUMBER
public static final int ORIGINAL_REQUEST_FIELD_NUMBER- See Also:
-
FILE_DESCRIPTOR_RESPONSE_FIELD_NUMBER
public static final int FILE_DESCRIPTOR_RESPONSE_FIELD_NUMBER- See Also:
-
ALL_EXTENSION_NUMBERS_RESPONSE_FIELD_NUMBER
public static final int ALL_EXTENSION_NUMBERS_RESPONSE_FIELD_NUMBER- See Also:
-
LIST_SERVICES_RESPONSE_FIELD_NUMBER
public static final int LIST_SERVICES_RESPONSE_FIELD_NUMBER- See Also:
-
ERROR_RESPONSE_FIELD_NUMBER
public static final int ERROR_RESPONSE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMessageResponseCase
- Specified by:
getMessageResponseCasein interfaceServerReflectionResponseOrBuilder
-
getValidHost
string valid_host = 1;- Specified by:
getValidHostin interfaceServerReflectionResponseOrBuilder- Returns:
- The validHost.
-
getValidHostBytes
public com.google.protobuf.ByteString getValidHostBytes()string valid_host = 1;- Specified by:
getValidHostBytesin interfaceServerReflectionResponseOrBuilder- Returns:
- The bytes for validHost.
-
hasOriginalRequest
public boolean hasOriginalRequest().grpc.reflection.v1.ServerReflectionRequest original_request = 2;- Specified by:
hasOriginalRequestin interfaceServerReflectionResponseOrBuilder- Returns:
- Whether the originalRequest field is set.
-
getOriginalRequest
.grpc.reflection.v1.ServerReflectionRequest original_request = 2;- Specified by:
getOriginalRequestin interfaceServerReflectionResponseOrBuilder- Returns:
- The originalRequest.
-
getOriginalRequestOrBuilder
.grpc.reflection.v1.ServerReflectionRequest original_request = 2;- Specified by:
getOriginalRequestOrBuilderin 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:
hasFileDescriptorResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- Whether the fileDescriptorResponse field is set.
-
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:
getFileDescriptorResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- The fileDescriptorResponse.
-
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:
getFileDescriptorResponseOrBuilderin 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:
hasAllExtensionNumbersResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- Whether the allExtensionNumbersResponse field is set.
-
getAllExtensionNumbersResponse
This message is used to answer all_extension_numbers_of_type requests.
.grpc.reflection.v1.ExtensionNumberResponse all_extension_numbers_response = 5;- Specified by:
getAllExtensionNumbersResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- The allExtensionNumbersResponse.
-
getAllExtensionNumbersResponseOrBuilder
This message is used to answer all_extension_numbers_of_type requests.
.grpc.reflection.v1.ExtensionNumberResponse all_extension_numbers_response = 5;- Specified by:
getAllExtensionNumbersResponseOrBuilderin interfaceServerReflectionResponseOrBuilder
-
hasListServicesResponse
public boolean hasListServicesResponse()This message is used to answer list_services requests.
.grpc.reflection.v1.ListServiceResponse list_services_response = 6;- Specified by:
hasListServicesResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- Whether the listServicesResponse field is set.
-
getListServicesResponse
This message is used to answer list_services requests.
.grpc.reflection.v1.ListServiceResponse list_services_response = 6;- Specified by:
getListServicesResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- The listServicesResponse.
-
getListServicesResponseOrBuilder
This message is used to answer list_services requests.
.grpc.reflection.v1.ListServiceResponse list_services_response = 6;- Specified by:
getListServicesResponseOrBuilderin interfaceServerReflectionResponseOrBuilder
-
hasErrorResponse
public boolean hasErrorResponse()This message is used when an error occurs.
.grpc.reflection.v1.ErrorResponse error_response = 7;- Specified by:
hasErrorResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- Whether the errorResponse field is set.
-
getErrorResponse
This message is used when an error occurs.
.grpc.reflection.v1.ErrorResponse error_response = 7;- Specified by:
getErrorResponsein interfaceServerReflectionResponseOrBuilder- Returns:
- The errorResponse.
-
getErrorResponseOrBuilder
This message is used when an error occurs.
.grpc.reflection.v1.ErrorResponse error_response = 7;- Specified by:
getErrorResponseOrBuilderin interfaceServerReflectionResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServerReflectionResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServerReflectionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServerReflectionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ServerReflectionResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ServerReflectionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ServerReflectionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServerReflectionResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-