/** * * * <pre> * If the read or SQL query began a transaction as a side-effect, the * information about the new transaction is yielded here. * </pre> * * <code>.google.spanner.v1.Transaction transaction = 2;</code> */ public Builder setTransaction(com.google.spanner.v1.Transaction value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * 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" } }, * ] * </pre> * * <code>.google.spanner.v1.StructType row_type = 1;</code> */ public Builder setRowType(com.google.spanner.v1.StructType value) { if (rowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rowType_ = value; onChanged(); } else { rowTypeBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * If the read or SQL query began a transaction as a side-effect, the * information about the new transaction is yielded here. * </pre> * * <code>.google.spanner.v1.Transaction transaction = 2;</code> */ public com.google.spanner.v1.Transaction.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /**
/** * * * <pre> * 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" } }, * ] * </pre> * * <code>.google.spanner.v1.StructType row_type = 1;</code> */ public Builder mergeRowType(com.google.spanner.v1.StructType value) { if (rowTypeBuilder_ == null) { if (rowType_ != null) { rowType_ = com.google.spanner.v1.StructType.newBuilder(rowType_).mergeFrom(value).buildPartial(); } else { rowType_ = value; } onChanged(); } else { rowTypeBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * If the read or SQL query began a transaction as a side-effect, the * information about the new transaction is yielded here. * </pre> * * <code>.google.spanner.v1.Transaction transaction = 2;</code> */ public Builder mergeTransaction(com.google.spanner.v1.Transaction value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = com.google.spanner.v1.Transaction.newBuilder(transaction_) .mergeFrom(value) .buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * 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" } }, * ] * </pre> * * <code>.google.spanner.v1.StructType row_type = 1;</code> */ public Builder clearRowType() { if (rowTypeBuilder_ == null) { rowType_ = null; onChanged(); } else { rowType_ = null; rowTypeBuilder_ = null; } return this; } /**
/** * * * <pre> * If the read or SQL query began a transaction as a side-effect, the * information about the new transaction is yielded here. * </pre> * * <code>.google.spanner.v1.Transaction transaction = 2;</code> */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /**
/** * * * <pre> * 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" } }, * ] * </pre> * * <code>.google.spanner.v1.StructType row_type = 1;</code> */ public Builder setRowType(com.google.spanner.v1.StructType.Builder builderForValue) { if (rowTypeBuilder_ == null) { rowType_ = builderForValue.build(); onChanged(); } else { rowTypeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * 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" } }, * ] * </pre> * * <code>.google.spanner.v1.StructType row_type = 1;</code> */ public com.google.spanner.v1.StructType.Builder getRowTypeBuilder() { onChanged(); return getRowTypeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * If the read or SQL query began a transaction as a side-effect, the * information about the new transaction is yielded here. * </pre> * * <code>.google.spanner.v1.Transaction transaction = 2;</code> */ public Builder setTransaction(com.google.spanner.v1.Transaction.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom(com.google.spanner.v1.ResultSetMetadata other) { if (other == com.google.spanner.v1.ResultSetMetadata.getDefaultInstance()) return this; if (other.hasRowType()) { mergeRowType(other.getRowType()); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }