public static final class DatastoreV1.Value extends com.google.protobuf.GeneratedMessage implements DatastoreV1.ValueOrBuilder
api.services.datastore.Value
A message that can hold any of the supported value types and associated metadata. At most one of the <type>Value fields may be set. If none are set the value is "null".
Modifier and Type | Class and Description |
---|---|
static class |
DatastoreV1.Value.Builder
Protobuf type
api.services.datastore.Value |
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
static int |
BLOB_KEY_VALUE_FIELD_NUMBER |
static int |
BLOB_VALUE_FIELD_NUMBER |
static int |
BOOLEAN_VALUE_FIELD_NUMBER |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
static int |
ENTITY_VALUE_FIELD_NUMBER |
static int |
INDEXED_FIELD_NUMBER |
static int |
INTEGER_VALUE_FIELD_NUMBER |
static int |
KEY_VALUE_FIELD_NUMBER |
static int |
LIST_VALUE_FIELD_NUMBER |
static int |
MEANING_FIELD_NUMBER |
static com.google.protobuf.Parser<DatastoreV1.Value> |
PARSER |
static int |
STRING_VALUE_FIELD_NUMBER |
static int |
TIMESTAMP_MICROSECONDS_VALUE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
String |
getBlobKeyValue()
optional string blob_key_value = 16; |
com.google.protobuf.ByteString |
getBlobKeyValueBytes()
optional string blob_key_value = 16; |
com.google.protobuf.ByteString |
getBlobValue()
optional bytes blob_value = 18; |
boolean |
getBooleanValue()
optional bool boolean_value = 1; |
static DatastoreV1.Value |
getDefaultInstance() |
DatastoreV1.Value |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
optional double double_value = 3; |
DatastoreV1.Entity |
getEntityValue()
optional .api.services.datastore.Entity entity_value = 6; |
DatastoreV1.EntityOrBuilder |
getEntityValueOrBuilder()
optional .api.services.datastore.Entity entity_value = 6; |
boolean |
getIndexed()
optional bool indexed = 15 [default = true]; |
long |
getIntegerValue()
optional int64 integer_value = 2; |
DatastoreV1.Key |
getKeyValue()
optional .api.services.datastore.Key key_value = 5; |
DatastoreV1.KeyOrBuilder |
getKeyValueOrBuilder()
optional .api.services.datastore.Key key_value = 5; |
DatastoreV1.Value |
getListValue(int index)
repeated .api.services.datastore.Value list_value = 7; |
int |
getListValueCount()
repeated .api.services.datastore.Value list_value = 7; |
List<DatastoreV1.Value> |
getListValueList()
repeated .api.services.datastore.Value list_value = 7; |
DatastoreV1.ValueOrBuilder |
getListValueOrBuilder(int index)
repeated .api.services.datastore.Value list_value = 7; |
List<? extends DatastoreV1.ValueOrBuilder> |
getListValueOrBuilderList()
repeated .api.services.datastore.Value list_value = 7; |
int |
getMeaning()
optional int32 meaning = 14; |
com.google.protobuf.Parser<DatastoreV1.Value> |
getParserForType() |
int |
getSerializedSize() |
String |
getStringValue()
optional string string_value = 17; |
com.google.protobuf.ByteString |
getStringValueBytes()
optional string string_value = 17; |
long |
getTimestampMicrosecondsValue()
optional int64 timestamp_microseconds_value = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBlobKeyValue()
optional string blob_key_value = 16; |
boolean |
hasBlobValue()
optional bytes blob_value = 18; |
boolean |
hasBooleanValue()
optional bool boolean_value = 1; |
boolean |
hasDoubleValue()
optional double double_value = 3; |
boolean |
hasEntityValue()
optional .api.services.datastore.Entity entity_value = 6; |
boolean |
hasIndexed()
optional bool indexed = 15 [default = true]; |
boolean |
hasIntegerValue()
optional int64 integer_value = 2; |
boolean |
hasKeyValue()
optional .api.services.datastore.Key key_value = 5; |
boolean |
hasMeaning()
optional int32 meaning = 14; |
boolean |
hasStringValue()
optional string string_value = 17; |
boolean |
hasTimestampMicrosecondsValue()
optional int64 timestamp_microseconds_value = 4; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DatastoreV1.Value.Builder |
newBuilder() |
static DatastoreV1.Value.Builder |
newBuilder(DatastoreV1.Value prototype) |
DatastoreV1.Value.Builder |
newBuilderForType() |
protected DatastoreV1.Value.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static DatastoreV1.Value |
parseDelimitedFrom(InputStream input) |
static DatastoreV1.Value |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DatastoreV1.Value |
parseFrom(byte[] data) |
static DatastoreV1.Value |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DatastoreV1.Value |
parseFrom(com.google.protobuf.ByteString data) |
static DatastoreV1.Value |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DatastoreV1.Value |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DatastoreV1.Value |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DatastoreV1.Value |
parseFrom(InputStream input) |
static DatastoreV1.Value |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DatastoreV1.Value.Builder |
toBuilder() |
protected Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getRepeatedField, getRepeatedFieldCount, hasField, makeExtensionsImmutable, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownField
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static com.google.protobuf.Parser<DatastoreV1.Value> PARSER
public static final int BOOLEAN_VALUE_FIELD_NUMBER
public static final int INTEGER_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
public static final int TIMESTAMP_MICROSECONDS_VALUE_FIELD_NUMBER
public static final int KEY_VALUE_FIELD_NUMBER
public static final int BLOB_KEY_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
public static final int BLOB_VALUE_FIELD_NUMBER
public static final int ENTITY_VALUE_FIELD_NUMBER
public static final int LIST_VALUE_FIELD_NUMBER
public static final int MEANING_FIELD_NUMBER
public static final int INDEXED_FIELD_NUMBER
public static DatastoreV1.Value getDefaultInstance()
public DatastoreV1.Value getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<DatastoreV1.Value> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasBooleanValue()
optional bool boolean_value = 1;
A boolean value.
hasBooleanValue
in interface DatastoreV1.ValueOrBuilder
public boolean getBooleanValue()
optional bool boolean_value = 1;
A boolean value.
getBooleanValue
in interface DatastoreV1.ValueOrBuilder
public boolean hasIntegerValue()
optional int64 integer_value = 2;
An integer value.
hasIntegerValue
in interface DatastoreV1.ValueOrBuilder
public long getIntegerValue()
optional int64 integer_value = 2;
An integer value.
getIntegerValue
in interface DatastoreV1.ValueOrBuilder
public boolean hasDoubleValue()
optional double double_value = 3;
A double value.
hasDoubleValue
in interface DatastoreV1.ValueOrBuilder
public double getDoubleValue()
optional double double_value = 3;
A double value.
getDoubleValue
in interface DatastoreV1.ValueOrBuilder
public boolean hasTimestampMicrosecondsValue()
optional int64 timestamp_microseconds_value = 4;
A timestamp value.
hasTimestampMicrosecondsValue
in interface DatastoreV1.ValueOrBuilder
public long getTimestampMicrosecondsValue()
optional int64 timestamp_microseconds_value = 4;
A timestamp value.
getTimestampMicrosecondsValue
in interface DatastoreV1.ValueOrBuilder
public boolean hasKeyValue()
optional .api.services.datastore.Key key_value = 5;
A key value.
hasKeyValue
in interface DatastoreV1.ValueOrBuilder
public DatastoreV1.Key getKeyValue()
optional .api.services.datastore.Key key_value = 5;
A key value.
getKeyValue
in interface DatastoreV1.ValueOrBuilder
public DatastoreV1.KeyOrBuilder getKeyValueOrBuilder()
optional .api.services.datastore.Key key_value = 5;
A key value.
getKeyValueOrBuilder
in interface DatastoreV1.ValueOrBuilder
public boolean hasBlobKeyValue()
optional string blob_key_value = 16;
A blob key value.
hasBlobKeyValue
in interface DatastoreV1.ValueOrBuilder
public String getBlobKeyValue()
optional string blob_key_value = 16;
A blob key value.
getBlobKeyValue
in interface DatastoreV1.ValueOrBuilder
public com.google.protobuf.ByteString getBlobKeyValueBytes()
optional string blob_key_value = 16;
A blob key value.
getBlobKeyValueBytes
in interface DatastoreV1.ValueOrBuilder
public boolean hasStringValue()
optional string string_value = 17;
A UTF-8 encoded string value.
hasStringValue
in interface DatastoreV1.ValueOrBuilder
public String getStringValue()
optional string string_value = 17;
A UTF-8 encoded string value.
getStringValue
in interface DatastoreV1.ValueOrBuilder
public com.google.protobuf.ByteString getStringValueBytes()
optional string string_value = 17;
A UTF-8 encoded string value.
getStringValueBytes
in interface DatastoreV1.ValueOrBuilder
public boolean hasBlobValue()
optional bytes blob_value = 18;
A blob value.
hasBlobValue
in interface DatastoreV1.ValueOrBuilder
public com.google.protobuf.ByteString getBlobValue()
optional bytes blob_value = 18;
A blob value.
getBlobValue
in interface DatastoreV1.ValueOrBuilder
public boolean hasEntityValue()
optional .api.services.datastore.Entity entity_value = 6;
An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
hasEntityValue
in interface DatastoreV1.ValueOrBuilder
public DatastoreV1.Entity getEntityValue()
optional .api.services.datastore.Entity entity_value = 6;
An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
getEntityValue
in interface DatastoreV1.ValueOrBuilder
public DatastoreV1.EntityOrBuilder getEntityValueOrBuilder()
optional .api.services.datastore.Entity entity_value = 6;
An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
getEntityValueOrBuilder
in interface DatastoreV1.ValueOrBuilder
public List<DatastoreV1.Value> getListValueList()
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. Cannot also have a meaning and indexing set.
getListValueList
in interface DatastoreV1.ValueOrBuilder
public List<? extends DatastoreV1.ValueOrBuilder> getListValueOrBuilderList()
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. Cannot also have a meaning and indexing set.
getListValueOrBuilderList
in interface DatastoreV1.ValueOrBuilder
public int getListValueCount()
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. Cannot also have a meaning and indexing set.
getListValueCount
in interface DatastoreV1.ValueOrBuilder
public DatastoreV1.Value getListValue(int index)
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. Cannot also have a meaning and indexing set.
getListValue
in interface DatastoreV1.ValueOrBuilder
public DatastoreV1.ValueOrBuilder getListValueOrBuilder(int index)
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. Cannot also have a meaning and indexing set.
getListValueOrBuilder
in interface DatastoreV1.ValueOrBuilder
public boolean hasMeaning()
optional int32 meaning = 14;
The <code>meaning</code> field is reserved and should not be used.
hasMeaning
in interface DatastoreV1.ValueOrBuilder
public int getMeaning()
optional int32 meaning = 14;
The <code>meaning</code> field is reserved and should not be used.
getMeaning
in interface DatastoreV1.ValueOrBuilder
public boolean hasIndexed()
optional bool indexed = 15 [default = true];
If the value should be indexed. The <code>indexed</code> property may be set for a <code>null</code> value. When <code>indexed</code> is <code>true</code>, <code>stringValue</code> is limited to 500 characters and the blob value is limited to 500 bytes. Exception: If meaning is set to 2, string_value is limited to 2038 characters regardless of indexed. When indexed is true, meaning 15 and 22 are not allowed, and meaning 16 will be ignored on input (and will never be set on output). Input values by default have <code>indexed</code> set to <code>true</code>; however, you can explicitly set <code>indexed</code> to <code>true</code> if you want. (An output value never has <code>indexed</code> explicitly set to <code>true</code>.) If a value is itself an entity, it cannot have <code>indexed</code> set to <code>true</code>. Exception: An entity value with meaning 9, 20 or 21 may be indexed.
hasIndexed
in interface DatastoreV1.ValueOrBuilder
public boolean getIndexed()
optional bool indexed = 15 [default = true];
If the value should be indexed. The <code>indexed</code> property may be set for a <code>null</code> value. When <code>indexed</code> is <code>true</code>, <code>stringValue</code> is limited to 500 characters and the blob value is limited to 500 bytes. Exception: If meaning is set to 2, string_value is limited to 2038 characters regardless of indexed. When indexed is true, meaning 15 and 22 are not allowed, and meaning 16 will be ignored on input (and will never be set on output). Input values by default have <code>indexed</code> set to <code>true</code>; however, you can explicitly set <code>indexed</code> to <code>true</code> if you want. (An output value never has <code>indexed</code> explicitly set to <code>true</code>.) If a value is itself an entity, it cannot have <code>indexed</code> set to <code>true</code>. Exception: An entity value with meaning 9, 20 or 21 may be indexed.
getIndexed
in interface DatastoreV1.ValueOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static DatastoreV1.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DatastoreV1.Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DatastoreV1.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DatastoreV1.Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DatastoreV1.Value parseFrom(InputStream input) throws IOException
IOException
public static DatastoreV1.Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DatastoreV1.Value parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DatastoreV1.Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DatastoreV1.Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static DatastoreV1.Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DatastoreV1.Value.Builder newBuilder()
public DatastoreV1.Value.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static DatastoreV1.Value.Builder newBuilder(DatastoreV1.Value prototype)
public DatastoreV1.Value.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected DatastoreV1.Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2013. All Rights Reserved.