Class PhpSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<PhpSettings,PhpSettings.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<PhpSettings,PhpSettings.Builder>
com.google.api.PhpSettings.Builder
All Implemented Interfaces:
PhpSettingsOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
PhpSettings

public static final class PhpSettings.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<PhpSettings,PhpSettings.Builder> implements PhpSettingsOrBuilder
 Settings for Php client libraries.
 
Protobuf type google.api.PhpSettings
  • Method Details

    • hasCommon

      public boolean hasCommon()
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
      Specified by:
      hasCommon in interface PhpSettingsOrBuilder
      Returns:
      Whether the common field is set.
    • getCommon

      public CommonLanguageSettings getCommon()
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
      Specified by:
      getCommon in interface PhpSettingsOrBuilder
      Returns:
      The common.
    • setCommon

      public PhpSettings.Builder setCommon(CommonLanguageSettings value)
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • setCommon

      public PhpSettings.Builder setCommon(CommonLanguageSettings.Builder builderForValue)
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • mergeCommon

      public PhpSettings.Builder mergeCommon(CommonLanguageSettings value)
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • clearCommon

      public PhpSettings.Builder clearCommon()
       Some settings.
       
      .google.api.CommonLanguageSettings common = 1 [json_name = "common"];
    • getLibraryPackage

      public String getLibraryPackage()
       The package name to use in Php. Clobbers the php_namespace option
       set in the protobuf. This should be used **only** by APIs
       who have already set the language_settings.php.package_name" field
       in gapic.yaml. API teams should use the protobuf php_namespace option
       where possible.
      
       Example of a YAML configuration::
      
       publishing:
       library_settings:
       php_settings:
       library_package: Google\Cloud\PubSub\V1
       
      string library_package = 2 [json_name = "libraryPackage"];
      Specified by:
      getLibraryPackage in interface PhpSettingsOrBuilder
      Returns:
      The libraryPackage.
    • getLibraryPackageBytes

      public com.google.protobuf.ByteString getLibraryPackageBytes()
       The package name to use in Php. Clobbers the php_namespace option
       set in the protobuf. This should be used **only** by APIs
       who have already set the language_settings.php.package_name" field
       in gapic.yaml. API teams should use the protobuf php_namespace option
       where possible.
      
       Example of a YAML configuration::
      
       publishing:
       library_settings:
       php_settings:
       library_package: Google\Cloud\PubSub\V1
       
      string library_package = 2 [json_name = "libraryPackage"];
      Specified by:
      getLibraryPackageBytes in interface PhpSettingsOrBuilder
      Returns:
      The bytes for libraryPackage.
    • setLibraryPackage

      public PhpSettings.Builder setLibraryPackage(String value)
       The package name to use in Php. Clobbers the php_namespace option
       set in the protobuf. This should be used **only** by APIs
       who have already set the language_settings.php.package_name" field
       in gapic.yaml. API teams should use the protobuf php_namespace option
       where possible.
      
       Example of a YAML configuration::
      
       publishing:
       library_settings:
       php_settings:
       library_package: Google\Cloud\PubSub\V1
       
      string library_package = 2 [json_name = "libraryPackage"];
      Parameters:
      value - The libraryPackage to set.
      Returns:
      This builder for chaining.
    • clearLibraryPackage

      public PhpSettings.Builder clearLibraryPackage()
       The package name to use in Php. Clobbers the php_namespace option
       set in the protobuf. This should be used **only** by APIs
       who have already set the language_settings.php.package_name" field
       in gapic.yaml. API teams should use the protobuf php_namespace option
       where possible.
      
       Example of a YAML configuration::
      
       publishing:
       library_settings:
       php_settings:
       library_package: Google\Cloud\PubSub\V1
       
      string library_package = 2 [json_name = "libraryPackage"];
      Returns:
      This builder for chaining.
    • setLibraryPackageBytes

      public PhpSettings.Builder setLibraryPackageBytes(com.google.protobuf.ByteString value)
       The package name to use in Php. Clobbers the php_namespace option
       set in the protobuf. This should be used **only** by APIs
       who have already set the language_settings.php.package_name" field
       in gapic.yaml. API teams should use the protobuf php_namespace option
       where possible.
      
       Example of a YAML configuration::
      
       publishing:
       library_settings:
       php_settings:
       library_package: Google\Cloud\PubSub\V1
       
      string library_package = 2 [json_name = "libraryPackage"];
      Parameters:
      value - The bytes for libraryPackage to set.
      Returns:
      This builder for chaining.