nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spanner-jdbc Show documentation
Show all versions of spanner-jdbc Show documentation
JDBC Driver for Google Cloud Spanner
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/spanner/v1/mutation.proto
package nl.topicus.jdbc.shaded.com.google.spanner.v1;
/**
*
* A modification to one or more Cloud Spanner rows. Mutations can be
* applied to a Cloud Spanner database by sending them in a
* [Commit][google.spanner.v1.Spanner.Commit] call.
*
*
* Protobuf type {@code google.spanner.v1.Mutation}
*/
public final class Mutation extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.spanner.v1.Mutation)
MutationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Mutation.newBuilder() to construct.
private Mutation(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Mutation() {
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Mutation(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder subBuilder = null;
if (operationCase_ == 1) {
subBuilder = ((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_).toBuilder();
}
operation_ =
input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
operation_ = subBuilder.buildPartial();
}
operationCase_ = 1;
break;
}
case 18: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder subBuilder = null;
if (operationCase_ == 2) {
subBuilder = ((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_).toBuilder();
}
operation_ =
input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
operation_ = subBuilder.buildPartial();
}
operationCase_ = 2;
break;
}
case 26: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder subBuilder = null;
if (operationCase_ == 3) {
subBuilder = ((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_).toBuilder();
}
operation_ =
input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
operation_ = subBuilder.buildPartial();
}
operationCase_ = 3;
break;
}
case 34: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder subBuilder = null;
if (operationCase_ == 4) {
subBuilder = ((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_).toBuilder();
}
operation_ =
input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
operation_ = subBuilder.buildPartial();
}
operationCase_ = 4;
break;
}
case 42: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder subBuilder = null;
if (operationCase_ == 5) {
subBuilder = ((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_).toBuilder();
}
operation_ =
input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_);
operation_ = subBuilder.buildPartial();
}
operationCase_ = 5;
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Builder.class);
}
public interface WriteOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.spanner.v1.Mutation.Write)
nl.topicus.jdbc.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
java.lang.String getTable();
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getTableBytes();
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
java.util.List
getColumnsList();
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
int getColumnsCount();
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
java.lang.String getColumns(int index);
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getColumnsBytes(int index);
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
java.util.List
getValuesList();
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getValues(int index);
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
int getValuesCount();
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
java.util.List extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getValuesOrBuilderList();
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getValuesOrBuilder(
int index);
}
/**
*
* Arguments to [insert][google.spanner.v1.Mutation.insert], [update][google.spanner.v1.Mutation.update], [insert_or_update][google.spanner.v1.Mutation.insert_or_update], and
* [replace][google.spanner.v1.Mutation.replace] operations.
*
*
* Protobuf type {@code google.spanner.v1.Mutation.Write}
*/
public static final class Write extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.spanner.v1.Mutation.Write)
WriteOrBuilder {
private static final long serialVersionUID = 0L;
// Use Write.newBuilder() to construct.
private Write(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Write() {
table_ = "";
columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Write(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
table_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = new nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
columns_.add(s);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
values_.add(
input.readMessage(nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.parser(), extensionRegistry));
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = columns_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
values_ = java.util.Collections.unmodifiableList(values_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Write_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Write_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder.class);
}
private int bitField0_;
public static final int TABLE_FIELD_NUMBER = 1;
private volatile java.lang.Object table_;
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public java.lang.String getTable() {
java.lang.Object ref = table_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
table_ = s;
return s;
}
}
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getTableBytes() {
java.lang.Object ref = table_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
table_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMNS_FIELD_NUMBER = 2;
private nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringList columns_;
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolStringList
getColumnsList() {
return columns_;
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public int getColumnsCount() {
return columns_.size();
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public java.lang.String getColumns(int index) {
return columns_.get(index);
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getColumnsBytes(int index) {
return columns_.getByteString(index);
}
public static final int VALUES_FIELD_NUMBER = 3;
private java.util.List values_;
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public java.util.List getValuesList() {
return values_;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public int getValuesCount() {
return values_.size();
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getValues(int index) {
return values_.get(index);
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTableBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
}
for (int i = 0; i < columns_.size(); i++) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columns_.getRaw(i));
}
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(3, values_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTableBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
}
{
int dataSize = 0;
for (int i = 0; i < columns_.size(); i++) {
dataSize += computeStringSizeNoTag(columns_.getRaw(i));
}
size += dataSize;
size += 1 * getColumnsList().size();
}
for (int i = 0; i < values_.size(); i++) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(3, values_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) obj;
boolean result = true;
result = result && getTable()
.equals(other.getTable());
result = result && getColumnsList()
.equals(other.getColumnsList());
result = result && getValuesList()
.equals(other.getValuesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
if (getColumnsCount() > 0) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumnsList().hashCode();
}
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseDelimitedFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Arguments to [insert][google.spanner.v1.Mutation.insert], [update][google.spanner.v1.Mutation.update], [insert_or_update][google.spanner.v1.Mutation.insert_or_update], and
* [replace][google.spanner.v1.Mutation.replace] operations.
*
*
* Protobuf type {@code google.spanner.v1.Mutation.Write}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.spanner.v1.Mutation.Write)
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Write_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Write_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValuesFieldBuilder();
}
}
public Builder clear() {
super.clear();
table_ = "";
columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
valuesBuilder_.clear();
}
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Write_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write build() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write buildPartial() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.table_ = table_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = columns_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.columns_ = columns_;
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write other) {
if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance()) return this;
if (!other.getTable().isEmpty()) {
table_ = other.table_;
onChanged();
}
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000004);
valuesBuilder_ =
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object table_ = "";
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public java.lang.String getTable() {
java.lang.Object ref = table_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
table_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getTableBytes() {
java.lang.Object ref = table_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
table_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public Builder setTable(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
onChanged();
return this;
}
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public Builder clearTable() {
table_ = getDefaultInstance().getTable();
onChanged();
return this;
}
/**
*
* Required. The table whose rows will be written.
*
*
* string table = 1;
*/
public Builder setTableBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
table_ = value;
onChanged();
return this;
}
private nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringList columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = new nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList(columns_);
bitField0_ |= 0x00000002;
}
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolStringList
getColumnsList() {
return columns_.getUnmodifiableView();
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public int getColumnsCount() {
return columns_.size();
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public java.lang.String getColumns(int index) {
return columns_.get(index);
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getColumnsBytes(int index) {
return columns_.getByteString(index);
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public Builder setColumns(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
return this;
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public Builder addColumns(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
return this;
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public Builder addAllColumns(
java.lang.Iterable values) {
ensureColumnsIsMutable();
nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columns_);
onChanged();
return this;
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public Builder clearColumns() {
columns_ = nl.topicus.jdbc.shaded.com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The names of the columns in [table][google.spanner.v1.Mutation.Write.table] to be written.
* The list of columns must contain enough columns to allow
* Cloud Spanner to derive values for all primary key columns in the
* row(s) to be modified.
*
*
* repeated string columns = 2;
*/
public Builder addColumnsBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
return this;
}
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000004;
}
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder> valuesBuilder_;
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder setValues(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder setValues(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder addValues(nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder addValues(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder addValues(
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder addValues(
int index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder addAllValues(
java.lang.Iterable extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValue> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
nl.topicus.jdbc.shaded.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public java.util.List extends nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.getDefaultInstance());
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.getDefaultInstance());
}
/**
*
* The values to be written. `values` can contain more than one
* list of values. If it does, then multiple rows are written, one
* for each entry in `values`. Each list in `values` must have
* exactly as many entries as there are entries in [columns][google.spanner.v1.Mutation.Write.columns]
* above. Sending multiple lists is equivalent to sending multiple
* `Mutation`s, each containing one `values` entry and repeating
* [table][google.spanner.v1.Mutation.Write.table] and [columns][google.spanner.v1.Mutation.Write.columns]. Individual values in each list are
* encoded as described [here][google.spanner.v1.TypeCode].
*
*
* repeated .google.protobuf.ListValue values = 3;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.RepeatedFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.protobuf.ListValue, nl.topicus.jdbc.shaded.com.google.protobuf.ListValue.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.ListValueOrBuilder>(
values_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.spanner.v1.Mutation.Write)
}
// @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation.Write)
private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write();
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public Write parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Write(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.spanner.v1.Mutation.Delete)
nl.topicus.jdbc.shaded.com.google.protobuf.MessageOrBuilder {
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
java.lang.String getTable();
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getTableBytes();
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
boolean hasKeySet();
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet getKeySet();
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder getKeySetOrBuilder();
}
/**
*
* Arguments to [delete][google.spanner.v1.Mutation.delete] operations.
*
*
* Protobuf type {@code google.spanner.v1.Mutation.Delete}
*/
public static final class Delete extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.spanner.v1.Mutation.Delete)
DeleteOrBuilder {
private static final long serialVersionUID = 0L;
// Use Delete.newBuilder() to construct.
private Delete(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Delete() {
table_ = "";
}
@java.lang.Override
public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Delete(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
table_ = s;
break;
}
case 18: {
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder subBuilder = null;
if (keySet_ != null) {
subBuilder = keySet_.toBuilder();
}
keySet_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(keySet_);
keySet_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Delete_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Delete_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder.class);
}
public static final int TABLE_FIELD_NUMBER = 1;
private volatile java.lang.Object table_;
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public java.lang.String getTable() {
java.lang.Object ref = table_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
table_ = s;
return s;
}
}
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getTableBytes() {
java.lang.Object ref = table_;
if (ref instanceof java.lang.String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
table_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_SET_FIELD_NUMBER = 2;
private nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet keySet_;
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public boolean hasKeySet() {
return keySet_ != null;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet getKeySet() {
return keySet_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance() : keySet_;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder getKeySetOrBuilder() {
return getKeySet();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTableBytes().isEmpty()) {
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
}
if (keySet_ != null) {
output.writeMessage(2, getKeySet());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTableBytes().isEmpty()) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
}
if (keySet_ != null) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getKeySet());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) obj;
boolean result = true;
result = result && getTable()
.equals(other.getTable());
result = result && (hasKeySet() == other.hasKeySet());
if (hasKeySet()) {
result = result && getKeySet()
.equals(other.getKeySet());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
if (hasKeySet()) {
hash = (37 * hash) + KEY_SET_FIELD_NUMBER;
hash = (53 * hash) + getKeySet().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseDelimitedFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Arguments to [delete][google.spanner.v1.Mutation.delete] operations.
*
*
* Protobuf type {@code google.spanner.v1.Mutation.Delete}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.spanner.v1.Mutation.Delete)
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.DeleteOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Delete_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Delete_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
table_ = "";
if (keySetBuilder_ == null) {
keySet_ = null;
} else {
keySet_ = null;
keySetBuilder_ = null;
}
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_Delete_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete build() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete buildPartial() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete(this);
result.table_ = table_;
if (keySetBuilder_ == null) {
result.keySet_ = keySet_;
} else {
result.keySet_ = keySetBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete other) {
if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance()) return this;
if (!other.getTable().isEmpty()) {
table_ = other.table_;
onChanged();
}
if (other.hasKeySet()) {
mergeKeySet(other.getKeySet());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object table_ = "";
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public java.lang.String getTable() {
java.lang.Object ref = table_;
if (!(ref instanceof java.lang.String)) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs =
(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
table_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString
getTableBytes() {
java.lang.Object ref = table_;
if (ref instanceof String) {
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b =
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
table_ = b;
return b;
} else {
return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public Builder setTable(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
table_ = value;
onChanged();
return this;
}
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public Builder clearTable() {
table_ = getDefaultInstance().getTable();
onChanged();
return this;
}
/**
*
* Required. The table whose rows will be deleted.
*
*
* string table = 1;
*/
public Builder setTableBytes(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
table_ = value;
onChanged();
return this;
}
private nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet keySet_ = null;
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder> keySetBuilder_;
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public boolean hasKeySet() {
return keySetBuilder_ != null || keySet_ != null;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet getKeySet() {
if (keySetBuilder_ == null) {
return keySet_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance() : keySet_;
} else {
return keySetBuilder_.getMessage();
}
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public Builder setKeySet(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet value) {
if (keySetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keySet_ = value;
onChanged();
} else {
keySetBuilder_.setMessage(value);
}
return this;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public Builder setKeySet(
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder builderForValue) {
if (keySetBuilder_ == null) {
keySet_ = builderForValue.build();
onChanged();
} else {
keySetBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public Builder mergeKeySet(nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet value) {
if (keySetBuilder_ == null) {
if (keySet_ != null) {
keySet_ =
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.newBuilder(keySet_).mergeFrom(value).buildPartial();
} else {
keySet_ = value;
}
onChanged();
} else {
keySetBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public Builder clearKeySet() {
if (keySetBuilder_ == null) {
keySet_ = null;
onChanged();
} else {
keySet_ = null;
keySetBuilder_ = null;
}
return this;
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder getKeySetBuilder() {
onChanged();
return getKeySetFieldBuilder().getBuilder();
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder getKeySetOrBuilder() {
if (keySetBuilder_ != null) {
return keySetBuilder_.getMessageOrBuilder();
} else {
return keySet_ == null ?
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.getDefaultInstance() : keySet_;
}
}
/**
*
* Required. The primary keys of the rows within [table][google.spanner.v1.Mutation.Delete.table] to delete.
* Delete is idempotent. The transaction will succeed even if some or all
* rows do not exist.
*
*
* .google.spanner.v1.KeySet key_set = 2;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder>
getKeySetFieldBuilder() {
if (keySetBuilder_ == null) {
keySetBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySet.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.KeySetOrBuilder>(
getKeySet(),
getParentForChildren(),
isClean());
keySet_ = null;
}
return keySetBuilder_;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.spanner.v1.Mutation.Delete)
}
// @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation.Delete)
private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete();
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public Delete parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Delete(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int operationCase_ = 0;
private java.lang.Object operation_;
public enum OperationCase
implements nl.topicus.jdbc.shaded.com.google.protobuf.Internal.EnumLite {
INSERT(1),
UPDATE(2),
INSERT_OR_UPDATE(3),
REPLACE(4),
DELETE(5),
OPERATION_NOT_SET(0);
private final int value;
private OperationCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OperationCase valueOf(int value) {
return forNumber(value);
}
public static OperationCase forNumber(int value) {
switch (value) {
case 1: return INSERT;
case 2: return UPDATE;
case 3: return INSERT_OR_UPDATE;
case 4: return REPLACE;
case 5: return DELETE;
case 0: return OPERATION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public OperationCase
getOperationCase() {
return OperationCase.forNumber(
operationCase_);
}
public static final int INSERT_FIELD_NUMBER = 1;
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public boolean hasInsert() {
return operationCase_ == 1;
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getInsert() {
if (operationCase_ == 1) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrBuilder() {
if (operationCase_ == 1) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
public static final int UPDATE_FIELD_NUMBER = 2;
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public boolean hasUpdate() {
return operationCase_ == 2;
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getUpdate() {
if (operationCase_ == 2) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getUpdateOrBuilder() {
if (operationCase_ == 2) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
public static final int INSERT_OR_UPDATE_FIELD_NUMBER = 3;
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public boolean hasInsertOrUpdate() {
return operationCase_ == 3;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getInsertOrUpdate() {
if (operationCase_ == 3) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrUpdateOrBuilder() {
if (operationCase_ == 3) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
public static final int REPLACE_FIELD_NUMBER = 4;
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public boolean hasReplace() {
return operationCase_ == 4;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getReplace() {
if (operationCase_ == 4) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getReplaceOrBuilder() {
if (operationCase_ == 4) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
public static final int DELETE_FIELD_NUMBER = 5;
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public boolean hasDelete() {
return operationCase_ == 5;
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete getDelete() {
if (operationCase_ == 5) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.DeleteOrBuilder getDeleteOrBuilder() {
if (operationCase_ == 5) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (operationCase_ == 1) {
output.writeMessage(1, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 2) {
output.writeMessage(2, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 3) {
output.writeMessage(3, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 4) {
output.writeMessage(4, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 5) {
output.writeMessage(5, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationCase_ == 1) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 2) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 3) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 4) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_);
}
if (operationCase_ == 5) {
size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation)) {
return super.equals(obj);
}
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation) obj;
boolean result = true;
result = result && getOperationCase().equals(
other.getOperationCase());
if (!result) return false;
switch (operationCase_) {
case 1:
result = result && getInsert()
.equals(other.getInsert());
break;
case 2:
result = result && getUpdate()
.equals(other.getUpdate());
break;
case 3:
result = result && getInsertOrUpdate()
.equals(other.getInsertOrUpdate());
break;
case 4:
result = result && getReplace()
.equals(other.getReplace());
break;
case 5:
result = result && getDelete()
.equals(other.getDelete());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (operationCase_) {
case 1:
hash = (37 * hash) + INSERT_FIELD_NUMBER;
hash = (53 * hash) + getInsert().hashCode();
break;
case 2:
hash = (37 * hash) + UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getUpdate().hashCode();
break;
case 3:
hash = (37 * hash) + INSERT_OR_UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getInsertOrUpdate().hashCode();
break;
case 4:
hash = (37 * hash) + REPLACE_FIELD_NUMBER;
hash = (53 * hash) + getReplace().hashCode();
break;
case 5:
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + getDelete().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
java.nio.ByteBuffer data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
java.nio.ByteBuffer data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(byte[] data)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
byte[] data,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseDelimitedFrom(
java.io.InputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parseFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A modification to one or more Cloud Spanner rows. Mutations can be
* applied to a Cloud Spanner database by sending them in a
* [Commit][google.spanner.v1.Spanner.Commit] call.
*
*
* Protobuf type {@code google.spanner.v1.Mutation}
*/
public static final class Builder extends
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.spanner.v1.Mutation)
nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationOrBuilder {
public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_descriptor;
}
protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Builder.class);
}
// Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
operationCase_ = 0;
operation_ = null;
return this;
}
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.MutationProto.internal_static_google_spanner_v1_Mutation_descriptor;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation getDefaultInstanceForType() {
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.getDefaultInstance();
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation build() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation buildPartial() {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation(this);
if (operationCase_ == 1) {
if (insertBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = insertBuilder_.build();
}
}
if (operationCase_ == 2) {
if (updateBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = updateBuilder_.build();
}
}
if (operationCase_ == 3) {
if (insertOrUpdateBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = insertOrUpdateBuilder_.build();
}
}
if (operationCase_ == 4) {
if (replaceBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = replaceBuilder_.build();
}
}
if (operationCase_ == 5) {
if (deleteBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = deleteBuilder_.build();
}
}
result.operationCase_ = operationCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) {
if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation) {
return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation other) {
if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.getDefaultInstance()) return this;
switch (other.getOperationCase()) {
case INSERT: {
mergeInsert(other.getInsert());
break;
}
case UPDATE: {
mergeUpdate(other.getUpdate());
break;
}
case INSERT_OR_UPDATE: {
mergeInsertOrUpdate(other.getInsertOrUpdate());
break;
}
case REPLACE: {
mergeReplace(other.getReplace());
break;
}
case DELETE: {
mergeDelete(other.getDelete());
break;
}
case OPERATION_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int operationCase_ = 0;
private java.lang.Object operation_;
public OperationCase
getOperationCase() {
return OperationCase.forNumber(
operationCase_);
}
public Builder clearOperation() {
operationCase_ = 0;
operation_ = null;
onChanged();
return this;
}
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder> insertBuilder_;
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public boolean hasInsert() {
return operationCase_ == 1;
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getInsert() {
if (insertBuilder_ == null) {
if (operationCase_ == 1) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
} else {
if (operationCase_ == 1) {
return insertBuilder_.getMessage();
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public Builder setInsert(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (insertBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
insertBuilder_.setMessage(value);
}
operationCase_ = 1;
return this;
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public Builder setInsert(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder builderForValue) {
if (insertBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
insertBuilder_.setMessage(builderForValue.build());
}
operationCase_ = 1;
return this;
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public Builder mergeInsert(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (insertBuilder_ == null) {
if (operationCase_ == 1 &&
operation_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance()) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.newBuilder((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_)
.mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
if (operationCase_ == 1) {
insertBuilder_.mergeFrom(value);
}
insertBuilder_.setMessage(value);
}
operationCase_ = 1;
return this;
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public Builder clearInsert() {
if (insertBuilder_ == null) {
if (operationCase_ == 1) {
operationCase_ = 0;
operation_ = null;
onChanged();
}
} else {
if (operationCase_ == 1) {
operationCase_ = 0;
operation_ = null;
}
insertBuilder_.clear();
}
return this;
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder getInsertBuilder() {
return getInsertFieldBuilder().getBuilder();
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrBuilder() {
if ((operationCase_ == 1) && (insertBuilder_ != null)) {
return insertBuilder_.getMessageOrBuilder();
} else {
if (operationCase_ == 1) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Insert new rows in a table. If any of the rows already exist,
* the write or transaction fails with error `ALREADY_EXISTS`.
*
*
* .google.spanner.v1.Mutation.Write insert = 1;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>
getInsertFieldBuilder() {
if (insertBuilder_ == null) {
if (!(operationCase_ == 1)) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
insertBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>(
(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_,
getParentForChildren(),
isClean());
operation_ = null;
}
operationCase_ = 1;
onChanged();;
return insertBuilder_;
}
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder> updateBuilder_;
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public boolean hasUpdate() {
return operationCase_ == 2;
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getUpdate() {
if (updateBuilder_ == null) {
if (operationCase_ == 2) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
} else {
if (operationCase_ == 2) {
return updateBuilder_.getMessage();
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public Builder setUpdate(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (updateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
updateBuilder_.setMessage(value);
}
operationCase_ = 2;
return this;
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public Builder setUpdate(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder builderForValue) {
if (updateBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
updateBuilder_.setMessage(builderForValue.build());
}
operationCase_ = 2;
return this;
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public Builder mergeUpdate(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (updateBuilder_ == null) {
if (operationCase_ == 2 &&
operation_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance()) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.newBuilder((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_)
.mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
if (operationCase_ == 2) {
updateBuilder_.mergeFrom(value);
}
updateBuilder_.setMessage(value);
}
operationCase_ = 2;
return this;
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public Builder clearUpdate() {
if (updateBuilder_ == null) {
if (operationCase_ == 2) {
operationCase_ = 0;
operation_ = null;
onChanged();
}
} else {
if (operationCase_ == 2) {
operationCase_ = 0;
operation_ = null;
}
updateBuilder_.clear();
}
return this;
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder getUpdateBuilder() {
return getUpdateFieldBuilder().getBuilder();
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getUpdateOrBuilder() {
if ((operationCase_ == 2) && (updateBuilder_ != null)) {
return updateBuilder_.getMessageOrBuilder();
} else {
if (operationCase_ == 2) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Update existing rows in a table. If any of the rows does not
* already exist, the transaction fails with error `NOT_FOUND`.
*
*
* .google.spanner.v1.Mutation.Write update = 2;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>
getUpdateFieldBuilder() {
if (updateBuilder_ == null) {
if (!(operationCase_ == 2)) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
updateBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>(
(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_,
getParentForChildren(),
isClean());
operation_ = null;
}
operationCase_ = 2;
onChanged();;
return updateBuilder_;
}
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder> insertOrUpdateBuilder_;
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public boolean hasInsertOrUpdate() {
return operationCase_ == 3;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getInsertOrUpdate() {
if (insertOrUpdateBuilder_ == null) {
if (operationCase_ == 3) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
} else {
if (operationCase_ == 3) {
return insertOrUpdateBuilder_.getMessage();
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public Builder setInsertOrUpdate(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (insertOrUpdateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
insertOrUpdateBuilder_.setMessage(value);
}
operationCase_ = 3;
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public Builder setInsertOrUpdate(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder builderForValue) {
if (insertOrUpdateBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
insertOrUpdateBuilder_.setMessage(builderForValue.build());
}
operationCase_ = 3;
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public Builder mergeInsertOrUpdate(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (insertOrUpdateBuilder_ == null) {
if (operationCase_ == 3 &&
operation_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance()) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.newBuilder((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_)
.mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
if (operationCase_ == 3) {
insertOrUpdateBuilder_.mergeFrom(value);
}
insertOrUpdateBuilder_.setMessage(value);
}
operationCase_ = 3;
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public Builder clearInsertOrUpdate() {
if (insertOrUpdateBuilder_ == null) {
if (operationCase_ == 3) {
operationCase_ = 0;
operation_ = null;
onChanged();
}
} else {
if (operationCase_ == 3) {
operationCase_ = 0;
operation_ = null;
}
insertOrUpdateBuilder_.clear();
}
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder getInsertOrUpdateBuilder() {
return getInsertOrUpdateFieldBuilder().getBuilder();
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getInsertOrUpdateOrBuilder() {
if ((operationCase_ == 3) && (insertOrUpdateBuilder_ != null)) {
return insertOrUpdateBuilder_.getMessageOrBuilder();
} else {
if (operationCase_ == 3) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, then
* its column values are overwritten with the ones provided. Any
* column values not explicitly written are preserved.
*
*
* .google.spanner.v1.Mutation.Write insert_or_update = 3;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>
getInsertOrUpdateFieldBuilder() {
if (insertOrUpdateBuilder_ == null) {
if (!(operationCase_ == 3)) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
insertOrUpdateBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>(
(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_,
getParentForChildren(),
isClean());
operation_ = null;
}
operationCase_ = 3;
onChanged();;
return insertOrUpdateBuilder_;
}
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder> replaceBuilder_;
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public boolean hasReplace() {
return operationCase_ == 4;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write getReplace() {
if (replaceBuilder_ == null) {
if (operationCase_ == 4) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
} else {
if (operationCase_ == 4) {
return replaceBuilder_.getMessage();
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public Builder setReplace(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (replaceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
replaceBuilder_.setMessage(value);
}
operationCase_ = 4;
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public Builder setReplace(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder builderForValue) {
if (replaceBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
replaceBuilder_.setMessage(builderForValue.build());
}
operationCase_ = 4;
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public Builder mergeReplace(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write value) {
if (replaceBuilder_ == null) {
if (operationCase_ == 4 &&
operation_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance()) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.newBuilder((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_)
.mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
if (operationCase_ == 4) {
replaceBuilder_.mergeFrom(value);
}
replaceBuilder_.setMessage(value);
}
operationCase_ = 4;
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public Builder clearReplace() {
if (replaceBuilder_ == null) {
if (operationCase_ == 4) {
operationCase_ = 0;
operation_ = null;
onChanged();
}
} else {
if (operationCase_ == 4) {
operationCase_ = 0;
operation_ = null;
}
replaceBuilder_.clear();
}
return this;
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder getReplaceBuilder() {
return getReplaceFieldBuilder().getBuilder();
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder getReplaceOrBuilder() {
if ((operationCase_ == 4) && (replaceBuilder_ != null)) {
return replaceBuilder_.getMessageOrBuilder();
} else {
if (operationCase_ == 4) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
}
/**
*
* Like [insert][google.spanner.v1.Mutation.insert], except that if the row already exists, it is
* deleted, and the column values provided are inserted
* instead. Unlike [insert_or_update][google.spanner.v1.Mutation.insert_or_update], this means any values not
* explicitly written become `NULL`.
*
*
* .google.spanner.v1.Mutation.Write replace = 4;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>
getReplaceFieldBuilder() {
if (replaceBuilder_ == null) {
if (!(operationCase_ == 4)) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.getDefaultInstance();
}
replaceBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.WriteOrBuilder>(
(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Write) operation_,
getParentForChildren(),
isClean());
operation_ = null;
}
operationCase_ = 4;
onChanged();;
return replaceBuilder_;
}
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.DeleteOrBuilder> deleteBuilder_;
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public boolean hasDelete() {
return operationCase_ == 5;
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete getDelete() {
if (deleteBuilder_ == null) {
if (operationCase_ == 5) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
} else {
if (operationCase_ == 5) {
return deleteBuilder_.getMessage();
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
}
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public Builder setDelete(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete value) {
if (deleteBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
deleteBuilder_.setMessage(value);
}
operationCase_ = 5;
return this;
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public Builder setDelete(
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder builderForValue) {
if (deleteBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
deleteBuilder_.setMessage(builderForValue.build());
}
operationCase_ = 5;
return this;
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public Builder mergeDelete(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete value) {
if (deleteBuilder_ == null) {
if (operationCase_ == 5 &&
operation_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance()) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.newBuilder((nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_)
.mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
if (operationCase_ == 5) {
deleteBuilder_.mergeFrom(value);
}
deleteBuilder_.setMessage(value);
}
operationCase_ = 5;
return this;
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public Builder clearDelete() {
if (deleteBuilder_ == null) {
if (operationCase_ == 5) {
operationCase_ = 0;
operation_ = null;
onChanged();
}
} else {
if (operationCase_ == 5) {
operationCase_ = 0;
operation_ = null;
}
deleteBuilder_.clear();
}
return this;
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder getDeleteBuilder() {
return getDeleteFieldBuilder().getBuilder();
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.DeleteOrBuilder getDeleteOrBuilder() {
if ((operationCase_ == 5) && (deleteBuilder_ != null)) {
return deleteBuilder_.getMessageOrBuilder();
} else {
if (operationCase_ == 5) {
return (nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_;
}
return nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
}
}
/**
*
* Delete rows from a table. Succeeds whether or not the named
* rows were present.
*
*
* .google.spanner.v1.Mutation.Delete delete = 5;
*/
private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.DeleteOrBuilder>
getDeleteFieldBuilder() {
if (deleteBuilder_ == null) {
if (!(operationCase_ == 5)) {
operation_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.getDefaultInstance();
}
deleteBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3<
nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.DeleteOrBuilder>(
(nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation.Delete) operation_,
getParentForChildren(),
isClean());
operation_ = null;
}
operationCase_ = 5;
onChanged();;
return deleteBuilder_;
}
public final Builder setUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.spanner.v1.Mutation)
}
// @@protoc_insertion_point(class_scope:google.spanner.v1.Mutation)
private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation();
}
public static nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser
PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() {
public Mutation parsePartialFrom(
nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input,
nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new Mutation(input, extensionRegistry);
}
};
public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public nl.topicus.jdbc.shaded.com.google.spanner.v1.Mutation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}