Class ServerReflectionRequest.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ServerReflectionRequestOrBuilder, java.lang.Cloneable
    Enclosing class:
    ServerReflectionRequest

    public static final class ServerReflectionRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
    implements ServerReflectionRequestOrBuilder
     The message sent by the client when calling ServerReflectionInfo method.
     
    Protobuf type grpc.reflection.v1alpha.ServerReflectionRequest
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • clear

        public ServerReflectionRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • getDefaultInstanceForType

        public ServerReflectionRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ServerReflectionRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ServerReflectionRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ServerReflectionRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • setField

        public ServerReflectionRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • clearField

        public ServerReflectionRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • clearOneof

        public ServerReflectionRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • setRepeatedField

        public ServerReflectionRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • addRepeatedField

        public ServerReflectionRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • mergeFrom

        public ServerReflectionRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerReflectionRequest.Builder>
        Throws:
        java.io.IOException
      • setHost

        public ServerReflectionRequest.Builder setHost​(java.lang.String value)
        string host = 1;
        Parameters:
        value - The host to set.
        Returns:
        This builder for chaining.
      • setHostBytes

        public ServerReflectionRequest.Builder setHostBytes​(com.google.protobuf.ByteString value)
        string host = 1;
        Parameters:
        value - The bytes for host to set.
        Returns:
        This builder for chaining.
      • hasFileByFilename

        public boolean hasFileByFilename()
         Find a proto file by the file name.
         
        string file_by_filename = 3;
        Specified by:
        hasFileByFilename in interface ServerReflectionRequestOrBuilder
        Returns:
        Whether the fileByFilename field is set.
      • getFileByFilenameBytes

        public com.google.protobuf.ByteString getFileByFilenameBytes()
         Find a proto file by the file name.
         
        string file_by_filename = 3;
        Specified by:
        getFileByFilenameBytes in interface ServerReflectionRequestOrBuilder
        Returns:
        The bytes for fileByFilename.
      • setFileByFilename

        public ServerReflectionRequest.Builder setFileByFilename​(java.lang.String value)
         Find a proto file by the file name.
         
        string file_by_filename = 3;
        Parameters:
        value - The fileByFilename to set.
        Returns:
        This builder for chaining.
      • clearFileByFilename

        public ServerReflectionRequest.Builder clearFileByFilename()
         Find a proto file by the file name.
         
        string file_by_filename = 3;
        Returns:
        This builder for chaining.
      • setFileByFilenameBytes

        public ServerReflectionRequest.Builder setFileByFilenameBytes​(com.google.protobuf.ByteString value)
         Find a proto file by the file name.
         
        string file_by_filename = 3;
        Parameters:
        value - The bytes for fileByFilename to set.
        Returns:
        This builder for chaining.
      • hasFileContainingSymbol

        public boolean hasFileContainingSymbol()
         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>).
         
        string file_containing_symbol = 4;
        Specified by:
        hasFileContainingSymbol in interface ServerReflectionRequestOrBuilder
        Returns:
        Whether the fileContainingSymbol field is set.
      • getFileContainingSymbol

        public java.lang.String getFileContainingSymbol()
         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>).
         
        string file_containing_symbol = 4;
        Specified by:
        getFileContainingSymbol in interface ServerReflectionRequestOrBuilder
        Returns:
        The fileContainingSymbol.
      • getFileContainingSymbolBytes

        public com.google.protobuf.ByteString getFileContainingSymbolBytes()
         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>).
         
        string file_containing_symbol = 4;
        Specified by:
        getFileContainingSymbolBytes in interface ServerReflectionRequestOrBuilder
        Returns:
        The bytes for fileContainingSymbol.
      • setFileContainingSymbol

        public ServerReflectionRequest.Builder setFileContainingSymbol​(java.lang.String value)
         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>).
         
        string file_containing_symbol = 4;
        Parameters:
        value - The fileContainingSymbol to set.
        Returns:
        This builder for chaining.
      • clearFileContainingSymbol

        public ServerReflectionRequest.Builder clearFileContainingSymbol()
         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>).
         
        string file_containing_symbol = 4;
        Returns:
        This builder for chaining.
      • setFileContainingSymbolBytes

        public ServerReflectionRequest.Builder setFileContainingSymbolBytes​(com.google.protobuf.ByteString value)
         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>).
         
        string file_containing_symbol = 4;
        Parameters:
        value - The bytes for fileContainingSymbol to set.
        Returns:
        This builder for chaining.
      • hasFileContainingExtension

        public boolean hasFileContainingExtension()
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
        Specified by:
        hasFileContainingExtension in interface ServerReflectionRequestOrBuilder
        Returns:
        Whether the fileContainingExtension field is set.
      • getFileContainingExtension

        public ExtensionRequest getFileContainingExtension()
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
        Specified by:
        getFileContainingExtension in interface ServerReflectionRequestOrBuilder
        Returns:
        The fileContainingExtension.
      • setFileContainingExtension

        public ServerReflectionRequest.Builder setFileContainingExtension​(ExtensionRequest value)
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
      • setFileContainingExtension

        public ServerReflectionRequest.Builder setFileContainingExtension​(ExtensionRequest.Builder builderForValue)
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
      • mergeFileContainingExtension

        public ServerReflectionRequest.Builder mergeFileContainingExtension​(ExtensionRequest value)
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
      • clearFileContainingExtension

        public ServerReflectionRequest.Builder clearFileContainingExtension()
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
      • getFileContainingExtensionBuilder

        public ExtensionRequest.Builder getFileContainingExtensionBuilder()
         Find the proto file which defines an extension extending the given
         message type with the given field number.
         
        .grpc.reflection.v1alpha.ExtensionRequest file_containing_extension = 5;
      • hasAllExtensionNumbersOfType

        public boolean hasAllExtensionNumbersOfType()
         Finds the tag numbers used by all known extensions of extendee_type, and
         appends them to ExtensionNumberResponse in an undefined order.
         Its corresponding method is best-effort: it's not guaranteed that the
         reflection service will implement this method, and it's not guaranteed
         that this method will provide all extensions. Returns
         StatusCode::UNIMPLEMENTED if it's not implemented.
         This field should be a fully-qualified type name. The format is
         <package>.<type>
         
        string all_extension_numbers_of_type = 6;
        Specified by:
        hasAllExtensionNumbersOfType in interface ServerReflectionRequestOrBuilder
        Returns:
        Whether the allExtensionNumbersOfType field is set.
      • getAllExtensionNumbersOfType

        public java.lang.String getAllExtensionNumbersOfType()
         Finds the tag numbers used by all known extensions of extendee_type, and
         appends them to ExtensionNumberResponse in an undefined order.
         Its corresponding method is best-effort: it's not guaranteed that the
         reflection service will implement this method, and it's not guaranteed
         that this method will provide all extensions. Returns
         StatusCode::UNIMPLEMENTED if it's not implemented.
         This field should be a fully-qualified type name. The format is
         <package>.<type>
         
        string all_extension_numbers_of_type = 6;
        Specified by:
        getAllExtensionNumbersOfType in interface ServerReflectionRequestOrBuilder
        Returns:
        The allExtensionNumbersOfType.
      • getAllExtensionNumbersOfTypeBytes

        public com.google.protobuf.ByteString getAllExtensionNumbersOfTypeBytes()
         Finds the tag numbers used by all known extensions of extendee_type, and
         appends them to ExtensionNumberResponse in an undefined order.
         Its corresponding method is best-effort: it's not guaranteed that the
         reflection service will implement this method, and it's not guaranteed
         that this method will provide all extensions. Returns
         StatusCode::UNIMPLEMENTED if it's not implemented.
         This field should be a fully-qualified type name. The format is
         <package>.<type>
         
        string all_extension_numbers_of_type = 6;
        Specified by:
        getAllExtensionNumbersOfTypeBytes in interface ServerReflectionRequestOrBuilder
        Returns:
        The bytes for allExtensionNumbersOfType.
      • setAllExtensionNumbersOfType

        public ServerReflectionRequest.Builder setAllExtensionNumbersOfType​(java.lang.String value)
         Finds the tag numbers used by all known extensions of extendee_type, and
         appends them to ExtensionNumberResponse in an undefined order.
         Its corresponding method is best-effort: it's not guaranteed that the
         reflection service will implement this method, and it's not guaranteed
         that this method will provide all extensions. Returns
         StatusCode::UNIMPLEMENTED if it's not implemented.
         This field should be a fully-qualified type name. The format is
         <package>.<type>
         
        string all_extension_numbers_of_type = 6;
        Parameters:
        value - The allExtensionNumbersOfType to set.
        Returns:
        This builder for chaining.
      • clearAllExtensionNumbersOfType

        public ServerReflectionRequest.Builder clearAllExtensionNumbersOfType()
         Finds the tag numbers used by all known extensions of extendee_type, and
         appends them to ExtensionNumberResponse in an undefined order.
         Its corresponding method is best-effort: it's not guaranteed that the
         reflection service will implement this method, and it's not guaranteed
         that this method will provide all extensions. Returns
         StatusCode::UNIMPLEMENTED if it's not implemented.
         This field should be a fully-qualified type name. The format is
         <package>.<type>
         
        string all_extension_numbers_of_type = 6;
        Returns:
        This builder for chaining.
      • setAllExtensionNumbersOfTypeBytes

        public ServerReflectionRequest.Builder setAllExtensionNumbersOfTypeBytes​(com.google.protobuf.ByteString value)
         Finds the tag numbers used by all known extensions of extendee_type, and
         appends them to ExtensionNumberResponse in an undefined order.
         Its corresponding method is best-effort: it's not guaranteed that the
         reflection service will implement this method, and it's not guaranteed
         that this method will provide all extensions. Returns
         StatusCode::UNIMPLEMENTED if it's not implemented.
         This field should be a fully-qualified type name. The format is
         <package>.<type>
         
        string all_extension_numbers_of_type = 6;
        Parameters:
        value - The bytes for allExtensionNumbersOfType to set.
        Returns:
        This builder for chaining.
      • hasListServices

        public boolean hasListServices()
         List the full names of registered services. The content will not be
         checked.
         
        string list_services = 7;
        Specified by:
        hasListServices in interface ServerReflectionRequestOrBuilder
        Returns:
        Whether the listServices field is set.
      • getListServices

        public java.lang.String getListServices()
         List the full names of registered services. The content will not be
         checked.
         
        string list_services = 7;
        Specified by:
        getListServices in interface ServerReflectionRequestOrBuilder
        Returns:
        The listServices.
      • getListServicesBytes

        public com.google.protobuf.ByteString getListServicesBytes()
         List the full names of registered services. The content will not be
         checked.
         
        string list_services = 7;
        Specified by:
        getListServicesBytes in interface ServerReflectionRequestOrBuilder
        Returns:
        The bytes for listServices.
      • setListServices

        public ServerReflectionRequest.Builder setListServices​(java.lang.String value)
         List the full names of registered services. The content will not be
         checked.
         
        string list_services = 7;
        Parameters:
        value - The listServices to set.
        Returns:
        This builder for chaining.
      • clearListServices

        public ServerReflectionRequest.Builder clearListServices()
         List the full names of registered services. The content will not be
         checked.
         
        string list_services = 7;
        Returns:
        This builder for chaining.
      • setListServicesBytes

        public ServerReflectionRequest.Builder setListServicesBytes​(com.google.protobuf.ByteString value)
         List the full names of registered services. The content will not be
         checked.
         
        string list_services = 7;
        Parameters:
        value - The bytes for listServices to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ServerReflectionRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>
      • mergeUnknownFields

        public final ServerReflectionRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServerReflectionRequest.Builder>