Class MapProperty (0.10.0)

public final class MapProperty extends GeneratedMessageV3 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 Fields

FIELDS_FIELD_NUMBER

public static final int FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MapProperty getDefaultInstance()
Returns
TypeDescription
MapProperty

getDescriptor()

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

newBuilder()

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

newBuilder(MapProperty prototype)

public static MapProperty.Builder newBuilder(MapProperty prototype)
Parameter
NameDescription
prototypeMapProperty
Returns
TypeDescription
MapProperty.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

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

equals(Object obj)

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

getDefaultInstanceForType()

public MapProperty getDefaultInstanceForType()
Returns
TypeDescription
MapProperty

getFields()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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