/** * * * <pre> * The options for the transaction. * Defaults to a read-write transaction. * </pre> * * <code>.google.firestore.v1beta1.TransactionOptions options = 2;</code> */ public Builder setOptions(com.google.firestore.v1beta1.TransactionOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The database name. In the format: * `projects/{project_id}/databases/{database_id}`. * </pre> * * <code>string database = 1;</code> */ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; onChanged(); return this; }
/** * * * <pre> * The database name. In the format: * `projects/{project_id}/databases/{database_id}`. * </pre> * * <code>string database = 1;</code> */ public Builder setDatabase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } database_ = value; onChanged(); return this; } /**
/** * * * <pre> * The options for the transaction. * Defaults to a read-write transaction. * </pre> * * <code>.google.firestore.v1beta1.TransactionOptions options = 2;</code> */ public Builder mergeOptions(com.google.firestore.v1beta1.TransactionOptions value) { if (optionsBuilder_ == null) { if (options_ != null) { options_ = com.google.firestore.v1beta1.TransactionOptions.newBuilder(options_) .mergeFrom(value) .buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The options for the transaction. * Defaults to a read-write transaction. * </pre> * * <code>.google.firestore.v1beta1.TransactionOptions options = 2;</code> */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /**
/** * * * <pre> * The options for the transaction. * Defaults to a read-write transaction. * </pre> * * <code>.google.firestore.v1beta1.TransactionOptions options = 2;</code> */ public Builder setOptions( com.google.firestore.v1beta1.TransactionOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The database name. In the format: * `projects/{project_id}/databases/{database_id}`. * </pre> * * <code>string database = 1;</code> */ public Builder clearDatabase() { database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /**
/** * * * <pre> * The options for the transaction. * Defaults to a read-write transaction. * </pre> * * <code>.google.firestore.v1beta1.TransactionOptions options = 2;</code> */ public com.google.firestore.v1beta1.TransactionOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(com.google.firestore.v1beta1.BeginTransactionRequest other) { if (other == com.google.firestore.v1beta1.BeginTransactionRequest.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }