public static final class ResultSetMetadata.Builder extends GeneratedMessageV3.Builder<ResultSetMetadata.Builder> implements ResultSetMetadataOrBuilder
Metadata about a ResultSet or PartialResultSet.
Protobuf type google.spanner.v1.ResultSetMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ResultSetMetadata.BuilderImplements
ResultSetMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResultSetMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
build()
public ResultSetMetadata build()
Returns | |
---|---|
Type | Description |
ResultSetMetadata |
buildPartial()
public ResultSetMetadata buildPartial()
Returns | |
---|---|
Type | Description |
ResultSetMetadata |
clear()
public ResultSetMetadata.Builder clear()
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public ResultSetMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ResultSetMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
clearRowType()
public ResultSetMetadata.Builder clearRowType()
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
.google.spanner.v1.StructType row_type = 1;
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
clearTransaction()
public ResultSetMetadata.Builder clearTransaction()
If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
.google.spanner.v1.Transaction transaction = 2;
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
clearUndeclaredParameters()
public ResultSetMetadata.Builder clearUndeclaredParameters()
A SQL query can be parameterized. In PLAN mode, these parameters can be
undeclared. This indicates the field names and types for those undeclared
parameters in the SQL query. For example, a SQL query like "SELECT * FROM
Users where UserId = @userId and UserName = @userName "
could return a
undeclared_parameters
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
.google.spanner.v1.StructType undeclared_parameters = 3;
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
clone()
public ResultSetMetadata.Builder clone()
Returns | |
---|---|
Type | Description |
ResultSetMetadata.Builder |
getDefaultInstanceForType()
public ResultSetMetadata getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ResultSetMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getRowType()
public StructType getRowType()
Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
]
.google.spanner.v1.StructType row_type = 1;