Class UpdateProductRequest.Builder (3.41.0)

public static final class UpdateProductRequest.Builder extends GeneratedMessageV3.Builder<UpdateProductRequest.Builder> implements UpdateProductRequestOrBuilder

Request message for the UpdateProduct method.

Protobuf type google.cloud.vision.v1.UpdateProductRequest

Static 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
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateProductRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateProductRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateProductRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateProductRequest.Builder
Overrides

clearProduct()

public UpdateProductRequest.Builder clearProduct()

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateProductRequest.Builder

clearUpdateMask()

public UpdateProductRequest.Builder clearUpdateMask()

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateProductRequest.Builder

clone()

public UpdateProductRequest.Builder clone()
Returns
Type Description
UpdateProductRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateProductRequest getDefaultInstanceForType()
Returns
Type Description
UpdateProductRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProduct()

public Product getProduct()

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Product

The product.

getProductBuilder()

public Product.Builder getProductBuilder()

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Product.Builder

getProductOrBuilder()

public ProductOrBuilder getProductOrBuilder()

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasProduct()

public boolean hasProduct()

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the product field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateProductRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateProductRequest.Builder
Overrides

mergeProduct(Product value)

public UpdateProductRequest.Builder mergeProduct(Product value)

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.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
Overrides

mergeUpdateMask(FieldMask value)

public UpdateProductRequest.Builder mergeUpdateMask(FieldMask value)

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateProductRequest.Builder

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
Overrides

setProduct(Product value)

public UpdateProductRequest.Builder setProduct(Product value)

Required. The Product resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.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 resource which replaces the one on the server. product.name is immutable.

.google.cloud.vision.v1.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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProductRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateProductRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateProductRequest.Builder setUpdateMask(FieldMask value)

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.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)

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateProductRequest.Builder