implements
// @@protoc_insertion_point(builder_implements:google.bigtable.v2.ReadChangeStreamRequest)
com.google.bigtable.v2.ReadChangeStreamRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_ReadChangeStreamRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_ReadChangeStreamRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.ReadChangeStreamRequest.class,
com.google.bigtable.v2.ReadChangeStreamRequest.Builder.class);
}
// Construct using com.google.bigtable.v2.ReadChangeStreamRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPartitionFieldBuilder();
getEndTimeFieldBuilder();
getHeartbeatDurationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tableName_ = "";
appProfileId_ = "";
partition_ = null;
if (partitionBuilder_ != null) {
partitionBuilder_.dispose();
partitionBuilder_ = null;
}
if (startTimeBuilder_ != null) {
startTimeBuilder_.clear();
}
if (continuationTokensBuilder_ != null) {
continuationTokensBuilder_.clear();
}
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
heartbeatDuration_ = null;
if (heartbeatDurationBuilder_ != null) {
heartbeatDurationBuilder_.dispose();
heartbeatDurationBuilder_ = null;
}
startFromCase_ = 0;
startFrom_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_ReadChangeStreamRequest_descriptor;
}
@java.lang.Override
public com.google.bigtable.v2.ReadChangeStreamRequest getDefaultInstanceForType() {
return com.google.bigtable.v2.ReadChangeStreamRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.bigtable.v2.ReadChangeStreamRequest build() {
com.google.bigtable.v2.ReadChangeStreamRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bigtable.v2.ReadChangeStreamRequest buildPartial() {
com.google.bigtable.v2.ReadChangeStreamRequest result =
new com.google.bigtable.v2.ReadChangeStreamRequest(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.bigtable.v2.ReadChangeStreamRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.tableName_ = tableName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.appProfileId_ = appProfileId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.partition_ = partitionBuilder_ == null ? partition_ : partitionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.heartbeatDuration_ =
heartbeatDurationBuilder_ == null
? heartbeatDuration_
: heartbeatDurationBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.bigtable.v2.ReadChangeStreamRequest result) {
result.startFromCase_ = startFromCase_;
result.startFrom_ = this.startFrom_;
if (startFromCase_ == 4 && startTimeBuilder_ != null) {
result.startFrom_ = startTimeBuilder_.build();
}
if (startFromCase_ == 6 && continuationTokensBuilder_ != null) {
result.startFrom_ = continuationTokensBuilder_.build();
}
}
@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.ReadChangeStreamRequest) {
return mergeFrom((com.google.bigtable.v2.ReadChangeStreamRequest) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bigtable.v2.ReadChangeStreamRequest other) {
if (other == com.google.bigtable.v2.ReadChangeStreamRequest.getDefaultInstance()) return this;
if (!other.getTableName().isEmpty()) {
tableName_ = other.tableName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getAppProfileId().isEmpty()) {
appProfileId_ = other.appProfileId_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPartition()) {
mergePartition(other.getPartition());
}
if (other.hasEndTime()) {
mergeEndTime(other.getEndTime());
}
if (other.hasHeartbeatDuration()) {
mergeHeartbeatDuration(other.getHeartbeatDuration());
}
switch (other.getStartFromCase()) {
case START_TIME:
{
mergeStartTime(other.getStartTime());
break;
}
case CONTINUATION_TOKENS:
{
mergeContinuationTokens(other.getContinuationTokens());
break;
}
case STARTFROM_NOT_SET:
{
break;
}
}
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:
{
tableName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
appProfileId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getPartitionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
startFromCase_ = 4;
break;
} // case 34
case 42:
{
input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 42
case 50:
{
input.readMessage(
getContinuationTokensFieldBuilder().getBuilder(), extensionRegistry);
startFromCase_ = 6;
break;
} // case 50
case 58:
{
input.readMessage(
getHeartbeatDurationFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
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 startFromCase_ = 0;
private java.lang.Object startFrom_;
public StartFromCase getStartFromCase() {
return StartFromCase.forNumber(startFromCase_);
}
public Builder clearStartFrom() {
startFromCase_ = 0;
startFrom_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object tableName_ = "";
/**
*
*
*
* Required. The unique name of the table from which to read a change stream.
* Values are of the form
* `projects/<project>/instances/<instance>/tables/<table>`.
* Change streaming must be enabled on the table.
*
*
*
* string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return The tableName.
*/
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tableName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Required. The unique name of the table from which to read a change stream.
* Values are of the form
* `projects/<project>/instances/<instance>/tables/<table>`.
* Change streaming must be enabled on the table.
*
*
*
* string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for tableName.
*/
public com.google.protobuf.ByteString getTableNameBytes() {
java.lang.Object ref = tableName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
tableName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Required. The unique name of the table from which to read a change stream.
* Values are of the form
* `projects/<project>/instances/<instance>/tables/<table>`.
* Change streaming must be enabled on the table.
*
*
*
* string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @param value The tableName to set.
* @return This builder for chaining.
*/
public Builder setTableName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tableName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The unique name of the table from which to read a change stream.
* Values are of the form
* `projects/<project>/instances/<instance>/tables/<table>`.
* Change streaming must be enabled on the table.
*
*
*
* string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearTableName() {
tableName_ = getDefaultInstance().getTableName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Required. The unique name of the table from which to read a change stream.
* Values are of the form
* `projects/<project>/instances/<instance>/tables/<table>`.
* Change streaming must be enabled on the table.
*
*
*
* string table_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for tableName to set.
* @return This builder for chaining.
*/
public Builder setTableNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tableName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object appProfileId_ = "";
/**
*
*
*
* This value specifies routing for replication. If not specified, the
* "default" application profile will be used.
* Single cluster routing must be configured on the profile.
*
*
* string app_profile_id = 2;
*
* @return The appProfileId.
*/
public java.lang.String getAppProfileId() {
java.lang.Object ref = appProfileId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
appProfileId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* This value specifies routing for replication. If not specified, the
* "default" application profile will be used.
* Single cluster routing must be configured on the profile.
*
*
* string app_profile_id = 2;
*
* @return The bytes for appProfileId.
*/
public com.google.protobuf.ByteString getAppProfileIdBytes() {
java.lang.Object ref = appProfileId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
appProfileId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* This value specifies routing for replication. If not specified, the
* "default" application profile will be used.
* Single cluster routing must be configured on the profile.
*
*
* string app_profile_id = 2;
*
* @param value The appProfileId to set.
* @return This builder for chaining.
*/
public Builder setAppProfileId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
appProfileId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* This value specifies routing for replication. If not specified, the
* "default" application profile will be used.
* Single cluster routing must be configured on the profile.
*
*
* string app_profile_id = 2;
*
* @return This builder for chaining.
*/
public Builder clearAppProfileId() {
appProfileId_ = getDefaultInstance().getAppProfileId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* This value specifies routing for replication. If not specified, the
* "default" application profile will be used.
* Single cluster routing must be configured on the profile.
*
*
* string app_profile_id = 2;
*
* @param value The bytes for appProfileId to set.
* @return This builder for chaining.
*/
public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
appProfileId_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.bigtable.v2.StreamPartition partition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.StreamPartition,
com.google.bigtable.v2.StreamPartition.Builder,
com.google.bigtable.v2.StreamPartitionOrBuilder>
partitionBuilder_;
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*
* @return Whether the partition field is set.
*/
public boolean hasPartition() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*
* @return The partition.
*/
public com.google.bigtable.v2.StreamPartition getPartition() {
if (partitionBuilder_ == null) {
return partition_ == null
? com.google.bigtable.v2.StreamPartition.getDefaultInstance()
: partition_;
} else {
return partitionBuilder_.getMessage();
}
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
public Builder setPartition(com.google.bigtable.v2.StreamPartition value) {
if (partitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partition_ = value;
} else {
partitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
public Builder setPartition(com.google.bigtable.v2.StreamPartition.Builder builderForValue) {
if (partitionBuilder_ == null) {
partition_ = builderForValue.build();
} else {
partitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
public Builder mergePartition(com.google.bigtable.v2.StreamPartition value) {
if (partitionBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& partition_ != null
&& partition_ != com.google.bigtable.v2.StreamPartition.getDefaultInstance()) {
getPartitionBuilder().mergeFrom(value);
} else {
partition_ = value;
}
} else {
partitionBuilder_.mergeFrom(value);
}
if (partition_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
public Builder clearPartition() {
bitField0_ = (bitField0_ & ~0x00000004);
partition_ = null;
if (partitionBuilder_ != null) {
partitionBuilder_.dispose();
partitionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
public com.google.bigtable.v2.StreamPartition.Builder getPartitionBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPartitionFieldBuilder().getBuilder();
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
public com.google.bigtable.v2.StreamPartitionOrBuilder getPartitionOrBuilder() {
if (partitionBuilder_ != null) {
return partitionBuilder_.getMessageOrBuilder();
} else {
return partition_ == null
? com.google.bigtable.v2.StreamPartition.getDefaultInstance()
: partition_;
}
}
/**
*
*
*
* The partition to read changes from.
*
*
* .google.bigtable.v2.StreamPartition partition = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.StreamPartition,
com.google.bigtable.v2.StreamPartition.Builder,
com.google.bigtable.v2.StreamPartitionOrBuilder>
getPartitionFieldBuilder() {
if (partitionBuilder_ == null) {
partitionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.StreamPartition,
com.google.bigtable.v2.StreamPartition.Builder,
com.google.bigtable.v2.StreamPartitionOrBuilder>(
getPartition(), getParentForChildren(), isClean());
partition_ = null;
}
return partitionBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
startTimeBuilder_;
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return startFromCase_ == 4;
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
if (startFromCase_ == 4) {
return (com.google.protobuf.Timestamp) startFrom_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
} else {
if (startFromCase_ == 4) {
return startTimeBuilder_.getMessage();
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startFrom_ = value;
onChanged();
} else {
startTimeBuilder_.setMessage(value);
}
startFromCase_ = 4;
return this;
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startFrom_ = builderForValue.build();
onChanged();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
startFromCase_ = 4;
return this;
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (startFromCase_ == 4
&& startFrom_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
startFrom_ =
com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) startFrom_)
.mergeFrom(value)
.buildPartial();
} else {
startFrom_ = value;
}
onChanged();
} else {
if (startFromCase_ == 4) {
startTimeBuilder_.mergeFrom(value);
} else {
startTimeBuilder_.setMessage(value);
}
}
startFromCase_ = 4;
return this;
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public Builder clearStartTime() {
if (startTimeBuilder_ == null) {
if (startFromCase_ == 4) {
startFromCase_ = 0;
startFrom_ = null;
onChanged();
}
} else {
if (startFromCase_ == 4) {
startFromCase_ = 0;
startFrom_ = null;
}
startTimeBuilder_.clear();
}
return this;
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if ((startFromCase_ == 4) && (startTimeBuilder_ != null)) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
if (startFromCase_ == 4) {
return (com.google.protobuf.Timestamp) startFrom_;
}
return com.google.protobuf.Timestamp.getDefaultInstance();
}
}
/**
*
*
*
* Start reading the stream at the specified timestamp. This timestamp must
* be within the change stream retention period, less than or equal to the
* current time, and after change stream creation, whichever is greater.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp start_time = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
if (!(startFromCase_ == 4)) {
startFrom_ = com.google.protobuf.Timestamp.getDefaultInstance();
}
startTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
(com.google.protobuf.Timestamp) startFrom_, getParentForChildren(), isClean());
startFrom_ = null;
}
startFromCase_ = 4;
onChanged();
return startTimeBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.StreamContinuationTokens,
com.google.bigtable.v2.StreamContinuationTokens.Builder,
com.google.bigtable.v2.StreamContinuationTokensOrBuilder>
continuationTokensBuilder_;
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*
* @return Whether the continuationTokens field is set.
*/
@java.lang.Override
public boolean hasContinuationTokens() {
return startFromCase_ == 6;
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*
* @return The continuationTokens.
*/
@java.lang.Override
public com.google.bigtable.v2.StreamContinuationTokens getContinuationTokens() {
if (continuationTokensBuilder_ == null) {
if (startFromCase_ == 6) {
return (com.google.bigtable.v2.StreamContinuationTokens) startFrom_;
}
return com.google.bigtable.v2.StreamContinuationTokens.getDefaultInstance();
} else {
if (startFromCase_ == 6) {
return continuationTokensBuilder_.getMessage();
}
return com.google.bigtable.v2.StreamContinuationTokens.getDefaultInstance();
}
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
public Builder setContinuationTokens(com.google.bigtable.v2.StreamContinuationTokens value) {
if (continuationTokensBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startFrom_ = value;
onChanged();
} else {
continuationTokensBuilder_.setMessage(value);
}
startFromCase_ = 6;
return this;
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
public Builder setContinuationTokens(
com.google.bigtable.v2.StreamContinuationTokens.Builder builderForValue) {
if (continuationTokensBuilder_ == null) {
startFrom_ = builderForValue.build();
onChanged();
} else {
continuationTokensBuilder_.setMessage(builderForValue.build());
}
startFromCase_ = 6;
return this;
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
public Builder mergeContinuationTokens(com.google.bigtable.v2.StreamContinuationTokens value) {
if (continuationTokensBuilder_ == null) {
if (startFromCase_ == 6
&& startFrom_ != com.google.bigtable.v2.StreamContinuationTokens.getDefaultInstance()) {
startFrom_ =
com.google.bigtable.v2.StreamContinuationTokens.newBuilder(
(com.google.bigtable.v2.StreamContinuationTokens) startFrom_)
.mergeFrom(value)
.buildPartial();
} else {
startFrom_ = value;
}
onChanged();
} else {
if (startFromCase_ == 6) {
continuationTokensBuilder_.mergeFrom(value);
} else {
continuationTokensBuilder_.setMessage(value);
}
}
startFromCase_ = 6;
return this;
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
public Builder clearContinuationTokens() {
if (continuationTokensBuilder_ == null) {
if (startFromCase_ == 6) {
startFromCase_ = 0;
startFrom_ = null;
onChanged();
}
} else {
if (startFromCase_ == 6) {
startFromCase_ = 0;
startFrom_ = null;
}
continuationTokensBuilder_.clear();
}
return this;
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
public com.google.bigtable.v2.StreamContinuationTokens.Builder getContinuationTokensBuilder() {
return getContinuationTokensFieldBuilder().getBuilder();
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
@java.lang.Override
public com.google.bigtable.v2.StreamContinuationTokensOrBuilder
getContinuationTokensOrBuilder() {
if ((startFromCase_ == 6) && (continuationTokensBuilder_ != null)) {
return continuationTokensBuilder_.getMessageOrBuilder();
} else {
if (startFromCase_ == 6) {
return (com.google.bigtable.v2.StreamContinuationTokens) startFrom_;
}
return com.google.bigtable.v2.StreamContinuationTokens.getDefaultInstance();
}
}
/**
*
*
*
* Tokens that describe how to resume reading a stream where reading
* previously left off. If specified, changes will be read starting at the
* the position. Tokens are delivered on the stream as part of `Heartbeat`
* and `CloseStream` messages.
*
* If a single token is provided, the token’s partition must exactly match
* the request’s partition. If multiple tokens are provided, as in the case
* of a partition merge, the union of the token partitions must exactly
* cover the request’s partition. Otherwise, INVALID_ARGUMENT will be
* returned.
*
*
* .google.bigtable.v2.StreamContinuationTokens continuation_tokens = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.StreamContinuationTokens,
com.google.bigtable.v2.StreamContinuationTokens.Builder,
com.google.bigtable.v2.StreamContinuationTokensOrBuilder>
getContinuationTokensFieldBuilder() {
if (continuationTokensBuilder_ == null) {
if (!(startFromCase_ == 6)) {
startFrom_ = com.google.bigtable.v2.StreamContinuationTokens.getDefaultInstance();
}
continuationTokensBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.StreamContinuationTokens,
com.google.bigtable.v2.StreamContinuationTokens.Builder,
com.google.bigtable.v2.StreamContinuationTokensOrBuilder>(
(com.google.bigtable.v2.StreamContinuationTokens) startFrom_,
getParentForChildren(),
isClean());
startFrom_ = null;
}
startFromCase_ = 6;
onChanged();
return continuationTokensBuilder_;
}
private com.google.protobuf.Timestamp endTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
endTimeBuilder_;
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*
* @return Whether the endTime field is set.
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*
* @return The endTime.
*/
public com.google.protobuf.Timestamp getEndTime() {
if (endTimeBuilder_ == null) {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
} else {
return endTimeBuilder_.getMessage();
}
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
} else {
endTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (endTimeBuilder_ == null) {
endTime_ = builderForValue.build();
} else {
endTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& endTime_ != null
&& endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getEndTimeBuilder().mergeFrom(value);
} else {
endTime_ = value;
}
} else {
endTimeBuilder_.mergeFrom(value);
}
if (endTime_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000020);
endTime_ = null;
if (endTimeBuilder_ != null) {
endTimeBuilder_.dispose();
endTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
if (endTimeBuilder_ != null) {
return endTimeBuilder_.getMessageOrBuilder();
} else {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
}
/**
*
*
*
* If specified, OK will be returned when the stream advances beyond
* this time. Otherwise, changes will be continuously delivered on the stream.
* This value is inclusive and will be truncated to microsecond granularity.
*
*
* .google.protobuf.Timestamp end_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getEndTimeFieldBuilder() {
if (endTimeBuilder_ == null) {
endTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getEndTime(), getParentForChildren(), isClean());
endTime_ = null;
}
return endTimeBuilder_;
}
private com.google.protobuf.Duration heartbeatDuration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
heartbeatDurationBuilder_;
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*
* @return Whether the heartbeatDuration field is set.
*/
public boolean hasHeartbeatDuration() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*
* @return The heartbeatDuration.
*/
public com.google.protobuf.Duration getHeartbeatDuration() {
if (heartbeatDurationBuilder_ == null) {
return heartbeatDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: heartbeatDuration_;
} else {
return heartbeatDurationBuilder_.getMessage();
}
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
public Builder setHeartbeatDuration(com.google.protobuf.Duration value) {
if (heartbeatDurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
heartbeatDuration_ = value;
} else {
heartbeatDurationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
public Builder setHeartbeatDuration(com.google.protobuf.Duration.Builder builderForValue) {
if (heartbeatDurationBuilder_ == null) {
heartbeatDuration_ = builderForValue.build();
} else {
heartbeatDurationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
public Builder mergeHeartbeatDuration(com.google.protobuf.Duration value) {
if (heartbeatDurationBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& heartbeatDuration_ != null
&& heartbeatDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
getHeartbeatDurationBuilder().mergeFrom(value);
} else {
heartbeatDuration_ = value;
}
} else {
heartbeatDurationBuilder_.mergeFrom(value);
}
if (heartbeatDuration_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
public Builder clearHeartbeatDuration() {
bitField0_ = (bitField0_ & ~0x00000040);
heartbeatDuration_ = null;
if (heartbeatDurationBuilder_ != null) {
heartbeatDurationBuilder_.dispose();
heartbeatDurationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
public com.google.protobuf.Duration.Builder getHeartbeatDurationBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getHeartbeatDurationFieldBuilder().getBuilder();
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
public com.google.protobuf.DurationOrBuilder getHeartbeatDurationOrBuilder() {
if (heartbeatDurationBuilder_ != null) {
return heartbeatDurationBuilder_.getMessageOrBuilder();
} else {
return heartbeatDuration_ == null
? com.google.protobuf.Duration.getDefaultInstance()
: heartbeatDuration_;
}
}
/**
*
*
*
* If specified, the duration between `Heartbeat` messages on the stream.
* Otherwise, defaults to 5 seconds.
*
*
* .google.protobuf.Duration heartbeat_duration = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>
getHeartbeatDurationFieldBuilder() {
if (heartbeatDurationBuilder_ == null) {
heartbeatDurationBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration,
com.google.protobuf.Duration.Builder,
com.google.protobuf.DurationOrBuilder>(
getHeartbeatDuration(), getParentForChildren(), isClean());
heartbeatDuration_ = null;
}
return heartbeatDurationBuilder_;
}
@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.ReadChangeStreamRequest)
}
// @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadChangeStreamRequest)
private static final com.google.bigtable.v2.ReadChangeStreamRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bigtable.v2.ReadChangeStreamRequest();
}
public static com.google.bigtable.v2.ReadChangeStreamRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadChangeStreamRequest 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.ReadChangeStreamRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}