Class UpdateOptions.Builder (0.50.0)

public static final class UpdateOptions.Builder extends GeneratedMessageV3.Builder<UpdateOptions.Builder> implements UpdateOptionsOrBuilder

Options for Update operations.

Protobuf type google.cloud.contentwarehouse.v1.UpdateOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateOptions.Builder
Overrides

build()

public UpdateOptions build()
Returns
Type Description
UpdateOptions

buildPartial()

public UpdateOptions buildPartial()
Returns
Type Description
UpdateOptions

clear()

public UpdateOptions.Builder clear()
Returns
Type Description
UpdateOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMergeFieldsOptions()

public UpdateOptions.Builder clearMergeFieldsOptions()

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Returns
Type Description
UpdateOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateOptions.Builder clearUpdateMask()

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateOptions.Builder

clearUpdateType()

public UpdateOptions.Builder clearUpdateType()

Type for update.

.google.cloud.contentwarehouse.v1.UpdateType update_type = 1;

Returns
Type Description
UpdateOptions.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateOptions getDefaultInstanceForType()
Returns
Type Description
UpdateOptions

getDescriptorForType()

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

getMergeFieldsOptions()

public MergeFieldsOptions getMergeFieldsOptions()

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Returns
Type Description
MergeFieldsOptions

The mergeFieldsOptions.

getMergeFieldsOptionsBuilder()

public MergeFieldsOptions.Builder getMergeFieldsOptionsBuilder()

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Returns
Type Description
MergeFieldsOptions.Builder

getMergeFieldsOptionsOrBuilder()

public MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder()

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Returns
Type Description
MergeFieldsOptionsOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

getUpdateType()

public UpdateType getUpdateType()

Type for update.

.google.cloud.contentwarehouse.v1.UpdateType update_type = 1;

Returns
Type Description
UpdateType

The updateType.

getUpdateTypeValue()

public int getUpdateTypeValue()

Type for update.

.google.cloud.contentwarehouse.v1.UpdateType update_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for updateType.

hasMergeFieldsOptions()

public boolean hasMergeFieldsOptions()

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Returns
Type Description
boolean

Whether the mergeFieldsOptions field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.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(UpdateOptions other)

public UpdateOptions.Builder mergeFrom(UpdateOptions other)
Parameter
Name Description
other UpdateOptions
Returns
Type Description
UpdateOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeMergeFieldsOptions(MergeFieldsOptions value)

public UpdateOptions.Builder mergeMergeFieldsOptions(MergeFieldsOptions value)

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Parameter
Name Description
value MergeFieldsOptions
Returns
Type Description
UpdateOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateOptions.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateOptions.Builder mergeUpdateMask(FieldMask value)

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateOptions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateOptions.Builder
Overrides

setMergeFieldsOptions(MergeFieldsOptions value)

public UpdateOptions.Builder setMergeFieldsOptions(MergeFieldsOptions value)

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Parameter
Name Description
value MergeFieldsOptions
Returns
Type Description
UpdateOptions.Builder

setMergeFieldsOptions(MergeFieldsOptions.Builder builderForValue)

public UpdateOptions.Builder setMergeFieldsOptions(MergeFieldsOptions.Builder builderForValue)

Options for merging.

.google.cloud.contentwarehouse.v1.MergeFieldsOptions merge_fields_options = 3;

Parameter
Name Description
builderForValue MergeFieldsOptions.Builder
Returns
Type Description
UpdateOptions.Builder

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

public UpdateOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateOptions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateOptions.Builder setUpdateMask(FieldMask value)

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateOptions.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateOptions.Builder setUpdateMask(FieldMask.Builder builderForValue)

Field mask for merging Document fields. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateOptions.Builder

setUpdateType(UpdateType value)

public UpdateOptions.Builder setUpdateType(UpdateType value)

Type for update.

.google.cloud.contentwarehouse.v1.UpdateType update_type = 1;

Parameter
Name Description
value UpdateType

The updateType to set.

Returns
Type Description
UpdateOptions.Builder

This builder for chaining.

setUpdateTypeValue(int value)

public UpdateOptions.Builder setUpdateTypeValue(int value)

Type for update.

.google.cloud.contentwarehouse.v1.UpdateType update_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for updateType to set.

Returns
Type Description
UpdateOptions.Builder

This builder for chaining.