Class Catalog.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Catalog.Builder>
com.google.cloud.retail.v2alpha.Catalog.Builder
All Implemented Interfaces:
CatalogOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Catalog

public static final class Catalog.Builder extends com.google.protobuf.GeneratedMessage.Builder<Catalog.Builder> implements CatalogOrBuilder
 The catalog configuration.
 
Protobuf type google.cloud.retail.v2alpha.Catalog
  • Method Details

    • 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.Builder<Catalog.Builder>
    • clear

      public Catalog.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.GeneratedMessage.Builder<Catalog.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.GeneratedMessage.Builder<Catalog.Builder>
    • getDefaultInstanceForType

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

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

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

      public Catalog.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Catalog.Builder>
    • mergeFrom

      public Catalog.Builder mergeFrom(Catalog other)
    • isInitialized

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

      public Catalog.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<Catalog.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Immutable. The fully qualified resource name of the catalog.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface CatalogOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Immutable. The fully qualified resource name of the catalog.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface CatalogOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Catalog.Builder setName(String value)
       Required. Immutable. The fully qualified resource name of the catalog.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Catalog.Builder clearName()
       Required. Immutable. The fully qualified resource name of the catalog.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Catalog.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The fully qualified resource name of the catalog.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. Immutable. The catalog display name.
      
       This field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDisplayName in interface CatalogOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. Immutable. The catalog display name.
      
       This field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDisplayNameBytes in interface CatalogOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Catalog.Builder setDisplayName(String value)
       Required. Immutable. The catalog display name.
      
       This field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Catalog.Builder clearDisplayName()
       Required. Immutable. The catalog display name.
      
       This field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Catalog.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The catalog display name.
      
       This field must be a UTF-8 encoded string with a length limit of 128
       characters. Otherwise, an INVALID_ARGUMENT error is returned.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasProductLevelConfig

      public boolean hasProductLevelConfig()
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasProductLevelConfig in interface CatalogOrBuilder
      Returns:
      Whether the productLevelConfig field is set.
    • getProductLevelConfig

      public ProductLevelConfig getProductLevelConfig()
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProductLevelConfig in interface CatalogOrBuilder
      Returns:
      The productLevelConfig.
    • setProductLevelConfig

      public Catalog.Builder setProductLevelConfig(ProductLevelConfig value)
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
    • setProductLevelConfig

      public Catalog.Builder setProductLevelConfig(ProductLevelConfig.Builder builderForValue)
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeProductLevelConfig

      public Catalog.Builder mergeProductLevelConfig(ProductLevelConfig value)
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearProductLevelConfig

      public Catalog.Builder clearProductLevelConfig()
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
    • getProductLevelConfigBuilder

      public ProductLevelConfig.Builder getProductLevelConfigBuilder()
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
    • getProductLevelConfigOrBuilder

      public ProductLevelConfigOrBuilder getProductLevelConfigOrBuilder()
       Required. The product level configuration.
       
      .google.cloud.retail.v2alpha.ProductLevelConfig product_level_config = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getProductLevelConfigOrBuilder in interface CatalogOrBuilder
    • hasMerchantCenterLinkingConfig

      public boolean hasMerchantCenterLinkingConfig()
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
      Specified by:
      hasMerchantCenterLinkingConfig in interface CatalogOrBuilder
      Returns:
      Whether the merchantCenterLinkingConfig field is set.
    • getMerchantCenterLinkingConfig

      public MerchantCenterLinkingConfig getMerchantCenterLinkingConfig()
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
      Specified by:
      getMerchantCenterLinkingConfig in interface CatalogOrBuilder
      Returns:
      The merchantCenterLinkingConfig.
    • setMerchantCenterLinkingConfig

      public Catalog.Builder setMerchantCenterLinkingConfig(MerchantCenterLinkingConfig value)
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
    • setMerchantCenterLinkingConfig

      public Catalog.Builder setMerchantCenterLinkingConfig(MerchantCenterLinkingConfig.Builder builderForValue)
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
    • mergeMerchantCenterLinkingConfig

      public Catalog.Builder mergeMerchantCenterLinkingConfig(MerchantCenterLinkingConfig value)
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
    • clearMerchantCenterLinkingConfig

      public Catalog.Builder clearMerchantCenterLinkingConfig()
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
    • getMerchantCenterLinkingConfigBuilder

      public MerchantCenterLinkingConfig.Builder getMerchantCenterLinkingConfigBuilder()
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
    • getMerchantCenterLinkingConfigOrBuilder

      public MerchantCenterLinkingConfigOrBuilder getMerchantCenterLinkingConfigOrBuilder()
       The Merchant Center linking configuration.
       After a link is added, the data stream from Merchant Center to Cloud Retail
       will be enabled automatically. The requester must have access to the
       Merchant Center account in order to make changes to this field.
       
      .google.cloud.retail.v2alpha.MerchantCenterLinkingConfig merchant_center_linking_config = 6;
      Specified by:
      getMerchantCenterLinkingConfigOrBuilder in interface CatalogOrBuilder