Class UpdateOptions (0.19.0)

public final class UpdateOptions extends GeneratedMessageV3 implements UpdateOptionsOrBuilder

Options for Update operations.

Protobuf type google.cloud.contentwarehouse.v1.UpdateOptions

Static Fields

MERGE_FIELDS_OPTIONS_FIELD_NUMBER

public static final int MERGE_FIELDS_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TYPE_FIELD_NUMBER

public static final int UPDATE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateOptions getDefaultInstance()
Returns
TypeDescription
UpdateOptions

getDescriptor()

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

newBuilder()

public static UpdateOptions.Builder newBuilder()
Returns
TypeDescription
UpdateOptions.Builder

newBuilder(UpdateOptions prototype)

public static UpdateOptions.Builder newBuilder(UpdateOptions prototype)
Parameter
NameDescription
prototypeUpdateOptions
Returns
TypeDescription
UpdateOptions.Builder

parseDelimitedFrom(InputStream input)

public static UpdateOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UpdateOptions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UpdateOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UpdateOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UpdateOptions> parser()
Returns
TypeDescription
Parser<UpdateOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UpdateOptions getDefaultInstanceForType()
Returns
TypeDescription
UpdateOptions

getMergeFieldsOptions()

public MergeFieldsOptions getMergeFieldsOptions()

Options for merging.

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

Returns
TypeDescription
MergeFieldsOptions

The mergeFieldsOptions.

getMergeFieldsOptionsOrBuilder()

public MergeFieldsOptionsOrBuilder getMergeFieldsOptionsOrBuilder()

Options for merging.

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

Returns
TypeDescription
MergeFieldsOptionsOrBuilder

getParserForType()

public Parser<UpdateOptions> getParserForType()
Returns
TypeDescription
Parser<UpdateOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UpdateOptions.Builder newBuilderForType()
Returns
TypeDescription
UpdateOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UpdateOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UpdateOptions.Builder toBuilder()
Returns
TypeDescription
UpdateOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException