Package com.google.cloud.retail.v2alpha
Class UpdateProductRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
- com.google.cloud.retail.v2alpha.UpdateProductRequest.Builder
-
- All Implemented Interfaces:
UpdateProductRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- UpdateProductRequest
public static final class UpdateProductRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder> implements UpdateProductRequestOrBuilder
Request message for [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] method.
Protobuf typegoogle.cloud.retail.v2alpha.UpdateProductRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateProductRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UpdateProductRequest
build()
UpdateProductRequest
buildPartial()
UpdateProductRequest.Builder
clear()
UpdateProductRequest.Builder
clearAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created.UpdateProductRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
UpdateProductRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
UpdateProductRequest.Builder
clearProduct()
Required.UpdateProductRequest.Builder
clearUpdateMask()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.UpdateProductRequest.Builder
clone()
boolean
getAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created.UpdateProductRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Product
getProduct()
Required.Product.Builder
getProductBuilder()
Required.ProductOrBuilder
getProductOrBuilder()
Required.com.google.protobuf.FieldMask
getUpdateMask()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.com.google.protobuf.FieldMask.Builder
getUpdateMaskBuilder()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.com.google.protobuf.FieldMaskOrBuilder
getUpdateMaskOrBuilder()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.boolean
hasProduct()
Required.boolean
hasUpdateMask()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
UpdateProductRequest.Builder
mergeFrom(UpdateProductRequest other)
UpdateProductRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UpdateProductRequest.Builder
mergeFrom(com.google.protobuf.Message other)
UpdateProductRequest.Builder
mergeProduct(Product value)
Required.UpdateProductRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UpdateProductRequest.Builder
mergeUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.UpdateProductRequest.Builder
setAllowMissing(boolean value)
If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created.UpdateProductRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UpdateProductRequest.Builder
setProduct(Product value)
Required.UpdateProductRequest.Builder
setProduct(Product.Builder builderForValue)
Required.UpdateProductRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
UpdateProductRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UpdateProductRequest.Builder
setUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.UpdateProductRequest.Builder
setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
clear
public UpdateProductRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
getDefaultInstanceForType
public UpdateProductRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UpdateProductRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UpdateProductRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UpdateProductRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
setField
public UpdateProductRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
clearField
public UpdateProductRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
clearOneof
public UpdateProductRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
setRepeatedField
public UpdateProductRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
addRepeatedField
public UpdateProductRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
mergeFrom
public UpdateProductRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpdateProductRequest.Builder>
-
mergeFrom
public UpdateProductRequest.Builder mergeFrom(UpdateProductRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
mergeFrom
public UpdateProductRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UpdateProductRequest.Builder>
- Throws:
IOException
-
hasProduct
public boolean hasProduct()
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasProduct
in interfaceUpdateProductRequestOrBuilder
- Returns:
- Whether the product field is set.
-
getProduct
public Product getProduct()
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getProduct
in interfaceUpdateProductRequestOrBuilder
- Returns:
- The product.
-
setProduct
public UpdateProductRequest.Builder setProduct(Product value)
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
-
setProduct
public UpdateProductRequest.Builder setProduct(Product.Builder builderForValue)
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
-
mergeProduct
public UpdateProductRequest.Builder mergeProduct(Product value)
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
-
clearProduct
public UpdateProductRequest.Builder clearProduct()
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
-
getProductBuilder
public Product.Builder getProductBuilder()
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
-
getProductOrBuilder
public ProductOrBuilder getProductOrBuilder()
Required. The product to update/create. If the caller does not have permission to update 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 update does not exist and [allow_missing][google.cloud.retail.v2alpha.UpdateProductRequest.allow_missing] is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getProductOrBuilder
in interfaceUpdateProductRequestOrBuilder
-
hasUpdateMask
public boolean hasUpdateMask()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
- Specified by:
hasUpdateMask
in interfaceUpdateProductRequestOrBuilder
- Returns:
- Whether the updateMask field is set.
-
getUpdateMask
public com.google.protobuf.FieldMask getUpdateMask()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
- Specified by:
getUpdateMask
in interfaceUpdateProductRequestOrBuilder
- Returns:
- The updateMask.
-
setUpdateMask
public UpdateProductRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
-
setUpdateMask
public UpdateProductRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
-
mergeUpdateMask
public UpdateProductRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
-
clearUpdateMask
public UpdateProductRequest.Builder clearUpdateMask()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
-
getUpdateMaskBuilder
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
-
getUpdateMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
Indicates which fields in the provided [Product][google.cloud.retail.v2alpha.Product] to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.
.google.protobuf.FieldMask update_mask = 2;
- Specified by:
getUpdateMaskOrBuilder
in interfaceUpdateProductRequestOrBuilder
-
getAllowMissing
public boolean getAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created. In this situation, `update_mask` is ignored.
bool allow_missing = 3;
- Specified by:
getAllowMissing
in interfaceUpdateProductRequestOrBuilder
- Returns:
- The allowMissing.
-
setAllowMissing
public UpdateProductRequest.Builder setAllowMissing(boolean value)
If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created. In this situation, `update_mask` is ignored.
bool allow_missing = 3;
- Parameters:
value
- The allowMissing to set.- Returns:
- This builder for chaining.
-
clearAllowMissing
public UpdateProductRequest.Builder clearAllowMissing()
If set to true, and the [Product][google.cloud.retail.v2alpha.Product] is not found, a new [Product][google.cloud.retail.v2alpha.Product] will be created. In this situation, `update_mask` is ignored.
bool allow_missing = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final UpdateProductRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
mergeUnknownFields
public final UpdateProductRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>
-
-