Class MapProperty.Builder (0.33.0)

public static final class MapProperty.Builder extends GeneratedMessageV3.Builder<MapProperty.Builder> implements MapPropertyOrBuilder

Map property value. Represents a structured entries of key value pairs, consisting of field names which map to dynamically typed values.

Protobuf type google.cloud.contentwarehouse.v1.MapProperty

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MapProperty build()
Returns
TypeDescription
MapProperty

buildPartial()

public MapProperty buildPartial()
Returns
TypeDescription
MapProperty

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFields()

public MapProperty.Builder clearFields()
Returns
TypeDescription
MapProperty.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

containsFields(String key)

public boolean containsFields(String key)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public MapProperty getDefaultInstanceForType()
Returns
TypeDescription
MapProperty

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFields() (deprecated)

public Map<String,Value> getFields()

Use #getFieldsMap() instead.

Returns
TypeDescription
Map<String,Value>

getFieldsCount()

public int getFieldsCount()

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Returns
TypeDescription
int

getFieldsMap()

public Map<String,Value> getFieldsMap()

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Returns
TypeDescription
Map<String,Value>

getFieldsOrDefault(String key, Value defaultValue)

public Value getFieldsOrDefault(String key, Value defaultValue)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameters
NameDescription
keyString
defaultValueValue
Returns
TypeDescription
Value

getFieldsOrThrow(String key)

public Value getFieldsOrThrow(String key)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
Value

getMutableFields() (deprecated)

public Map<String,Value> getMutableFields()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,Value>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MapProperty other)

public MapProperty.Builder mergeFrom(MapProperty other)
Parameter
NameDescription
otherMapProperty
Returns
TypeDescription
MapProperty.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllFields(Map<String,Value> values)

public MapProperty.Builder putAllFields(Map<String,Value> values)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameter
NameDescription
valuesMap<String,Value>
Returns
TypeDescription
MapProperty.Builder

putFields(String key, Value value)

public MapProperty.Builder putFields(String key, Value value)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameters
NameDescription
keyString
valueValue
Returns
TypeDescription
MapProperty.Builder

putFieldsBuilderIfAbsent(String key)

public Value.Builder putFieldsBuilderIfAbsent(String key)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
Value.Builder

removeFields(String key)

public MapProperty.Builder removeFields(String key)

Unordered map of dynamically typed values.

map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
MapProperty.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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