Class UpdateProductSetRequest.Builder (3.14.0)

public static final class UpdateProductSetRequest.Builder extends GeneratedMessageV3.Builder<UpdateProductSetRequest.Builder> implements UpdateProductSetRequestOrBuilder

Request message for the UpdateProductSet method.

Protobuf type google.cloud.vision.v1.UpdateProductSetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateProductSetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

build()

public UpdateProductSetRequest build()
Returns
TypeDescription
UpdateProductSetRequest

buildPartial()

public UpdateProductSetRequest buildPartial()
Returns
TypeDescription
UpdateProductSetRequest

clear()

public UpdateProductSetRequest.Builder clear()
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateProductSetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateProductSetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

clearProductSet()

public UpdateProductSetRequest.Builder clearProductSet()

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateProductSetRequest.Builder

clearUpdateMask()

public UpdateProductSetRequest.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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
UpdateProductSetRequest.Builder

clone()

public UpdateProductSetRequest.Builder clone()
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateProductSetRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateProductSetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProductSet()

public ProductSet getProductSet()

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductSet

The productSet.

getProductSetBuilder()

public ProductSet.Builder getProductSetBuilder()

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductSet.Builder

getProductSetOrBuilder()

public ProductSetOrBuilder getProductSetOrBuilder()

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductSetOrBuilder

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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
FieldMaskOrBuilder

hasProductSet()

public boolean hasProductSet()

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the productSet 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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateProductSetRequest other)

public UpdateProductSetRequest.Builder mergeFrom(UpdateProductSetRequest other)
Parameter
NameDescription
otherUpdateProductSetRequest
Returns
TypeDescription
UpdateProductSetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateProductSetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateProductSetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

mergeProductSet(ProductSet value)

public UpdateProductSetRequest.Builder mergeProductSet(ProductSet value)

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProductSet
Returns
TypeDescription
UpdateProductSetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProductSetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateProductSetRequest.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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateProductSetRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateProductSetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

setProductSet(ProductSet value)

public UpdateProductSetRequest.Builder setProductSet(ProductSet value)

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProductSet
Returns
TypeDescription
UpdateProductSetRequest.Builder

setProductSet(ProductSet.Builder builderForValue)

public UpdateProductSetRequest.Builder setProductSet(ProductSet.Builder builderForValue)

Required. The ProductSet resource which replaces the one on the server.

.google.cloud.vision.v1.ProductSet product_set = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueProductSet.Builder
Returns
TypeDescription
UpdateProductSetRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateProductSetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateProductSetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateProductSetRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateProductSetRequest.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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateProductSetRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateProductSetRequest.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 path is display_name.

.google.protobuf.FieldMask update_mask = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateProductSetRequest.Builder