- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.4.0
- 2.3.0
- 2.2.3
- 2.1.0
- 2.0.19
public static final class UpdateProductRequest.Builder extends GeneratedMessageV3.Builder<UpdateProductRequest.Builder> implements UpdateProductRequestOrBuilder
Request message for ProductService.UpdateProduct method.
Protobuf type google.cloud.retail.v2alpha.UpdateProductRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UpdateProductRequest.BuilderImplements
UpdateProductRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateProductRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
build()
public UpdateProductRequest build()
Returns | |
---|---|
Type | Description |
UpdateProductRequest |
buildPartial()
public UpdateProductRequest buildPartial()
Returns | |
---|---|
Type | Description |
UpdateProductRequest |
clear()
public UpdateProductRequest.Builder clear()
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
clearAllowMissing()
public UpdateProductRequest.Builder clearAllowMissing()
If set to true, and the Product is
not found, a new Product will be
created. In this situation, update_mask
is ignored.
bool allow_missing = 3;
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public UpdateProductRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateProductRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
clearProduct()
public UpdateProductRequest.Builder clearProduct()
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
clearUpdateMask()
public UpdateProductRequest.Builder clearUpdateMask()
Indicates which fields in the provided 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;
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
clone()
public UpdateProductRequest.Builder clone()
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
getAllowMissing()
public boolean getAllowMissing()
If set to true, and the Product is
not found, a new Product will be
created. In this situation, update_mask
is ignored.
bool allow_missing = 3;
Returns | |
---|---|
Type | Description |
boolean |
The allowMissing. |
getDefaultInstanceForType()
public UpdateProductRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UpdateProductRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getProduct()
public Product getProduct()
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Product |
The product. |
getProductBuilder()
public Product.Builder getProductBuilder()
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Product.Builder |
getProductOrBuilder()
public ProductOrBuilder getProductOrBuilder()
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ProductOrBuilder |
getUpdateMask()
public FieldMask getUpdateMask()
Indicates which fields in the provided 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;
Returns | |
---|---|
Type | Description |
FieldMask |
The updateMask. |
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
Indicates which fields in the provided 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;
Returns | |
---|---|
Type | Description |
Builder |
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Indicates which fields in the provided 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;
Returns | |
---|---|
Type | Description |
FieldMaskOrBuilder |
hasProduct()
public boolean hasProduct()
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the product field is set. |
hasUpdateMask()
public boolean hasUpdateMask()
Indicates which fields in the provided 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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(UpdateProductRequest other)
public UpdateProductRequest.Builder mergeFrom(UpdateProductRequest other)
Parameter | |
---|---|
Name | Description |
other |
UpdateProductRequest |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UpdateProductRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UpdateProductRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
mergeProduct(Product value)
public UpdateProductRequest.Builder mergeProduct(Product value)
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Product |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateProductRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
mergeUpdateMask(FieldMask value)
public UpdateProductRequest.Builder mergeUpdateMask(FieldMask value)
Indicates which fields in the provided 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;
Parameter | |
---|---|
Name | Description |
value |
FieldMask |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setAllowMissing(boolean value)
public UpdateProductRequest.Builder setAllowMissing(boolean value)
If set to true, and the Product is
not found, a new Product will be
created. In this situation, update_mask
is ignored.
bool allow_missing = 3;
Parameter | |
---|---|
Name | Description |
value |
boolean The allowMissing to set. |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateProductRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setProduct(Product value)
public UpdateProductRequest.Builder setProduct(Product value)
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Product |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setProduct(Product.Builder builderForValue)
public UpdateProductRequest.Builder setProduct(Product.Builder builderForValue)
Required. The product to update/create.
If the caller does not have permission to update the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Product to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Product.Builder |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateProductRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateProductRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setUpdateMask(FieldMask value)
public UpdateProductRequest.Builder setUpdateMask(FieldMask value)
Indicates which fields in the provided 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;
Parameter | |
---|---|
Name | Description |
value |
FieldMask |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateProductRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
Indicates which fields in the provided 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;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
UpdateProductRequest.Builder |