Class DataUpdateAction.Builder (0.17.0)

public static final class DataUpdateAction.Builder extends GeneratedMessageV3.Builder<DataUpdateAction.Builder> implements DataUpdateActionOrBuilder

Represents the action responsible for properties update operations.

Protobuf type google.cloud.contentwarehouse.v1.DataUpdateAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataUpdateAction build()
Returns
TypeDescription
DataUpdateAction

buildPartial()

public DataUpdateAction buildPartial()
Returns
TypeDescription
DataUpdateAction

clear()

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

clearEntries()

public DataUpdateAction.Builder clearEntries()
Returns
TypeDescription
DataUpdateAction.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsEntries(String key)

public boolean containsEntries(String key)

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public DataUpdateAction getDefaultInstanceForType()
Returns
TypeDescription
DataUpdateAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntries()

public Map<String,String> getEntries()

Use #getEntriesMap() instead.

Returns
TypeDescription
Map<String,String>

getEntriesCount()

public int getEntriesCount()

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Returns
TypeDescription
int

getEntriesMap()

public Map<String,String> getEntriesMap()

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Returns
TypeDescription
Map<String,String>

getEntriesOrDefault(String key, String defaultValue)

public String getEntriesOrDefault(String key, String defaultValue)

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getEntriesOrThrow(String key)

public String getEntriesOrThrow(String key)

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableEntries()

public Map<String,String> getMutableEntries()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataUpdateAction other)

public DataUpdateAction.Builder mergeFrom(DataUpdateAction other)
Parameter
NameDescription
otherDataUpdateAction
Returns
TypeDescription
DataUpdateAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllEntries(Map<String,String> values)

public DataUpdateAction.Builder putAllEntries(Map<String,String> values)

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
DataUpdateAction.Builder

putEntries(String key, String value)

public DataUpdateAction.Builder putEntries(String key, String value)

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
DataUpdateAction.Builder

removeEntries(String key)

public DataUpdateAction.Builder removeEntries(String key)

Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.

map<string, string> entries = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
DataUpdateAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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