Class AddCatalogAttributeRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AddCatalogAttributeRequest.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.GeneratedMessageV3.Builder<AddCatalogAttributeRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public AddCatalogAttributeRequest.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<AddCatalogAttributeRequest.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 AddCatalogAttributeRequestOrBuilder
        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 AddCatalogAttributeRequestOrBuilder
        Returns:
        The bytes for attributesConfig.
      • setAttributesConfig

        public AddCatalogAttributeRequest.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 AddCatalogAttributeRequest.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 AddCatalogAttributeRequest.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
         [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to add.
         
        .google.cloud.retail.v2alpha.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCatalogAttribute in interface AddCatalogAttributeRequestOrBuilder
        Returns:
        Whether the catalogAttribute field is set.
      • getCatalogAttribute

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

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

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

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

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

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

        public final AddCatalogAttributeRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddCatalogAttributeRequest.Builder>
      • mergeUnknownFields

        public final AddCatalogAttributeRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddCatalogAttributeRequest.Builder>