Class DeleteProductRequest.Builder

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

public static final class DeleteProductRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeleteProductRequest.Builder> implements DeleteProductRequestOrBuilder
 Request message for
 [ProductService.DeleteProduct][google.cloud.retail.v2alpha.ProductService.DeleteProduct]
 method.
 
Protobuf type google.cloud.retail.v2alpha.DeleteProductRequest
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    This value only applies to the case when the target product is of type PRIMARY.
    Required.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    This value only applies to the case when the target product is of type PRIMARY.
    Required.
    com.google.protobuf.ByteString
    Required.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setForce(boolean value)
    This value only applies to the case when the target product is of type PRIMARY.
    setName(String value)
    Required.
    setNameBytes(com.google.protobuf.ByteString value)
    Required.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<DeleteProductRequest.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<DeleteProductRequest.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<DeleteProductRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DeleteProductRequest.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<DeleteProductRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Full resource name of
       [Product][google.cloud.retail.v2alpha.Product], such as
       `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
      
       If the caller does not have permission to delete the
       [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
       not it exists, a PERMISSION_DENIED error is returned.
      
       If the [Product][google.cloud.retail.v2alpha.Product] to delete does not
       exist, a NOT_FOUND error is returned.
      
       The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be
       a
       [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
       [Product][google.cloud.retail.v2alpha.Product] member nor a
       [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
       [Product][google.cloud.retail.v2alpha.Product] with more than one
       [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an
       INVALID_ARGUMENT error is returned.
      
       All inventory information for the named
       [Product][google.cloud.retail.v2alpha.Product] will be deleted.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface DeleteProductRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Full resource name of
       [Product][google.cloud.retail.v2alpha.Product], such as
       `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
      
       If the caller does not have permission to delete the
       [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
       not it exists, a PERMISSION_DENIED error is returned.
      
       If the [Product][google.cloud.retail.v2alpha.Product] to delete does not
       exist, a NOT_FOUND error is returned.
      
       The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be
       a
       [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
       [Product][google.cloud.retail.v2alpha.Product] member nor a
       [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
       [Product][google.cloud.retail.v2alpha.Product] with more than one
       [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an
       INVALID_ARGUMENT error is returned.
      
       All inventory information for the named
       [Product][google.cloud.retail.v2alpha.Product] will be deleted.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface DeleteProductRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DeleteProductRequest.Builder setName(String value)
       Required. Full resource name of
       [Product][google.cloud.retail.v2alpha.Product], such as
       `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
      
       If the caller does not have permission to delete the
       [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
       not it exists, a PERMISSION_DENIED error is returned.
      
       If the [Product][google.cloud.retail.v2alpha.Product] to delete does not
       exist, a NOT_FOUND error is returned.
      
       The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be
       a
       [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
       [Product][google.cloud.retail.v2alpha.Product] member nor a
       [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
       [Product][google.cloud.retail.v2alpha.Product] with more than one
       [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an
       INVALID_ARGUMENT error is returned.
      
       All inventory information for the named
       [Product][google.cloud.retail.v2alpha.Product] will be deleted.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DeleteProductRequest.Builder clearName()
       Required. Full resource name of
       [Product][google.cloud.retail.v2alpha.Product], such as
       `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
      
       If the caller does not have permission to delete the
       [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
       not it exists, a PERMISSION_DENIED error is returned.
      
       If the [Product][google.cloud.retail.v2alpha.Product] to delete does not
       exist, a NOT_FOUND error is returned.
      
       The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be
       a
       [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
       [Product][google.cloud.retail.v2alpha.Product] member nor a
       [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
       [Product][google.cloud.retail.v2alpha.Product] with more than one
       [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an
       INVALID_ARGUMENT error is returned.
      
       All inventory information for the named
       [Product][google.cloud.retail.v2alpha.Product] will be deleted.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public DeleteProductRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Full resource name of
       [Product][google.cloud.retail.v2alpha.Product], such as
       `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`.
      
       If the caller does not have permission to delete the
       [Product][google.cloud.retail.v2alpha.Product], regardless of whether or
       not it exists, a PERMISSION_DENIED error is returned.
      
       If the [Product][google.cloud.retail.v2alpha.Product] to delete does not
       exist, a NOT_FOUND error is returned.
      
       The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be
       a
       [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]
       [Product][google.cloud.retail.v2alpha.Product] member nor a
       [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
       [Product][google.cloud.retail.v2alpha.Product] with more than one
       [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, an
       INVALID_ARGUMENT error is returned.
      
       All inventory information for the named
       [Product][google.cloud.retail.v2alpha.Product] will be deleted.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getForce

      public boolean getForce()
       This value only applies to the case when the target product is of type
       PRIMARY.
       When deleting a product of VARIANT/COLLECTION type, this value
       will be ignored.
       When set to true, the subsequent variant products will be
       deleted.
       When set to false, if the primary product has active variant products, an
       error will be returned.
       
      bool force = 4;
      Specified by:
      getForce in interface DeleteProductRequestOrBuilder
      Returns:
      The force.
    • setForce

      public DeleteProductRequest.Builder setForce(boolean value)
       This value only applies to the case when the target product is of type
       PRIMARY.
       When deleting a product of VARIANT/COLLECTION type, this value
       will be ignored.
       When set to true, the subsequent variant products will be
       deleted.
       When set to false, if the primary product has active variant products, an
       error will be returned.
       
      bool force = 4;
      Parameters:
      value - The force to set.
      Returns:
      This builder for chaining.
    • clearForce

      public DeleteProductRequest.Builder clearForce()
       This value only applies to the case when the target product is of type
       PRIMARY.
       When deleting a product of VARIANT/COLLECTION type, this value
       will be ignored.
       When set to true, the subsequent variant products will be
       deleted.
       When set to false, if the primary product has active variant products, an
       error will be returned.
       
      bool force = 4;
      Returns:
      This builder for chaining.