public static final class DatastoreV1.Key.PathElement.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder> implements DatastoreV1.Key.PathElementOrBuilder
api.services.datastore.Key.PathElement
A (kind, ID/name) pair used to construct a key path. At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
Modifier and Type | Method and Description |
---|---|
DatastoreV1.Key.PathElement |
build() |
DatastoreV1.Key.PathElement |
buildPartial() |
DatastoreV1.Key.PathElement.Builder |
clear() |
DatastoreV1.Key.PathElement.Builder |
clearId()
optional int64 id = 2; |
DatastoreV1.Key.PathElement.Builder |
clearKind()
required string kind = 1; |
DatastoreV1.Key.PathElement.Builder |
clearName()
optional string name = 3; |
DatastoreV1.Key.PathElement.Builder |
clone() |
DatastoreV1.Key.PathElement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getId()
optional int64 id = 2; |
String |
getKind()
required string kind = 1; |
com.google.protobuf.ByteString |
getKindBytes()
required string kind = 1; |
String |
getName()
optional string name = 3; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 3; |
boolean |
hasId()
optional int64 id = 2; |
boolean |
hasKind()
required string kind = 1; |
boolean |
hasName()
optional string name = 3; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DatastoreV1.Key.PathElement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DatastoreV1.Key.PathElement.Builder |
mergeFrom(DatastoreV1.Key.PathElement other) |
DatastoreV1.Key.PathElement.Builder |
mergeFrom(com.google.protobuf.Message other) |
DatastoreV1.Key.PathElement.Builder |
setId(long value)
optional int64 id = 2; |
DatastoreV1.Key.PathElement.Builder |
setKind(String value)
required string kind = 1; |
DatastoreV1.Key.PathElement.Builder |
setKindBytes(com.google.protobuf.ByteString value)
required string kind = 1; |
DatastoreV1.Key.PathElement.Builder |
setName(String value)
optional string name = 3; |
DatastoreV1.Key.PathElement.Builder |
setNameBytes(com.google.protobuf.ByteString value)
optional string name = 3; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
addAll, newUninitializedMessageException
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>
public DatastoreV1.Key.PathElement.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>
public DatastoreV1.Key.PathElement.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>
public DatastoreV1.Key.PathElement getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DatastoreV1.Key.PathElement build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DatastoreV1.Key.PathElement buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DatastoreV1.Key.PathElement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DatastoreV1.Key.PathElement.Builder>
public DatastoreV1.Key.PathElement.Builder mergeFrom(DatastoreV1.Key.PathElement other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>
public DatastoreV1.Key.PathElement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DatastoreV1.Key.PathElement.Builder>
IOException
public boolean hasKind()
required string kind = 1;
The kind of the entity. A kind matching regex "__.*__" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
hasKind
in interface DatastoreV1.Key.PathElementOrBuilder
public String getKind()
required string kind = 1;
The kind of the entity. A kind matching regex "__.*__" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
getKind
in interface DatastoreV1.Key.PathElementOrBuilder
public com.google.protobuf.ByteString getKindBytes()
required string kind = 1;
The kind of the entity. A kind matching regex "__.*__" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
getKindBytes
in interface DatastoreV1.Key.PathElementOrBuilder
public DatastoreV1.Key.PathElement.Builder setKind(String value)
required string kind = 1;
The kind of the entity. A kind matching regex "__.*__" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
public DatastoreV1.Key.PathElement.Builder clearKind()
required string kind = 1;
The kind of the entity. A kind matching regex "__.*__" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
public DatastoreV1.Key.PathElement.Builder setKindBytes(com.google.protobuf.ByteString value)
required string kind = 1;
The kind of the entity. A kind matching regex "__.*__" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be "".
public boolean hasId()
optional int64 id = 2;
The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.
hasId
in interface DatastoreV1.Key.PathElementOrBuilder
public long getId()
optional int64 id = 2;
The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.
getId
in interface DatastoreV1.Key.PathElementOrBuilder
public DatastoreV1.Key.PathElement.Builder setId(long value)
optional int64 id = 2;
The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.
public DatastoreV1.Key.PathElement.Builder clearId()
optional int64 id = 2;
The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.
public boolean hasName()
optional string name = 3;
The name of the entity. A name matching regex "__.*__" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
hasName
in interface DatastoreV1.Key.PathElementOrBuilder
public String getName()
optional string name = 3;
The name of the entity. A name matching regex "__.*__" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
getName
in interface DatastoreV1.Key.PathElementOrBuilder
public com.google.protobuf.ByteString getNameBytes()
optional string name = 3;
The name of the entity. A name matching regex "__.*__" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
getNameBytes
in interface DatastoreV1.Key.PathElementOrBuilder
public DatastoreV1.Key.PathElement.Builder setName(String value)
optional string name = 3;
The name of the entity. A name matching regex "__.*__" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
public DatastoreV1.Key.PathElement.Builder clearName()
optional string name = 3;
The name of the entity. A name matching regex "__.*__" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
public DatastoreV1.Key.PathElement.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 3;
The name of the entity. A name matching regex "__.*__" is reserved/read-only. A name must not be more than 500 characters. Cannot be "".
Copyright © 2013. All Rights Reserved.