Class ClientLibrarySettings

  • All Implemented Interfaces:
    ClientLibrarySettingsOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable

    public final class ClientLibrarySettings
    extends com.google.protobuf.GeneratedMessageV3
    implements ClientLibrarySettingsOrBuilder
     Details about how and where to publish client libraries.
     
    Protobuf type google.api.ClientLibrarySettings
    See Also:
    Serialized Form
    • Field Detail

      • LAUNCH_STAGE_FIELD_NUMBER

        public static final int LAUNCH_STAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REST_NUMERIC_ENUMS_FIELD_NUMBER

        public static final int REST_NUMERIC_ENUMS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • JAVA_SETTINGS_FIELD_NUMBER

        public static final int JAVA_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CPP_SETTINGS_FIELD_NUMBER

        public static final int CPP_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PHP_SETTINGS_FIELD_NUMBER

        public static final int PHP_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PYTHON_SETTINGS_FIELD_NUMBER

        public static final int PYTHON_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NODE_SETTINGS_FIELD_NUMBER

        public static final int NODE_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DOTNET_SETTINGS_FIELD_NUMBER

        public static final int DOTNET_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RUBY_SETTINGS_FIELD_NUMBER

        public static final int RUBY_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • GO_SETTINGS_FIELD_NUMBER

        public static final int GO_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Overrides:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getVersion

        public java.lang.String getVersion()
         Version of the API to apply these settings to. This is the full protobuf
         package for the API, ending in the version element.
         Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
         
        string version = 1;
        Specified by:
        getVersion in interface ClientLibrarySettingsOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         Version of the API to apply these settings to. This is the full protobuf
         package for the API, ending in the version element.
         Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
         
        string version = 1;
        Specified by:
        getVersionBytes in interface ClientLibrarySettingsOrBuilder
        Returns:
        The bytes for version.
      • getLaunchStageValue

        public int getLaunchStageValue()
         Launch stage of this version of the API.
         
        .google.api.LaunchStage launch_stage = 2;
        Specified by:
        getLaunchStageValue in interface ClientLibrarySettingsOrBuilder
        Returns:
        The enum numeric value on the wire for launchStage.
      • getRestNumericEnums

        public boolean getRestNumericEnums()
         When using transport=rest, the client request will encode enums as
         numbers rather than strings.
         
        bool rest_numeric_enums = 3;
        Specified by:
        getRestNumericEnums in interface ClientLibrarySettingsOrBuilder
        Returns:
        The restNumericEnums.
      • hasJavaSettings

        public boolean hasJavaSettings()
         Settings for legacy Java features, supported in the Service YAML.
         
        .google.api.JavaSettings java_settings = 21;
        Specified by:
        hasJavaSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the javaSettings field is set.
      • hasCppSettings

        public boolean hasCppSettings()
         Settings for C++ client libraries.
         
        .google.api.CppSettings cpp_settings = 22;
        Specified by:
        hasCppSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the cppSettings field is set.
      • hasPhpSettings

        public boolean hasPhpSettings()
         Settings for PHP client libraries.
         
        .google.api.PhpSettings php_settings = 23;
        Specified by:
        hasPhpSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the phpSettings field is set.
      • hasPythonSettings

        public boolean hasPythonSettings()
         Settings for Python client libraries.
         
        .google.api.PythonSettings python_settings = 24;
        Specified by:
        hasPythonSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the pythonSettings field is set.
      • hasNodeSettings

        public boolean hasNodeSettings()
         Settings for Node client libraries.
         
        .google.api.NodeSettings node_settings = 25;
        Specified by:
        hasNodeSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the nodeSettings field is set.
      • hasDotnetSettings

        public boolean hasDotnetSettings()
         Settings for .NET client libraries.
         
        .google.api.DotnetSettings dotnet_settings = 26;
        Specified by:
        hasDotnetSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the dotnetSettings field is set.
      • hasRubySettings

        public boolean hasRubySettings()
         Settings for Ruby client libraries.
         
        .google.api.RubySettings ruby_settings = 27;
        Specified by:
        hasRubySettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the rubySettings field is set.
      • hasGoSettings

        public boolean hasGoSettings()
         Settings for Go client libraries.
         
        .google.api.GoSettings go_settings = 28;
        Specified by:
        hasGoSettings in interface ClientLibrarySettingsOrBuilder
        Returns:
        Whether the goSettings 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.ExtendableMessage<com.google.protobuf.GeneratedMessageV3>
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.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​(java.lang.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 ClientLibrarySettings parseFrom​(java.nio.ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(java.nio.ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(java.io.InputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(java.io.InputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static ClientLibrarySettings parseDelimitedFrom​(java.io.InputStream input)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static ClientLibrarySettings parseDelimitedFrom​(java.io.InputStream input,
                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(com.google.protobuf.CodedInputStream input)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static ClientLibrarySettings parseFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

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

        protected ClientLibrarySettings.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ClientLibrarySettings> 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 ClientLibrarySettings getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder