Class ClientLibrarySettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<ClientLibrarySettings,ClientLibrarySettings.Builder>
com.google.api.ClientLibrarySettings.Builder
All Implemented Interfaces:
ClientLibrarySettingsOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
ClientLibrarySettings

public static final class ClientLibrarySettings.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ClientLibrarySettings,ClientLibrarySettings.Builder> implements ClientLibrarySettingsOrBuilder
 Details about how and where to publish client libraries.
 
Protobuf type google.api.ClientLibrarySettings
  • Method Details

    • getVersion

      public 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 [json_name = "version"];
      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 [json_name = "version"];
      Specified by:
      getVersionBytes in interface ClientLibrarySettingsOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public ClientLibrarySettings.Builder setVersion(String value)
       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 [json_name = "version"];
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public ClientLibrarySettings.Builder clearVersion()
       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 [json_name = "version"];
      Returns:
      This builder for chaining.
    • setVersionBytes

      public ClientLibrarySettings.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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 [json_name = "version"];
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getLaunchStageValue

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

      public ClientLibrarySettings.Builder setLaunchStageValue(int value)
       Launch stage of this version of the API.
       
      .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"];
      Parameters:
      value - The launchStage to set.
      Returns:
      This builder for chaining.
    • getLaunchStage

      public LaunchStage getLaunchStage()
       Launch stage of this version of the API.
       
      .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"];
      Specified by:
      getLaunchStage in interface ClientLibrarySettingsOrBuilder
      Returns:
      The launchStage.
    • setLaunchStage

      public ClientLibrarySettings.Builder setLaunchStage(LaunchStage value)
       Launch stage of this version of the API.
       
      .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"];
      Parameters:
      value - The enum numeric value on the wire for launchStage to set.
      Returns:
      This builder for chaining.
    • clearLaunchStage

      public ClientLibrarySettings.Builder clearLaunchStage()
       Launch stage of this version of the API.
       
      .google.api.LaunchStage launch_stage = 2 [json_name = "launchStage"];
      Returns:
      This builder for chaining.
    • getRestNumericEnums

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

      public ClientLibrarySettings.Builder setRestNumericEnums(boolean value)
       When using transport=rest, the client request will encode enums as
       numbers rather than strings.
       
      bool rest_numeric_enums = 3 [json_name = "restNumericEnums"];
      Parameters:
      value - The restNumericEnums to set.
      Returns:
      This builder for chaining.
    • clearRestNumericEnums

      public ClientLibrarySettings.Builder clearRestNumericEnums()
       When using transport=rest, the client request will encode enums as
       numbers rather than strings.
       
      bool rest_numeric_enums = 3 [json_name = "restNumericEnums"];
      Returns:
      This builder for chaining.
    • hasJavaSettings

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

      public JavaSettings getJavaSettings()
       Settings for legacy Java features, supported in the Service YAML.
       
      .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"];
      Specified by:
      getJavaSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The javaSettings.
    • setJavaSettings

      public ClientLibrarySettings.Builder setJavaSettings(JavaSettings value)
       Settings for legacy Java features, supported in the Service YAML.
       
      .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"];
    • setJavaSettings

      public ClientLibrarySettings.Builder setJavaSettings(JavaSettings.Builder builderForValue)
       Settings for legacy Java features, supported in the Service YAML.
       
      .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"];
    • mergeJavaSettings

      public ClientLibrarySettings.Builder mergeJavaSettings(JavaSettings value)
       Settings for legacy Java features, supported in the Service YAML.
       
      .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"];
    • clearJavaSettings

      public ClientLibrarySettings.Builder clearJavaSettings()
       Settings for legacy Java features, supported in the Service YAML.
       
      .google.api.JavaSettings java_settings = 21 [json_name = "javaSettings"];
    • hasCppSettings

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

      public CppSettings getCppSettings()
       Settings for C++ client libraries.
       
      .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"];
      Specified by:
      getCppSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The cppSettings.
    • setCppSettings

      public ClientLibrarySettings.Builder setCppSettings(CppSettings value)
       Settings for C++ client libraries.
       
      .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"];
    • setCppSettings

      public ClientLibrarySettings.Builder setCppSettings(CppSettings.Builder builderForValue)
       Settings for C++ client libraries.
       
      .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"];
    • mergeCppSettings

      public ClientLibrarySettings.Builder mergeCppSettings(CppSettings value)
       Settings for C++ client libraries.
       
      .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"];
    • clearCppSettings

      public ClientLibrarySettings.Builder clearCppSettings()
       Settings for C++ client libraries.
       
      .google.api.CppSettings cpp_settings = 22 [json_name = "cppSettings"];
    • hasPhpSettings

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

      public PhpSettings getPhpSettings()
       Settings for PHP client libraries.
       
      .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"];
      Specified by:
      getPhpSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The phpSettings.
    • setPhpSettings

      public ClientLibrarySettings.Builder setPhpSettings(PhpSettings value)
       Settings for PHP client libraries.
       
      .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"];
    • setPhpSettings

      public ClientLibrarySettings.Builder setPhpSettings(PhpSettings.Builder builderForValue)
       Settings for PHP client libraries.
       
      .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"];
    • mergePhpSettings

      public ClientLibrarySettings.Builder mergePhpSettings(PhpSettings value)
       Settings for PHP client libraries.
       
      .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"];
    • clearPhpSettings

      public ClientLibrarySettings.Builder clearPhpSettings()
       Settings for PHP client libraries.
       
      .google.api.PhpSettings php_settings = 23 [json_name = "phpSettings"];
    • hasPythonSettings

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

      public PythonSettings getPythonSettings()
       Settings for Python client libraries.
       
      .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"];
      Specified by:
      getPythonSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The pythonSettings.
    • setPythonSettings

      public ClientLibrarySettings.Builder setPythonSettings(PythonSettings value)
       Settings for Python client libraries.
       
      .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"];
    • setPythonSettings

      public ClientLibrarySettings.Builder setPythonSettings(PythonSettings.Builder builderForValue)
       Settings for Python client libraries.
       
      .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"];
    • mergePythonSettings

      public ClientLibrarySettings.Builder mergePythonSettings(PythonSettings value)
       Settings for Python client libraries.
       
      .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"];
    • clearPythonSettings

      public ClientLibrarySettings.Builder clearPythonSettings()
       Settings for Python client libraries.
       
      .google.api.PythonSettings python_settings = 24 [json_name = "pythonSettings"];
    • hasNodeSettings

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

      public NodeSettings getNodeSettings()
       Settings for Node client libraries.
       
      .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"];
      Specified by:
      getNodeSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The nodeSettings.
    • setNodeSettings

      public ClientLibrarySettings.Builder setNodeSettings(NodeSettings value)
       Settings for Node client libraries.
       
      .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"];
    • setNodeSettings

      public ClientLibrarySettings.Builder setNodeSettings(NodeSettings.Builder builderForValue)
       Settings for Node client libraries.
       
      .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"];
    • mergeNodeSettings

      public ClientLibrarySettings.Builder mergeNodeSettings(NodeSettings value)
       Settings for Node client libraries.
       
      .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"];
    • clearNodeSettings

      public ClientLibrarySettings.Builder clearNodeSettings()
       Settings for Node client libraries.
       
      .google.api.NodeSettings node_settings = 25 [json_name = "nodeSettings"];
    • hasDotnetSettings

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

      public DotnetSettings getDotnetSettings()
       Settings for .NET client libraries.
       
      .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"];
      Specified by:
      getDotnetSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The dotnetSettings.
    • setDotnetSettings

      public ClientLibrarySettings.Builder setDotnetSettings(DotnetSettings value)
       Settings for .NET client libraries.
       
      .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"];
    • setDotnetSettings

      public ClientLibrarySettings.Builder setDotnetSettings(DotnetSettings.Builder builderForValue)
       Settings for .NET client libraries.
       
      .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"];
    • mergeDotnetSettings

      public ClientLibrarySettings.Builder mergeDotnetSettings(DotnetSettings value)
       Settings for .NET client libraries.
       
      .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"];
    • clearDotnetSettings

      public ClientLibrarySettings.Builder clearDotnetSettings()
       Settings for .NET client libraries.
       
      .google.api.DotnetSettings dotnet_settings = 26 [json_name = "dotnetSettings"];
    • hasRubySettings

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

      public RubySettings getRubySettings()
       Settings for Ruby client libraries.
       
      .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"];
      Specified by:
      getRubySettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The rubySettings.
    • setRubySettings

      public ClientLibrarySettings.Builder setRubySettings(RubySettings value)
       Settings for Ruby client libraries.
       
      .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"];
    • setRubySettings

      public ClientLibrarySettings.Builder setRubySettings(RubySettings.Builder builderForValue)
       Settings for Ruby client libraries.
       
      .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"];
    • mergeRubySettings

      public ClientLibrarySettings.Builder mergeRubySettings(RubySettings value)
       Settings for Ruby client libraries.
       
      .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"];
    • clearRubySettings

      public ClientLibrarySettings.Builder clearRubySettings()
       Settings for Ruby client libraries.
       
      .google.api.RubySettings ruby_settings = 27 [json_name = "rubySettings"];
    • hasGoSettings

      public boolean hasGoSettings()
       Settings for Go client libraries.
       
      .google.api.GoSettings go_settings = 28 [json_name = "goSettings"];
      Specified by:
      hasGoSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      Whether the goSettings field is set.
    • getGoSettings

      public GoSettings getGoSettings()
       Settings for Go client libraries.
       
      .google.api.GoSettings go_settings = 28 [json_name = "goSettings"];
      Specified by:
      getGoSettings in interface ClientLibrarySettingsOrBuilder
      Returns:
      The goSettings.
    • setGoSettings

      public ClientLibrarySettings.Builder setGoSettings(GoSettings value)
       Settings for Go client libraries.
       
      .google.api.GoSettings go_settings = 28 [json_name = "goSettings"];
    • setGoSettings

      public ClientLibrarySettings.Builder setGoSettings(GoSettings.Builder builderForValue)
       Settings for Go client libraries.
       
      .google.api.GoSettings go_settings = 28 [json_name = "goSettings"];
    • mergeGoSettings

      public ClientLibrarySettings.Builder mergeGoSettings(GoSettings value)
       Settings for Go client libraries.
       
      .google.api.GoSettings go_settings = 28 [json_name = "goSettings"];
    • clearGoSettings

      public ClientLibrarySettings.Builder clearGoSettings()
       Settings for Go client libraries.
       
      .google.api.GoSettings go_settings = 28 [json_name = "goSettings"];