public static final class Key.PathElement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder> implements Key.PathElementOrBuilder
A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.Protobuf type
google.datastore.v1.Key.PathElement| Modifier and Type | Method and Description |
|---|---|
Key.PathElement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Key.PathElement |
build() |
Key.PathElement |
buildPartial() |
Key.PathElement.Builder |
clear() |
Key.PathElement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Key.PathElement.Builder |
clearId()
The auto-allocated ID of the entity.
|
Key.PathElement.Builder |
clearIdType() |
Key.PathElement.Builder |
clearKind()
The kind of the entity.
|
Key.PathElement.Builder |
clearName()
The name of the entity.
|
Key.PathElement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Key.PathElement.Builder |
clone() |
Key.PathElement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getId()
The auto-allocated ID of the entity.
|
Key.PathElement.IdTypeCase |
getIdTypeCase() |
String |
getKind()
The kind of the entity.
|
com.google.protobuf.ByteString |
getKindBytes()
The kind of the entity.
|
String |
getName()
The name of the entity.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the entity.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Key.PathElement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Key.PathElement.Builder |
mergeFrom(Key.PathElement other) |
Key.PathElement.Builder |
mergeFrom(com.google.protobuf.Message other) |
Key.PathElement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Key.PathElement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Key.PathElement.Builder |
setId(long value)
The auto-allocated ID of the entity.
|
Key.PathElement.Builder |
setKind(String value)
The kind of the entity.
|
Key.PathElement.Builder |
setKindBytes(com.google.protobuf.ByteString value)
The kind of the entity.
|
Key.PathElement.Builder |
setName(String value)
The name of the entity.
|
Key.PathElement.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the entity.
|
Key.PathElement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Key.PathElement.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Key.PathElement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Key.PathElement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Key.PathElement.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public Key.PathElement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Key.PathElement.Builder>public Key.PathElement.Builder mergeFrom(Key.PathElement other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public 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<Key.PathElement.Builder>IOExceptionpublic Key.PathElement.IdTypeCase getIdTypeCase()
getIdTypeCase in interface Key.PathElementOrBuilderpublic Key.PathElement.Builder clearIdType()
public String getKind()
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;getKind in interface Key.PathElementOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;getKindBytes in interface Key.PathElementOrBuilderpublic Key.PathElement.Builder setKind(String value)
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;public Key.PathElement.Builder clearKind()
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;public Key.PathElement.Builder setKindBytes(com.google.protobuf.ByteString value)
The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string kind = 1;public long getId()
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;getId in interface Key.PathElementOrBuilderpublic Key.PathElement.Builder setId(long value)
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;public Key.PathElement.Builder clearId()
The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
int64 id = 2;public String getName()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;getName in interface Key.PathElementOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;getNameBytes in interface Key.PathElementOrBuilderpublic Key.PathElement.Builder setName(String value)
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;public Key.PathElement.Builder clearName()
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;public Key.PathElement.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
string name = 3;public final Key.PathElement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>public final Key.PathElement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Key.PathElement.Builder>Copyright © 2018 Google LLC. All rights reserved.