Interface Key.PathElementOrBuilder (2.33.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticinterface Key.PathElementOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getId()
publicabstractlonggetId()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 | |
|---|---|
| Type | Description |
long |
The id. |
getIdTypeCase()
publicabstractKey.PathElement.IdTypeCasegetIdTypeCase()| Returns | |
|---|---|
| Type | Description |
Key.PathElement.IdTypeCase |
|
getKind()
publicabstractStringgetKind()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 "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
publicabstractByteStringgetKindBytes()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 "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
string kind = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getName()
publicabstractStringgetName()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 "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicabstractByteStringgetNameBytes()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 "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasId()
publicabstractbooleanhasId()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 | |
|---|---|
| Type | Description |
boolean |
Whether the id field is set. |
hasName()
publicabstractbooleanhasName()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 "".
Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are
encoded as bytes<X> where <X> is the base-64 encoding of the
bytes.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the name field is set. |