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, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<DatastoreV1.Value> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic boolean hasBooleanValue()
optional bool boolean_value = 1;
A boolean value.
hasBooleanValue in interface DatastoreV1.ValueOrBuilderpublic boolean getBooleanValue()
optional bool boolean_value = 1;
A boolean value.
getBooleanValue in interface DatastoreV1.ValueOrBuilderpublic boolean hasIntegerValue()
optional int64 integer_value = 2;
An integer value.
hasIntegerValue in interface DatastoreV1.ValueOrBuilderpublic long getIntegerValue()
optional int64 integer_value = 2;
An integer value.
getIntegerValue in interface DatastoreV1.ValueOrBuilderpublic boolean hasDoubleValue()
optional double double_value = 3;
A double value.
hasDoubleValue in interface DatastoreV1.ValueOrBuilderpublic double getDoubleValue()
optional double double_value = 3;
A double value.
getDoubleValue in interface DatastoreV1.ValueOrBuilderpublic boolean hasTimestampMicrosecondsValue()
optional int64 timestamp_microseconds_value = 4;
A timestamp value.
hasTimestampMicrosecondsValue in interface DatastoreV1.ValueOrBuilderpublic long getTimestampMicrosecondsValue()
optional int64 timestamp_microseconds_value = 4;
A timestamp value.
getTimestampMicrosecondsValue in interface DatastoreV1.ValueOrBuilderpublic boolean hasKeyValue()
optional .api.services.datastore.Key key_value = 5;
A key value.
hasKeyValue in interface DatastoreV1.ValueOrBuilderpublic DatastoreV1.Key getKeyValue()
optional .api.services.datastore.Key key_value = 5;
A key value.
getKeyValue in interface DatastoreV1.ValueOrBuilderpublic DatastoreV1.KeyOrBuilder getKeyValueOrBuilder()
optional .api.services.datastore.Key key_value = 5;
A key value.
getKeyValueOrBuilder in interface DatastoreV1.ValueOrBuilderpublic boolean hasBlobKeyValue()
optional string blob_key_value = 16;
A blob key value.
hasBlobKeyValue in interface DatastoreV1.ValueOrBuilderpublic String getBlobKeyValue()
optional string blob_key_value = 16;
A blob key value.
getBlobKeyValue in interface DatastoreV1.ValueOrBuilderpublic com.google.protobuf.ByteString getBlobKeyValueBytes()
optional string blob_key_value = 16;
A blob key value.
getBlobKeyValueBytes in interface DatastoreV1.ValueOrBuilderpublic boolean hasStringValue()
optional string string_value = 17;
A UTF-8 encoded string value. When indexed is true, may have at most 500 characters. (But see exception below.)
hasStringValue in interface DatastoreV1.ValueOrBuilderpublic String getStringValue()
optional string string_value = 17;
A UTF-8 encoded string value. When indexed is true, may have at most 500 characters. (But see exception below.)
getStringValue in interface DatastoreV1.ValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
optional string string_value = 17;
A UTF-8 encoded string value. When indexed is true, may have at most 500 characters. (But see exception below.)
getStringValueBytes in interface DatastoreV1.ValueOrBuilderpublic boolean hasBlobValue()
optional bytes blob_value = 18;
A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.
hasBlobValue in interface DatastoreV1.ValueOrBuilderpublic com.google.protobuf.ByteString getBlobValue()
optional bytes blob_value = 18;
A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.
getBlobValue in interface DatastoreV1.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic 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.ValueOrBuilderpublic List<DatastoreV1.Value> getListValueList()
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
getListValueList in interface DatastoreV1.ValueOrBuilderpublic List<? extends DatastoreV1.ValueOrBuilder> getListValueOrBuilderList()
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
getListValueOrBuilderList in interface DatastoreV1.ValueOrBuilderpublic int getListValueCount()
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
getListValueCount in interface DatastoreV1.ValueOrBuilderpublic DatastoreV1.Value getListValue(int index)
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
getListValue in interface DatastoreV1.ValueOrBuilderpublic DatastoreV1.ValueOrBuilder getListValueOrBuilder(int index)
repeated .api.services.datastore.Value list_value = 7;
A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.
getListValueOrBuilder in interface DatastoreV1.ValueOrBuilderpublic boolean hasMeaning()
optional int32 meaning = 14;
The <code>meaning</code> field is reserved and should not be used.
hasMeaning in interface DatastoreV1.ValueOrBuilderpublic int getMeaning()
optional int32 meaning = 14;
The <code>meaning</code> field is reserved and should not be used.
getMeaning in interface DatastoreV1.ValueOrBuilderpublic 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 2083 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.ValueOrBuilderpublic 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 2083 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.ValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static DatastoreV1.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DatastoreV1.Value parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DatastoreV1.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DatastoreV1.Value parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DatastoreV1.Value parseFrom(InputStream input) throws IOException
IOExceptionpublic static DatastoreV1.Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DatastoreV1.Value parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DatastoreV1.Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DatastoreV1.Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DatastoreV1.Value parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DatastoreV1.Value.Builder newBuilder()
public DatastoreV1.Value.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DatastoreV1.Value.Builder newBuilder(DatastoreV1.Value prototype)
public DatastoreV1.Value.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DatastoreV1.Value.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2015. All rights reserved.