public static final class ResultSetMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder> implements ResultSetMetadataOrBuilder
Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].Protobuf type
google.spanner.v1.ResultSetMetadata| Modifier and Type | Method and Description |
|---|---|
ResultSetMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResultSetMetadata |
build() |
ResultSetMetadata |
buildPartial() |
ResultSetMetadata.Builder |
clear() |
ResultSetMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ResultSetMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ResultSetMetadata.Builder |
clearRowType()
Indicates the field names and types for the rows in the result
set.
|
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.
|
ResultSetMetadata.Builder |
clone() |
ResultSetMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
StructType |
getRowType()
Indicates the field names and types for the rows in the result
set.
|
StructType.Builder |
getRowTypeBuilder()
Indicates the field names and types for the rows in the result
set.
|
StructTypeOrBuilder |
getRowTypeOrBuilder()
Indicates the field names and types for the rows in the result
set.
|
Transaction |
getTransaction()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
Transaction.Builder |
getTransactionBuilder()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
TransactionOrBuilder |
getTransactionOrBuilder()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
boolean |
hasRowType()
Indicates the field names and types for the rows in the result
set.
|
boolean |
hasTransaction()
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResultSetMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ResultSetMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
ResultSetMetadata.Builder |
mergeFrom(ResultSetMetadata other) |
ResultSetMetadata.Builder |
mergeRowType(StructType value)
Indicates the field names and types for the rows in the result
set.
|
ResultSetMetadata.Builder |
mergeTransaction(Transaction value)
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
ResultSetMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ResultSetMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResultSetMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ResultSetMetadata.Builder |
setRowType(StructType.Builder builderForValue)
Indicates the field names and types for the rows in the result
set.
|
ResultSetMetadata.Builder |
setRowType(StructType value)
Indicates the field names and types for the rows in the result
set.
|
ResultSetMetadata.Builder |
setTransaction(Transaction.Builder builderForValue)
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
ResultSetMetadata.Builder |
setTransaction(Transaction value)
If the read or SQL query began a transaction as a side-effect, the
information about the new transaction is yielded here.
|
ResultSetMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ResultSetMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ResultSetMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ResultSetMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder mergeFrom(ResultSetMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public ResultSetMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ResultSetMetadata.Builder>IOExceptionpublic boolean hasRowType()
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;hasRowType in interface ResultSetMetadataOrBuilderpublic 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;getRowType in interface ResultSetMetadataOrBuilderpublic ResultSetMetadata.Builder setRowType(StructType value)
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;public ResultSetMetadata.Builder setRowType(StructType.Builder builderForValue)
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;public ResultSetMetadata.Builder mergeRowType(StructType value)
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;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;public StructType.Builder getRowTypeBuilder()
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;public StructTypeOrBuilder getRowTypeOrBuilder()
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;getRowTypeOrBuilder in interface ResultSetMetadataOrBuilderpublic boolean hasTransaction()
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;hasTransaction in interface ResultSetMetadataOrBuilderpublic Transaction getTransaction()
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;getTransaction in interface ResultSetMetadataOrBuilderpublic ResultSetMetadata.Builder setTransaction(Transaction value)
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;public ResultSetMetadata.Builder setTransaction(Transaction.Builder builderForValue)
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;public ResultSetMetadata.Builder mergeTransaction(Transaction value)
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;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;public Transaction.Builder getTransactionBuilder()
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;public TransactionOrBuilder getTransactionOrBuilder()
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;getTransactionOrBuilder in interface ResultSetMetadataOrBuilderpublic final ResultSetMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>public final ResultSetMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ResultSetMetadata.Builder>Copyright © 2020 Google LLC. All rights reserved.