Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/bigtable/v2/data.proto
// Protobuf Java Version: 3.25.2
package com.google.bigtable.v2;
/**
*
*
*
* Specifies a particular change to be made to the contents of a row.
*
*
* Protobuf type {@code google.bigtable.v2.Mutation}
*/
public final class Mutation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.bigtable.v2.Mutation)
MutationOrBuilder {
private static final long serialVersionUID = 0L;
// Use Mutation.newBuilder() to construct.
private Mutation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Mutation() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Mutation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.DataProto.internal_static_google_bigtable_v2_Mutation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.Mutation.class, com.google.bigtable.v2.Mutation.Builder.class);
}
public interface SetCellOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.bigtable.v2.Mutation.SetCell)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the family into which new data should be written.
* Must match `[-_.a-zA-Z0-9]+`
*
* The timestamp of the cell into which new data should be written.
* Use -1 for current Bigtable server time.
* Otherwise, the client should set this value itself, noting that the
* default value is a timestamp of zero if the field is left unspecified.
* Values must match the granularity of the table (e.g. micros, millis).
*
*
* int64 timestamp_micros = 3;
*
* @return The timestampMicros.
*/
long getTimestampMicros();
/**
*
*
*
* The value to be written into the specified cell.
*
*
* bytes value = 4;
*
* @return The value.
*/
com.google.protobuf.ByteString getValue();
}
/**
*
*
*
* A Mutation which sets the value of the specified cell.
*
*
* Protobuf type {@code google.bigtable.v2.Mutation.SetCell}
*/
public static final class SetCell extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.bigtable.v2.Mutation.SetCell)
SetCellOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetCell.newBuilder() to construct.
private SetCell(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetCell() {
familyName_ = "";
columnQualifier_ = com.google.protobuf.ByteString.EMPTY;
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SetCell();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_SetCell_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_SetCell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.Mutation.SetCell.class,
com.google.bigtable.v2.Mutation.SetCell.Builder.class);
}
public static final int FAMILY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object familyName_ = "";
/**
*
*
*
* The name of the family into which new data should be written.
* Must match `[-_.a-zA-Z0-9]+`
*
* The name of the family into which new data should be written.
* Must match `[-_.a-zA-Z0-9]+`
*
*
* string family_name = 1;
*
* @return The bytes for familyName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFamilyNameBytes() {
java.lang.Object ref = familyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
familyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMN_QUALIFIER_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString columnQualifier_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* The qualifier of the column into which new data should be written.
* Can be any byte string, including the empty string.
*
*
* bytes column_qualifier = 2;
*
* @return The columnQualifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString getColumnQualifier() {
return columnQualifier_;
}
public static final int TIMESTAMP_MICROS_FIELD_NUMBER = 3;
private long timestampMicros_ = 0L;
/**
*
*
*
* The timestamp of the cell into which new data should be written.
* Use -1 for current Bigtable server time.
* Otherwise, the client should set this value itself, noting that the
* default value is a timestamp of zero if the field is left unspecified.
* Values must match the granularity of the table (e.g. micros, millis).
*
*
* int64 timestamp_micros = 3;
*
* @return The timestampMicros.
*/
@java.lang.Override
public long getTimestampMicros() {
return timestampMicros_;
}
public static final int VALUE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* The value to be written into the specified cell.
*
*
* bytes value = 4;
*
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, familyName_);
}
if (!columnQualifier_.isEmpty()) {
output.writeBytes(2, columnQualifier_);
}
if (timestampMicros_ != 0L) {
output.writeInt64(3, timestampMicros_);
}
if (!value_.isEmpty()) {
output.writeBytes(4, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, familyName_);
}
if (!columnQualifier_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, columnQualifier_);
}
if (timestampMicros_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, timestampMicros_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.bigtable.v2.Mutation.SetCell)) {
return super.equals(obj);
}
com.google.bigtable.v2.Mutation.SetCell other = (com.google.bigtable.v2.Mutation.SetCell) obj;
if (!getFamilyName().equals(other.getFamilyName())) return false;
if (!getColumnQualifier().equals(other.getColumnQualifier())) return false;
if (getTimestampMicros() != other.getTimestampMicros()) return false;
if (!getValue().equals(other.getValue())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFamilyName().hashCode();
hash = (37 * hash) + COLUMN_QUALIFIER_FIELD_NUMBER;
hash = (53 * hash) + getColumnQualifier().hashCode();
hash = (37 * hash) + TIMESTAMP_MICROS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestampMicros());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.SetCell parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.Mutation.SetCell parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.Mutation.SetCell parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.bigtable.v2.Mutation.SetCell prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A Mutation which sets the value of the specified cell.
*
*
* Protobuf type {@code google.bigtable.v2.Mutation.SetCell}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.bigtable.v2.Mutation.SetCell)
com.google.bigtable.v2.Mutation.SetCellOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_SetCell_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_SetCell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.Mutation.SetCell.class,
com.google.bigtable.v2.Mutation.SetCell.Builder.class);
}
// Construct using com.google.bigtable.v2.Mutation.SetCell.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
familyName_ = "";
columnQualifier_ = com.google.protobuf.ByteString.EMPTY;
timestampMicros_ = 0L;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_SetCell_descriptor;
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.SetCell getDefaultInstanceForType() {
return com.google.bigtable.v2.Mutation.SetCell.getDefaultInstance();
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.SetCell build() {
com.google.bigtable.v2.Mutation.SetCell result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.SetCell buildPartial() {
com.google.bigtable.v2.Mutation.SetCell result =
new com.google.bigtable.v2.Mutation.SetCell(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.bigtable.v2.Mutation.SetCell result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.familyName_ = familyName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.columnQualifier_ = columnQualifier_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestampMicros_ = timestampMicros_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.value_ = value_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.bigtable.v2.Mutation.SetCell) {
return mergeFrom((com.google.bigtable.v2.Mutation.SetCell) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bigtable.v2.Mutation.SetCell other) {
if (other == com.google.bigtable.v2.Mutation.SetCell.getDefaultInstance()) return this;
if (!other.getFamilyName().isEmpty()) {
familyName_ = other.familyName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getColumnQualifier() != com.google.protobuf.ByteString.EMPTY) {
setColumnQualifier(other.getColumnQualifier());
}
if (other.getTimestampMicros() != 0L) {
setTimestampMicros(other.getTimestampMicros());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
familyName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
columnQualifier_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
timestampMicros_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
value_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object familyName_ = "";
/**
*
*
*
* The name of the family into which new data should be written.
* Must match `[-_.a-zA-Z0-9]+`
*
* The qualifier of the column into which new data should be written.
* Can be any byte string, including the empty string.
*
*
* bytes column_qualifier = 2;
*
* @param value The columnQualifier to set.
* @return This builder for chaining.
*/
public Builder setColumnQualifier(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
columnQualifier_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The qualifier of the column into which new data should be written.
* Can be any byte string, including the empty string.
*
*
* bytes column_qualifier = 2;
*
* @return This builder for chaining.
*/
public Builder clearColumnQualifier() {
bitField0_ = (bitField0_ & ~0x00000002);
columnQualifier_ = getDefaultInstance().getColumnQualifier();
onChanged();
return this;
}
private long timestampMicros_;
/**
*
*
*
* The timestamp of the cell into which new data should be written.
* Use -1 for current Bigtable server time.
* Otherwise, the client should set this value itself, noting that the
* default value is a timestamp of zero if the field is left unspecified.
* Values must match the granularity of the table (e.g. micros, millis).
*
*
* int64 timestamp_micros = 3;
*
* @return The timestampMicros.
*/
@java.lang.Override
public long getTimestampMicros() {
return timestampMicros_;
}
/**
*
*
*
* The timestamp of the cell into which new data should be written.
* Use -1 for current Bigtable server time.
* Otherwise, the client should set this value itself, noting that the
* default value is a timestamp of zero if the field is left unspecified.
* Values must match the granularity of the table (e.g. micros, millis).
*
*
* int64 timestamp_micros = 3;
*
* @param value The timestampMicros to set.
* @return This builder for chaining.
*/
public Builder setTimestampMicros(long value) {
timestampMicros_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The timestamp of the cell into which new data should be written.
* Use -1 for current Bigtable server time.
* Otherwise, the client should set this value itself, noting that the
* default value is a timestamp of zero if the field is left unspecified.
* Values must match the granularity of the table (e.g. micros, millis).
*
* The value to be written into the specified cell.
*
*
* bytes value = 4;
*
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
*
*
*
* The value to be written into the specified cell.
*
*
* bytes value = 4;
*
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The value to be written into the specified cell.
*
*
* bytes value = 4;
*
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000008);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.bigtable.v2.Mutation.SetCell)
}
// @@protoc_insertion_point(class_scope:google.bigtable.v2.Mutation.SetCell)
private static final com.google.bigtable.v2.Mutation.SetCell DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bigtable.v2.Mutation.SetCell();
}
public static com.google.bigtable.v2.Mutation.SetCell getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetCell parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.SetCell getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddToCellOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.bigtable.v2.Mutation.AddToCell)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
*
* string family_name = 1;
*
* @return The bytes for familyName.
*/
com.google.protobuf.ByteString getFamilyNameBytes();
/**
*
*
*
* The qualifier of the column into which new data should be added. This
* must be a `raw_value`.
*
*
* .google.bigtable.v2.Value column_qualifier = 2;
*
* @return Whether the columnQualifier field is set.
*/
boolean hasColumnQualifier();
/**
*
*
*
* The qualifier of the column into which new data should be added. This
* must be a `raw_value`.
*
* A Mutation which incrementally updates a cell in an `Aggregate` family.
*
*
* Protobuf type {@code google.bigtable.v2.Mutation.AddToCell}
*/
public static final class AddToCell extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.bigtable.v2.Mutation.AddToCell)
AddToCellOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddToCell.newBuilder() to construct.
private AddToCell(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddToCell() {
familyName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AddToCell();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_AddToCell_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_AddToCell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.Mutation.AddToCell.class,
com.google.bigtable.v2.Mutation.AddToCell.Builder.class);
}
private int bitField0_;
public static final int FAMILY_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object familyName_ = "";
/**
*
*
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
*
* string family_name = 1;
*
* @return The bytes for familyName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFamilyNameBytes() {
java.lang.Object ref = familyName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
familyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMN_QUALIFIER_FIELD_NUMBER = 2;
private com.google.bigtable.v2.Value columnQualifier_;
/**
*
*
*
* The qualifier of the column into which new data should be added. This
* must be a `raw_value`.
*
*
* .google.bigtable.v2.Value column_qualifier = 2;
*
* @return Whether the columnQualifier field is set.
*/
@java.lang.Override
public boolean hasColumnQualifier() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The qualifier of the column into which new data should be added. This
* must be a `raw_value`.
*
* The input value to be accumulated into the specified cell. This must be
* compatible with the family's `value_type.input_type`.
*
*
* .google.bigtable.v2.Value input = 4;
*/
@java.lang.Override
public com.google.bigtable.v2.ValueOrBuilder getInputOrBuilder() {
return input_ == null ? com.google.bigtable.v2.Value.getDefaultInstance() : input_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, familyName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getColumnQualifier());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getTimestamp());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getInput());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, familyName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getColumnQualifier());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimestamp());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInput());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.bigtable.v2.Mutation.AddToCell)) {
return super.equals(obj);
}
com.google.bigtable.v2.Mutation.AddToCell other =
(com.google.bigtable.v2.Mutation.AddToCell) obj;
if (!getFamilyName().equals(other.getFamilyName())) return false;
if (hasColumnQualifier() != other.hasColumnQualifier()) return false;
if (hasColumnQualifier()) {
if (!getColumnQualifier().equals(other.getColumnQualifier())) return false;
}
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp().equals(other.getTimestamp())) return false;
}
if (hasInput() != other.hasInput()) return false;
if (hasInput()) {
if (!getInput().equals(other.getInput())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFamilyName().hashCode();
if (hasColumnQualifier()) {
hash = (37 * hash) + COLUMN_QUALIFIER_FIELD_NUMBER;
hash = (53 * hash) + getColumnQualifier().hashCode();
}
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
if (hasInput()) {
hash = (37 * hash) + INPUT_FIELD_NUMBER;
hash = (53 * hash) + getInput().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.Mutation.AddToCell parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.bigtable.v2.Mutation.AddToCell prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A Mutation which incrementally updates a cell in an `Aggregate` family.
*
*
* Protobuf type {@code google.bigtable.v2.Mutation.AddToCell}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.bigtable.v2.Mutation.AddToCell)
com.google.bigtable.v2.Mutation.AddToCellOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_AddToCell_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_AddToCell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.Mutation.AddToCell.class,
com.google.bigtable.v2.Mutation.AddToCell.Builder.class);
}
// Construct using com.google.bigtable.v2.Mutation.AddToCell.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getColumnQualifierFieldBuilder();
getTimestampFieldBuilder();
getInputFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
familyName_ = "";
columnQualifier_ = null;
if (columnQualifierBuilder_ != null) {
columnQualifierBuilder_.dispose();
columnQualifierBuilder_ = null;
}
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
input_ = null;
if (inputBuilder_ != null) {
inputBuilder_.dispose();
inputBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.bigtable.v2.DataProto
.internal_static_google_bigtable_v2_Mutation_AddToCell_descriptor;
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.AddToCell getDefaultInstanceForType() {
return com.google.bigtable.v2.Mutation.AddToCell.getDefaultInstance();
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.AddToCell build() {
com.google.bigtable.v2.Mutation.AddToCell result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bigtable.v2.Mutation.AddToCell buildPartial() {
com.google.bigtable.v2.Mutation.AddToCell result =
new com.google.bigtable.v2.Mutation.AddToCell(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.bigtable.v2.Mutation.AddToCell result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.familyName_ = familyName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.columnQualifier_ =
columnQualifierBuilder_ == null ? columnQualifier_ : columnQualifierBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.bigtable.v2.Mutation.AddToCell) {
return mergeFrom((com.google.bigtable.v2.Mutation.AddToCell) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bigtable.v2.Mutation.AddToCell other) {
if (other == com.google.bigtable.v2.Mutation.AddToCell.getDefaultInstance()) return this;
if (!other.getFamilyName().isEmpty()) {
familyName_ = other.familyName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasColumnQualifier()) {
mergeColumnQualifier(other.getColumnQualifier());
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (other.hasInput()) {
mergeInput(other.getInput());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
familyName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getColumnQualifierFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getTimestampFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getInputFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object familyName_ = "";
/**
*
*
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
*
* string family_name = 1;
*
* @return The bytes for familyName.
*/
public com.google.protobuf.ByteString getFamilyNameBytes() {
java.lang.Object ref = familyName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
familyName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
*
* string family_name = 1;
*
* @param value The familyName to set.
* @return This builder for chaining.
*/
public Builder setFamilyName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
familyName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
* The name of the `Aggregate` family into which new data should be added.
* This must be a family with a `value_type` of `Aggregate`.
* Format: `[-_.a-zA-Z0-9]+`
*
*
* string family_name = 1;
*
* @param value The bytes for familyName to set.
* @return This builder for chaining.
*/
public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
familyName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.bigtable.v2.Value columnQualifier_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.Value,
com.google.bigtable.v2.Value.Builder,
com.google.bigtable.v2.ValueOrBuilder>
columnQualifierBuilder_;
/**
*
*
*
* The qualifier of the column into which new data should be added. This
* must be a `raw_value`.
*
*
* .google.bigtable.v2.Value column_qualifier = 2;
*
* @return Whether the columnQualifier field is set.
*/
public boolean hasColumnQualifier() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The qualifier of the column into which new data should be added. This
* must be a `raw_value`.
*