/** * * * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder() { if ((modeCase_ == 1) && (readWriteBuilder_ != null)) { return readWriteBuilder_.getMessageOrBuilder(); } else { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } } /**
/** * * * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { if (readWriteBuilder_ == null) { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } else { if (modeCase_ == 1) { return readWriteBuilder_.getMessage(); } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } } /**
if (readWriteBuilder_ == null) { if (modeCase_ == 1 && mode_ != com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) { mode_ = com.google.datastore.v1.TransactionOptions.ReadWrite.newBuilder(
/** * * * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } /**
/** * * * <pre> * The transaction identifier of the transaction being retried. * </pre> * * <code>bytes previous_transaction = 1;</code> */ public Builder clearPreviousTransaction() { previousTransaction_ = getDefaultInstance().getPreviousTransaction(); onChanged(); return this; }
/** * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>optional .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } /**
public com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultInstanceForType() { return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); }
@java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultInstanceForType() { return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); }
/** * <pre> * The transaction identifier of the transaction being retried. * </pre> * * <code>optional bytes previous_transaction = 1;</code> */ public Builder clearPreviousTransaction() { previousTransaction_ = getDefaultInstance().getPreviousTransaction(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>optional .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder() { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); }
/** * Creates a TransactionOptions object that represent a read-write option. * * @return a TransactionOptions object that represent a read-write option. */ private static TransactionOptions createReadWriteTransactionOptions() { TransactionOptions.Builder builder = TransactionOptions.newBuilder(); return builder.setReadWrite(ReadWrite.getDefaultInstance()).build(); }
public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadWrite other) { if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) return this; if (other.getPreviousTransaction() != com.google.protobuf.ByteString.EMPTY) { setPreviousTransaction(other.getPreviousTransaction()); } onChanged(); return this; }
public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadWrite other) { if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) return this; if (other.getPreviousTransaction() != com.google.protobuf.ByteString.EMPTY) { setPreviousTransaction(other.getPreviousTransaction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
.setReadWrite(TransactionOptions.ReadWrite.getDefaultInstance()) .build(); Integer result = mockDatastore.runInTransaction(callable, options);
if (readWriteBuilder_ == null) { if (!(modeCase_ == 1)) { mode_ = com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance();
/** * * * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWrite getReadWrite() { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); } /**
/** * * * <pre> * The transaction should allow both reads and writes. * </pre> * * <code>.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;</code> */ public com.google.datastore.v1.TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder() { if (modeCase_ == 1) { return (com.google.datastore.v1.TransactionOptions.ReadWrite) mode_; } return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); }
@java.lang.Override public com.google.datastore.v1.TransactionOptions.ReadWrite getDefaultInstanceForType() { return com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance(); }
/** * * * <pre> * The transaction identifier of the transaction being retried. * </pre> * * <code>bytes previous_transaction = 1;</code> */ public Builder clearPreviousTransaction() { previousTransaction_ = getDefaultInstance().getPreviousTransaction(); onChanged(); return this; }
public Builder mergeFrom(com.google.datastore.v1.TransactionOptions.ReadWrite other) { if (other == com.google.datastore.v1.TransactionOptions.ReadWrite.getDefaultInstance()) return this; if (other.getPreviousTransaction() != com.google.protobuf.ByteString.EMPTY) { setPreviousTransaction(other.getPreviousTransaction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }