Class UpdateOptions.Builder (0.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateOptions build()
Returns
TypeDescription
UpdateOptions

buildPartial()

public UpdateOptions buildPartial()
Returns
TypeDescription
UpdateOptions

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMergeFieldsOptions()

public UpdateOptions.Builder clearMergeFieldsOptions()

Options for merging.

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

Returns
TypeDescription
UpdateOptions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateOptions.Builder

clearUpdateType()

public UpdateOptions.Builder clearUpdateType()

Type for update.

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

Returns
TypeDescription
UpdateOptions.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UpdateOptions getDefaultInstanceForType()
Returns
TypeDescription
UpdateOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMergeFieldsOptions()

public MergeFieldsOptions getMergeFieldsOptions()

Options for merging.

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

Returns
TypeDescription
MergeFieldsOptions

The mergeFieldsOptions.

getMergeFieldsOptionsBuilder()

public MergeFieldsOptions.Builder getMergeFieldsOptionsBuilder()

Options for merging.

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

Returns
TypeDescription
MergeFieldsOptions.Builder

getMergeFieldsOptionsOrBuilder()

public MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder()

Options for merging.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

getUpdateType()

public UpdateType getUpdateType()

Type for update.

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

Returns
TypeDescription
UpdateType

The updateType.

getUpdateTypeValue()

public int getUpdateTypeValue()

Type for update.

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

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

public UpdateOptions.Builder mergeFrom(UpdateOptions other)
Parameter
NameDescription
otherUpdateOptions
Returns
TypeDescription
UpdateOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMergeFieldsOptions
Returns
TypeDescription
UpdateOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateOptions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMergeFieldsOptions
Returns
TypeDescription
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
NameDescription
builderForValueMergeFieldsOptions.Builder
Returns
TypeDescription
UpdateOptions.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateOptions.Builder

setUpdateType(UpdateType value)

public UpdateOptions.Builder setUpdateType(UpdateType value)

Type for update.

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

Parameter
NameDescription
valueUpdateType

The updateType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
UpdateOptions.Builder

This builder for chaining.