Class ReplaceCatalogAttributeRequest.Builder

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

public static final class ReplaceCatalogAttributeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReplaceCatalogAttributeRequest.Builder> implements ReplaceCatalogAttributeRequestOrBuilder
 Request for
 [CatalogService.ReplaceCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.ReplaceCatalogAttribute]
 method.
 
Protobuf type google.cloud.retail.v2alpha.ReplaceCatalogAttributeRequest
  • 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<ReplaceCatalogAttributeRequest.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<ReplaceCatalogAttributeRequest.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<ReplaceCatalogAttributeRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ReplaceCatalogAttributeRequest.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<ReplaceCatalogAttributeRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public ReplaceCatalogAttributeRequest.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<ReplaceCatalogAttributeRequest.Builder>
      Throws:
      IOException
    • getAttributesConfig

      public String getAttributesConfig()
       Required. Full AttributesConfig resource name. Format:
       `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
       
      string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAttributesConfig in interface ReplaceCatalogAttributeRequestOrBuilder
      Returns:
      The attributesConfig.
    • getAttributesConfigBytes

      public com.google.protobuf.ByteString getAttributesConfigBytes()
       Required. Full AttributesConfig resource name. Format:
       `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
       
      string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getAttributesConfigBytes in interface ReplaceCatalogAttributeRequestOrBuilder
      Returns:
      The bytes for attributesConfig.
    • setAttributesConfig

      public ReplaceCatalogAttributeRequest.Builder setAttributesConfig(String value)
       Required. Full AttributesConfig resource name. Format:
       `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
       
      string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The attributesConfig to set.
      Returns:
      This builder for chaining.
    • clearAttributesConfig

      public ReplaceCatalogAttributeRequest.Builder clearAttributesConfig()
       Required. Full AttributesConfig resource name. Format:
       `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
       
      string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAttributesConfigBytes

      public ReplaceCatalogAttributeRequest.Builder setAttributesConfigBytes(com.google.protobuf.ByteString value)
       Required. Full AttributesConfig resource name. Format:
       `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig`
       
      string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for attributesConfig to set.
      Returns:
      This builder for chaining.
    • hasCatalogAttribute

      public boolean hasCatalogAttribute()
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCatalogAttribute in interface ReplaceCatalogAttributeRequestOrBuilder
      Returns:
      Whether the catalogAttribute field is set.
    • getCatalogAttribute

      public CatalogAttribute getCatalogAttribute()
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCatalogAttribute in interface ReplaceCatalogAttributeRequestOrBuilder
      Returns:
      The catalogAttribute.
    • setCatalogAttribute

      public ReplaceCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute value)
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
    • setCatalogAttribute

      public ReplaceCatalogAttributeRequest.Builder setCatalogAttribute(CatalogAttribute.Builder builderForValue)
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeCatalogAttribute

      public ReplaceCatalogAttributeRequest.Builder mergeCatalogAttribute(CatalogAttribute value)
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearCatalogAttribute

      public ReplaceCatalogAttributeRequest.Builder clearCatalogAttribute()
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCatalogAttributeBuilder

      public CatalogAttribute.Builder getCatalogAttributeBuilder()
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCatalogAttributeOrBuilder

      public CatalogAttributeOrBuilder getCatalogAttributeOrBuilder()
       Required. The updated
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute].
       
      .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCatalogAttributeOrBuilder in interface ReplaceCatalogAttributeRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
      Specified by:
      hasUpdateMask in interface ReplaceCatalogAttributeRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
      Specified by:
      getUpdateMask in interface ReplaceCatalogAttributeRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public ReplaceCatalogAttributeRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
    • setUpdateMask

      public ReplaceCatalogAttributeRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
    • mergeUpdateMask

      public ReplaceCatalogAttributeRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
    • clearUpdateMask

      public ReplaceCatalogAttributeRequest.Builder clearUpdateMask()
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Indicates which fields in the provided
       [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to update.
       The following are NOT supported:
      
       * [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]
      
       If not set, all supported fields are updated.
       
      .google.protobuf.FieldMask update_mask = 3;
      Specified by:
      getUpdateMaskOrBuilder in interface ReplaceCatalogAttributeRequestOrBuilder