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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MapProperty.BuilderImplements
MapPropertyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MapProperty.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
build()
public MapProperty build()
Returns | |
---|---|
Type | Description |
MapProperty |
buildPartial()
public MapProperty buildPartial()
Returns | |
---|---|
Type | Description |
MapProperty |
clear()
public MapProperty.Builder clear()
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
clearField(Descriptors.FieldDescriptor field)
public MapProperty.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
clearFields()
public MapProperty.Builder clearFields()
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public MapProperty.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
clone()
public MapProperty.Builder clone()
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
containsFields(String key)
public boolean containsFields(String key)
Unordered map of dynamically typed values.
map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public MapProperty getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MapProperty |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getFields()
public Map<String,Value> getFields()
Use #getFieldsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,Value> |
getFieldsCount()
public int getFieldsCount()
Unordered map of dynamically typed values.
map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;
Returns | |
---|---|
Type | Description |
int |
getFieldsMap()
public Map<String,Value> getFieldsMap()
Unordered map of dynamically typed values.
map<string, .google.cloud.contentwarehouse.v1.Value> fields = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
defaultValue | Value |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Value |
getMutableFields()
public Map<String,Value> getMutableFields()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,Value> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(MapProperty other)
public MapProperty.Builder mergeFrom(MapProperty other)
Parameter | |
---|---|
Name | Description |
other | MapProperty |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MapProperty.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MapProperty.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MapProperty.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
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 | |
---|---|
Name | Description |
values | Map<String,Value> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
value | Value |
Returns | |
---|---|
Type | Description |
MapProperty.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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public MapProperty.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MapProperty.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MapProperty.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |