
com.google.bigtable.v2.PrepareQueryResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-bigtable-v2 Show documentation
Show all versions of proto-google-cloud-bigtable-v2 Show documentation
PROTO library for proto-google-cloud-bigtable-v2
The newest version!
/*
* Copyright 2025 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/bigtable.proto
// Protobuf Java Version: 3.25.8
package com.google.bigtable.v2;
/**
*
*
*
* Response message for Bigtable.PrepareQueryResponse
*
*
* Protobuf type {@code google.bigtable.v2.PrepareQueryResponse}
*/
public final class PrepareQueryResponse extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.bigtable.v2.PrepareQueryResponse)
PrepareQueryResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use PrepareQueryResponse.newBuilder() to construct.
private PrepareQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PrepareQueryResponse() {
preparedQuery_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PrepareQueryResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_PrepareQueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.PrepareQueryResponse.class,
com.google.bigtable.v2.PrepareQueryResponse.Builder.class);
}
private int bitField0_;
public static final int METADATA_FIELD_NUMBER = 1;
private com.google.bigtable.v2.ResultSetMetadata metadata_;
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*
* @return The metadata.
*/
@java.lang.Override
public com.google.bigtable.v2.ResultSetMetadata getMetadata() {
return metadata_ == null
? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
@java.lang.Override
public com.google.bigtable.v2.ResultSetMetadataOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance()
: metadata_;
}
public static final int PREPARED_QUERY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString preparedQuery_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* A serialized prepared query. Clients should treat this as an opaque
* blob of bytes to send in `ExecuteQueryRequest`.
*
*
* bytes prepared_query = 2;
*
* @return The preparedQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPreparedQuery() {
return preparedQuery_;
}
public static final int VALID_UNTIL_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp validUntil_;
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*
* @return Whether the validUntil field is set.
*/
@java.lang.Override
public boolean hasValidUntil() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*
* @return The validUntil.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getValidUntil() {
return validUntil_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validUntil_;
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getValidUntilOrBuilder() {
return validUntil_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validUntil_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMetadata());
}
if (!preparedQuery_.isEmpty()) {
output.writeBytes(2, preparedQuery_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getValidUntil());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMetadata());
}
if (!preparedQuery_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, preparedQuery_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getValidUntil());
}
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.PrepareQueryResponse)) {
return super.equals(obj);
}
com.google.bigtable.v2.PrepareQueryResponse other =
(com.google.bigtable.v2.PrepareQueryResponse) obj;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata().equals(other.getMetadata())) return false;
}
if (!getPreparedQuery().equals(other.getPreparedQuery())) return false;
if (hasValidUntil() != other.hasValidUntil()) return false;
if (hasValidUntil()) {
if (!getValidUntil().equals(other.getValidUntil())) 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();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + PREPARED_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getPreparedQuery().hashCode();
if (hasValidUntil()) {
hash = (37 * hash) + VALID_UNTIL_FIELD_NUMBER;
hash = (53 * hash) + getValidUntil().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.bigtable.v2.PrepareQueryResponse parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.PrepareQueryResponse 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.PrepareQueryResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.PrepareQueryResponse 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.PrepareQueryResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.PrepareQueryResponse parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.PrepareQueryResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.PrepareQueryResponse 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.PrepareQueryResponse parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.PrepareQueryResponse 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.PrepareQueryResponse parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.PrepareQueryResponse 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.PrepareQueryResponse 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;
}
/**
*
*
*
* Response message for Bigtable.PrepareQueryResponse
*
*
* Protobuf type {@code google.bigtable.v2.PrepareQueryResponse}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.bigtable.v2.PrepareQueryResponse)
com.google.bigtable.v2.PrepareQueryResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_PrepareQueryResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.PrepareQueryResponse.class,
com.google.bigtable.v2.PrepareQueryResponse.Builder.class);
}
// Construct using com.google.bigtable.v2.PrepareQueryResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
getValidUntilFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
preparedQuery_ = com.google.protobuf.ByteString.EMPTY;
validUntil_ = null;
if (validUntilBuilder_ != null) {
validUntilBuilder_.dispose();
validUntilBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.bigtable.v2.BigtableProto
.internal_static_google_bigtable_v2_PrepareQueryResponse_descriptor;
}
@java.lang.Override
public com.google.bigtable.v2.PrepareQueryResponse getDefaultInstanceForType() {
return com.google.bigtable.v2.PrepareQueryResponse.getDefaultInstance();
}
@java.lang.Override
public com.google.bigtable.v2.PrepareQueryResponse build() {
com.google.bigtable.v2.PrepareQueryResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bigtable.v2.PrepareQueryResponse buildPartial() {
com.google.bigtable.v2.PrepareQueryResponse result =
new com.google.bigtable.v2.PrepareQueryResponse(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.bigtable.v2.PrepareQueryResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.preparedQuery_ = preparedQuery_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.validUntil_ = validUntilBuilder_ == null ? validUntil_ : validUntilBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.PrepareQueryResponse) {
return mergeFrom((com.google.bigtable.v2.PrepareQueryResponse) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bigtable.v2.PrepareQueryResponse other) {
if (other == com.google.bigtable.v2.PrepareQueryResponse.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.getPreparedQuery() != com.google.protobuf.ByteString.EMPTY) {
setPreparedQuery(other.getPreparedQuery());
}
if (other.hasValidUntil()) {
mergeValidUntil(other.getValidUntil());
}
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:
{
input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
preparedQuery_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getValidUntilFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 com.google.bigtable.v2.ResultSetMetadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.ResultSetMetadata,
com.google.bigtable.v2.ResultSetMetadata.Builder,
com.google.bigtable.v2.ResultSetMetadataOrBuilder>
metadataBuilder_;
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*
* @return The metadata.
*/
public com.google.bigtable.v2.ResultSetMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
public Builder setMetadata(com.google.bigtable.v2.ResultSetMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
public Builder setMetadata(com.google.bigtable.v2.ResultSetMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
public Builder mergeMetadata(com.google.bigtable.v2.ResultSetMetadata value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& metadata_ != null
&& metadata_ != com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000001);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
public com.google.bigtable.v2.ResultSetMetadata.Builder getMetadataBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
public com.google.bigtable.v2.ResultSetMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? com.google.bigtable.v2.ResultSetMetadata.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Structure of rows in the response stream of `ExecuteQueryResponse` for the
* returned `prepared_query`.
*
*
* .google.bigtable.v2.ResultSetMetadata metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.ResultSetMetadata,
com.google.bigtable.v2.ResultSetMetadata.Builder,
com.google.bigtable.v2.ResultSetMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.ResultSetMetadata,
com.google.bigtable.v2.ResultSetMetadata.Builder,
com.google.bigtable.v2.ResultSetMetadataOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private com.google.protobuf.ByteString preparedQuery_ = com.google.protobuf.ByteString.EMPTY;
/**
*
*
*
* A serialized prepared query. Clients should treat this as an opaque
* blob of bytes to send in `ExecuteQueryRequest`.
*
*
* bytes prepared_query = 2;
*
* @return The preparedQuery.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPreparedQuery() {
return preparedQuery_;
}
/**
*
*
*
* A serialized prepared query. Clients should treat this as an opaque
* blob of bytes to send in `ExecuteQueryRequest`.
*
*
* bytes prepared_query = 2;
*
* @param value The preparedQuery to set.
* @return This builder for chaining.
*/
public Builder setPreparedQuery(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
preparedQuery_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* A serialized prepared query. Clients should treat this as an opaque
* blob of bytes to send in `ExecuteQueryRequest`.
*
*
* bytes prepared_query = 2;
*
* @return This builder for chaining.
*/
public Builder clearPreparedQuery() {
bitField0_ = (bitField0_ & ~0x00000002);
preparedQuery_ = getDefaultInstance().getPreparedQuery();
onChanged();
return this;
}
private com.google.protobuf.Timestamp validUntil_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
validUntilBuilder_;
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*
* @return Whether the validUntil field is set.
*/
public boolean hasValidUntil() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*
* @return The validUntil.
*/
public com.google.protobuf.Timestamp getValidUntil() {
if (validUntilBuilder_ == null) {
return validUntil_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: validUntil_;
} else {
return validUntilBuilder_.getMessage();
}
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
public Builder setValidUntil(com.google.protobuf.Timestamp value) {
if (validUntilBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
validUntil_ = value;
} else {
validUntilBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
public Builder setValidUntil(com.google.protobuf.Timestamp.Builder builderForValue) {
if (validUntilBuilder_ == null) {
validUntil_ = builderForValue.build();
} else {
validUntilBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
public Builder mergeValidUntil(com.google.protobuf.Timestamp value) {
if (validUntilBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& validUntil_ != null
&& validUntil_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getValidUntilBuilder().mergeFrom(value);
} else {
validUntil_ = value;
}
} else {
validUntilBuilder_.mergeFrom(value);
}
if (validUntil_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
public Builder clearValidUntil() {
bitField0_ = (bitField0_ & ~0x00000004);
validUntil_ = null;
if (validUntilBuilder_ != null) {
validUntilBuilder_.dispose();
validUntilBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
public com.google.protobuf.Timestamp.Builder getValidUntilBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getValidUntilFieldBuilder().getBuilder();
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
public com.google.protobuf.TimestampOrBuilder getValidUntilOrBuilder() {
if (validUntilBuilder_ != null) {
return validUntilBuilder_.getMessageOrBuilder();
} else {
return validUntil_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: validUntil_;
}
}
/**
*
*
*
* The time at which the prepared query token becomes invalid.
* A token may become invalid early due to changes in the data being read, but
* it provides a guideline to refresh query plans asynchronously.
*
*
* .google.protobuf.Timestamp valid_until = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getValidUntilFieldBuilder() {
if (validUntilBuilder_ == null) {
validUntilBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getValidUntil(), getParentForChildren(), isClean());
validUntil_ = null;
}
return validUntilBuilder_;
}
@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.PrepareQueryResponse)
}
// @@protoc_insertion_point(class_scope:google.bigtable.v2.PrepareQueryResponse)
private static final com.google.bigtable.v2.PrepareQueryResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bigtable.v2.PrepareQueryResponse();
}
public static com.google.bigtable.v2.PrepareQueryResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PrepareQueryResponse 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.PrepareQueryResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy