- 6.107.0 (latest)
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class KeyRecipe.Builder extends GeneratedMessageV3.Builder<KeyRecipe.Builder> implements KeyRecipeOrBuilder A KeyRecipe provides the metadata required to translate reads, mutations,
and queries into a byte array in "sortable string format" (ssformat)that can
be used with Ranges to route requests. Note that the client must tolerate
KeyRecipes that appear to be invalid, since the KeyRecipe format may
change over time. Requests with invalid KeyRecipes should be routed to a
default server.
Protobuf type google.spanner.v1.KeyRecipe
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > KeyRecipe.BuilderImplements
KeyRecipeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPart(Iterable<? extends KeyRecipe.Part> values)
public KeyRecipe.Builder addAllPart(Iterable<? extends KeyRecipe.Part> values)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.spanner.v1.KeyRecipe.Part> |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
addPart(KeyRecipe.Part value)
public KeyRecipe.Builder addPart(KeyRecipe.Part value)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
KeyRecipe.Part |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
addPart(KeyRecipe.Part.Builder builderForValue)
public KeyRecipe.Builder addPart(KeyRecipe.Part.Builder builderForValue)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
KeyRecipe.Part.Builder |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
addPart(int index, KeyRecipe.Part value)
public KeyRecipe.Builder addPart(int index, KeyRecipe.Part value)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
KeyRecipe.Part |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
addPart(int index, KeyRecipe.Part.Builder builderForValue)
public KeyRecipe.Builder addPart(int index, KeyRecipe.Part.Builder builderForValue)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
KeyRecipe.Part.Builder |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
addPartBuilder()
public KeyRecipe.Part.Builder addPartBuilder()Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Part.Builder |
|
addPartBuilder(int index)
public KeyRecipe.Part.Builder addPartBuilder(int index)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Part.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KeyRecipe.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
build()
public KeyRecipe build()| Returns | |
|---|---|
| Type | Description |
KeyRecipe |
|
buildPartial()
public KeyRecipe buildPartial()| Returns | |
|---|---|
| Type | Description |
KeyRecipe |
|
clear()
public KeyRecipe.Builder clear()| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public KeyRecipe.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
clearIndexName()
public KeyRecipe.Builder clearIndexName()An index name, matching the name from the database schema.
string index_name = 2;
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public KeyRecipe.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
clearOperationUid()
public KeyRecipe.Builder clearOperationUid() The UID of a query, matching the UID from RoutingHint.
uint64 operation_uid = 3;
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
clearPart()
public KeyRecipe.Builder clearPart()Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
clearTableName()
public KeyRecipe.Builder clearTableName()A table name, matching the name from the database schema.
string table_name = 1;
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
clearTarget()
public KeyRecipe.Builder clearTarget()| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
clone()
public KeyRecipe.Builder clone()| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
getDefaultInstanceForType()
public KeyRecipe getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
KeyRecipe |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIndexName()
public String getIndexName()An index name, matching the name from the database schema.
string index_name = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The indexName. |
getIndexNameBytes()
public ByteString getIndexNameBytes()An index name, matching the name from the database schema.
string index_name = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for indexName. |
getOperationUid()
public long getOperationUid() The UID of a query, matching the UID from RoutingHint.
uint64 operation_uid = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The operationUid. |
getPart(int index)
public KeyRecipe.Part getPart(int index)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Part |
|
getPartBuilder(int index)
public KeyRecipe.Part.Builder getPartBuilder(int index)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Part.Builder |
|
getPartBuilderList()
public List<KeyRecipe.Part.Builder> getPartBuilderList()Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getPartCount()
public int getPartCount()Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPartList()
public List<KeyRecipe.Part> getPartList()Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Returns | |
|---|---|
| Type | Description |
List<Part> |
|
getPartOrBuilder(int index)
public KeyRecipe.PartOrBuilder getPartOrBuilder(int index)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.PartOrBuilder |
|
getPartOrBuilderList()
public List<? extends KeyRecipe.PartOrBuilder> getPartOrBuilderList()Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.spanner.v1.KeyRecipe.PartOrBuilder> |
|
getTableName()
public String getTableName()A table name, matching the name from the database schema.
string table_name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The tableName. |
getTableNameBytes()
public ByteString getTableNameBytes()A table name, matching the name from the database schema.
string table_name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tableName. |
getTargetCase()
public KeyRecipe.TargetCase getTargetCase()| Returns | |
|---|---|
| Type | Description |
KeyRecipe.TargetCase |
|
hasIndexName()
public boolean hasIndexName()An index name, matching the name from the database schema.
string index_name = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the indexName field is set. |
hasOperationUid()
public boolean hasOperationUid() The UID of a query, matching the UID from RoutingHint.
uint64 operation_uid = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the operationUid field is set. |
hasTableName()
public boolean hasTableName()A table name, matching the name from the database schema.
string table_name = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the tableName field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public KeyRecipe.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public KeyRecipe.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
mergeFrom(KeyRecipe other)
public KeyRecipe.Builder mergeFrom(KeyRecipe other)| Parameter | |
|---|---|
| Name | Description |
other |
KeyRecipe |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KeyRecipe.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
removePart(int index)
public KeyRecipe.Builder removePart(int index)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public KeyRecipe.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
setIndexName(String value)
public KeyRecipe.Builder setIndexName(String value)An index name, matching the name from the database schema.
string index_name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe indexName to set. |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
setIndexNameBytes(ByteString value)
public KeyRecipe.Builder setIndexNameBytes(ByteString value)An index name, matching the name from the database schema.
string index_name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for indexName to set. |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
setOperationUid(long value)
public KeyRecipe.Builder setOperationUid(long value) The UID of a query, matching the UID from RoutingHint.
uint64 operation_uid = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe operationUid to set. |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
setPart(int index, KeyRecipe.Part value)
public KeyRecipe.Builder setPart(int index, KeyRecipe.Part value)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
KeyRecipe.Part |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
setPart(int index, KeyRecipe.Part.Builder builderForValue)
public KeyRecipe.Builder setPart(int index, KeyRecipe.Part.Builder builderForValue)Parts are in the order they should appear in the encoded key.
repeated .google.spanner.v1.KeyRecipe.Part part = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
KeyRecipe.Part.Builder |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KeyRecipe.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|
setTableName(String value)
public KeyRecipe.Builder setTableName(String value)A table name, matching the name from the database schema.
string table_name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tableName to set. |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
setTableNameBytes(ByteString value)
public KeyRecipe.Builder setTableNameBytes(ByteString value)A table name, matching the name from the database schema.
string table_name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tableName to set. |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final KeyRecipe.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
KeyRecipe.Builder |
|