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, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionaddAll, newUninitializedMessageExceptionpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>public DatastoreV1.Key.PathElement.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone 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.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DatastoreV1.Key.PathElement.Builder>public DatastoreV1.Key.PathElement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DatastoreV1.Key.PathElement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DatastoreV1.Key.PathElement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DatastoreV1.Key.PathElement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DatastoreV1.Key.PathElement.Builder>IOExceptionpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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.PathElementOrBuilderpublic 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 © 2015. All rights reserved.