Interface Key.PathElementOrBuilder (3.5.0)

public static interface Key.PathElementOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getId()

public abstract 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;

Returns
TypeDescription
long

The id.

getIdTypeCase()

public abstract Key.PathElement.IdTypeCase getIdTypeCase()
Returns
TypeDescription
Key.PathElement.IdTypeCase

getKind()

public abstract 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;

Returns
TypeDescription
String

The kind.

getKindBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for kind.

getName()

public abstract 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;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for name.

hasId()

public abstract boolean hasId()

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;

Returns
TypeDescription
boolean

Whether the id field is set.

hasName()

public abstract boolean hasName()

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;

Returns
TypeDescription
boolean

Whether the name field is set.