Class 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.GeneratedMessage
    implements ServerReflectionResponseOrBuilder
     The message sent by the server to answer ServerReflectionInfo method.
     
    Protobuf type grpc.reflection.v1.ServerReflectionResponse
    See Also:
    Serialized Form
    • 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

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasOriginalRequest

        public boolean hasOriginalRequest()
        .grpc.reflection.v1.ServerReflectionRequest original_request = 2;
        Specified by:
        hasOriginalRequest in interface ServerReflectionResponseOrBuilder
        Returns:
        Whether the originalRequest field is set.
      • 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 interface ServerReflectionResponseOrBuilder
        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 interface ServerReflectionResponseOrBuilder
        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 interface ServerReflectionResponseOrBuilder
      • 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 interface ServerReflectionResponseOrBuilder
        Returns:
        Whether the allExtensionNumbersResponse field is set.
      • 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 interface ServerReflectionResponseOrBuilder
        Returns:
        Whether the listServicesResponse field is set.
      • hasErrorResponse

        public boolean hasErrorResponse()
         This message is used when an error occurs.
         
        .grpc.reflection.v1.ErrorResponse error_response = 7;
        Specified by:
        hasErrorResponse in interface ServerReflectionResponseOrBuilder
        Returns:
        Whether the errorResponse field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public ServerReflectionResponse.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ServerReflectionResponse.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ServerReflectionResponse.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<ServerReflectionResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public ServerReflectionResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder