Modifier and Type | Method and Description |
---|---|
Key.Builder |
append(BigDecimal value)
Appends a
NUMERIC value to the key. |
Key.Builder |
append(Boolean value)
Appends a
BOOL value to the key. |
Key.Builder |
append(com.google.cloud.ByteArray value)
Appends a
BYTES value to the key. |
Key.Builder |
append(com.google.cloud.Date value)
Appends a
DATE value to the key |
Key.Builder |
append(double value)
Appends a
FLOAT64 value to the key. |
Key.Builder |
append(Double value)
Appends a
FLOAT64 value to the key. |
Key.Builder |
append(long value)
Appends an
INT64 value to the key. |
Key.Builder |
append(Long value)
Appends an
INT64 value to the key. |
Key.Builder |
append(String value)
Appends a
STRING value to the key. |
Key.Builder |
append(com.google.cloud.Timestamp value)
Appends a
TIMESTAMP value to the key |
Key.Builder |
appendObject(Object value)
Appends an object following the same conversion rules as
Key.of(Object...) . |
Key |
build() |
public Key.Builder append(@Nullable Boolean value)
BOOL
value to the key.public Key.Builder append(long value)
INT64
value to the key.public Key.Builder append(@Nullable Long value)
INT64
value to the key.public Key.Builder append(double value)
FLOAT64
value to the key.public Key.Builder append(@Nullable Double value)
FLOAT64
value to the key.public Key.Builder append(@Nullable BigDecimal value)
NUMERIC
value to the key.public Key.Builder append(@Nullable String value)
STRING
value to the key.public Key.Builder append(@Nullable com.google.cloud.ByteArray value)
BYTES
value to the key.public Key.Builder append(@Nullable com.google.cloud.Timestamp value)
TIMESTAMP
value to the keypublic Key.Builder append(@Nullable com.google.cloud.Date value)
DATE
value to the keypublic Key.Builder appendObject(@Nullable Object value)
Key.of(Object...)
. When
using the Builder
, most code should prefer using the strongly typed append(...)
methods, for both performance and the benefit of compile-time checking.public Key build()
Copyright © 2022 Google LLC. All rights reserved.