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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MapPropertyImplements
MapPropertyOrBuilderStatic Fields
FIELDS_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MapProperty getDefaultInstance()
Returns | |
---|---|
Type | Description |
MapProperty |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static MapProperty.Builder newBuilder()
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
newBuilder(MapProperty prototype)
public static MapProperty.Builder newBuilder(MapProperty prototype)
Parameter | |
---|---|
Name | Description |
prototype | MapProperty |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
parseDelimitedFrom(InputStream input)
public static MapProperty parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MapProperty parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static MapProperty parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MapProperty parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MapProperty parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MapProperty parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MapProperty parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MapProperty parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static MapProperty parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MapProperty parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MapProperty parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MapProperty parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MapProperty |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MapProperty> parser()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public MapProperty getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MapProperty |
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 |
getParserForType()
public Parser<MapProperty> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<MapProperty> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns | |
---|---|
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public MapProperty.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MapProperty.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public MapProperty.Builder toBuilder()
Returns | |
---|---|
Type | Description |
MapProperty.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |