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 type
google.cloud.retail.v2alpha.UpdateProductRequest| Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UpdateProductRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
UpdateProductRequest.Builder |
mergeFrom(UpdateProductRequest 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.Builder builderForValue)
Required.
|
UpdateProductRequest.Builder |
setProduct(Product value)
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.Builder builderForValue)
Indicates which fields in the provided
[Product][google.cloud.retail.v2alpha.Product] to update.
|
UpdateProductRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask value)
Indicates which fields in the provided
[Product][google.cloud.retail.v2alpha.Product] to update.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UpdateProductRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UpdateProductRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UpdateProductRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder mergeFrom(UpdateProductRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public UpdateProductRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpdateProductRequest.Builder>IOExceptionpublic 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];
hasProduct in interface UpdateProductRequestOrBuilderpublic 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];
getProduct in interface UpdateProductRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
getProductOrBuilder in interface UpdateProductRequestOrBuilderpublic 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;hasUpdateMask in interface UpdateProductRequestOrBuilderpublic 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;getUpdateMask in interface UpdateProductRequestOrBuilderpublic 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;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;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;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;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;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;getUpdateMaskOrBuilder in interface UpdateProductRequestOrBuilderpublic 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;getAllowMissing in interface UpdateProductRequestOrBuilderpublic 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;value - The allowMissing to set.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;public final UpdateProductRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>public final UpdateProductRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateProductRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.