publicfinalclass EntityextendsGeneratedMessageV3implementsEntityOrBuilder
A Datastore data object.
Must not exceed 1 MiB - 4 bytes.
Protobuf type google.datastore.v1.Entity
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
KEY_FIELD_NUMBER
publicstaticfinalintKEY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PROPERTIES_FIELD_NUMBER
publicstaticfinalintPROPERTIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticEntitygetDefaultInstance()
| Returns |
| Type |
Description |
Entity |
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticEntity.BuildernewBuilder()
newBuilder(Entity prototype)
publicstaticEntity.BuildernewBuilder(Entityprototype)
| Parameter |
| Name |
Description |
prototype |
Entity
|
publicstaticEntityparseDelimitedFrom(InputStreaminput)
| Returns |
| Type |
Description |
Entity |
publicstaticEntityparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Entity |
parseFrom(byte[] data)
publicstaticEntityparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Entity |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticEntityparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Entity |
parseFrom(ByteString data)
publicstaticEntityparseFrom(ByteStringdata)
| Returns |
| Type |
Description |
Entity |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticEntityparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Entity |
publicstaticEntityparseFrom(CodedInputStreaminput)
| Returns |
| Type |
Description |
Entity |
publicstaticEntityparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Entity |
publicstaticEntityparseFrom(InputStreaminput)
| Returns |
| Type |
Description |
Entity |
publicstaticEntityparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Entity |
parseFrom(ByteBuffer data)
publicstaticEntityparseFrom(ByteBufferdata)
| Returns |
| Type |
Description |
Entity |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticEntityparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
| Returns |
| Type |
Description |
Entity |
parser()
publicstaticParser<Entity>parser()
Methods
containsProperties(String key)
publicbooleancontainsProperties(Stringkey)
The entity's properties.
The map's keys are property names.
A property name matching regex .* is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
map<string, .google.datastore.v1.Value> properties = 3;
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicEntitygetDefaultInstanceForType()
| Returns |
| Type |
Description |
Entity |
getKey()
The entity's key.
An entity must have a key, unless otherwise documented (for example,
an entity in Value.entity_value may have no key).
An entity's kind is its key path's last element's kind,
or null if it has no key.
.google.datastore.v1.Key key = 1;
| Returns |
| Type |
Description |
Key |
The key.
|
getKeyOrBuilder()
publicKeyOrBuildergetKeyOrBuilder()
The entity's key.
An entity must have a key, unless otherwise documented (for example,
an entity in Value.entity_value may have no key).
An entity's kind is its key path's last element's kind,
or null if it has no key.
.google.datastore.v1.Key key = 1;
getParserForType()
publicParser<Entity>getParserForType()
Overrides
getProperties()
publicMap<String,Value>getProperties()
getPropertiesCount()
publicintgetPropertiesCount()
The entity's properties.
The map's keys are property names.
A property name matching regex .* is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
map<string, .google.datastore.v1.Value> properties = 3;
| Returns |
| Type |
Description |
int |
getPropertiesMap()
publicMap<String,Value>getPropertiesMap()
The entity's properties.
The map's keys are property names.
A property name matching regex .* is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
map<string, .google.datastore.v1.Value> properties = 3;
getPropertiesOrDefault(String key, Value defaultValue)
publicValuegetPropertiesOrDefault(Stringkey,ValuedefaultValue)
The entity's properties.
The map's keys are property names.
A property name matching regex .* is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
map<string, .google.datastore.v1.Value> properties = 3;
| Parameters |
| Name |
Description |
key |
String
|
defaultValue |
Value
|
| Returns |
| Type |
Description |
Value |
getPropertiesOrThrow(String key)
publicValuegetPropertiesOrThrow(Stringkey)
The entity's properties.
The map's keys are property names.
A property name matching regex .* is reserved.
A reserved property name is forbidden in certain documented contexts.
The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot
be empty.
map<string, .google.datastore.v1.Value> properties = 3;
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
Value |
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
hasKey()
The entity's key.
An entity must have a key, unless otherwise documented (for example,
an entity in Value.entity_value may have no key).
An entity's kind is its key path's last element's kind,
or null if it has no key.
.google.datastore.v1.Key key = 1;
| Returns |
| Type |
Description |
boolean |
Whether the key field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicEntity.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedEntity.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicEntity.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides