diff --git a/generation_config.yaml b/generation_config.yaml index 75326dc5f29c..14d6c8cb0844 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 63161c080e7eb3dd1d4fe76db1fad108b6ac9a27 +googleapis_commitish: 0da61b4af3b87dd71dd557457b5099e23154b297 libraries_bom_version: 26.61.0 template_excludes: - .gitignore diff --git a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json index 2db58f65db95..65cd1d20d556 100644 --- a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json +++ b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json @@ -2870,6 +2870,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.Type$Enum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Enum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.Type$Float32", "queryAllDeclaredConstructors": true, @@ -2996,6 +3014,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.Type$Proto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.Type$Proto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.Type$String", "queryAllDeclaredConstructors": true, diff --git a/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java b/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java index 247ead57d2f2..b348a2aed45c 100644 --- a/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java +++ b/grpc-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableGrpc.java @@ -693,10 +693,10 @@ default void readModifyWriteRow( * * *
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Returns the current list of partitions that make up the table's
* change stream. The union of partitions will cover the entire keyspace.
* Partitions can be read with `ReadChangeStream`.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
default void generateInitialChangeStreamPartitions(
@@ -712,10 +712,10 @@ default void generateInitialChangeStreamPartitions(
*
*
*
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Reads changes from a table's change stream. Changes will
* reflect both user-initiated mutations and mutations that are caused by
* garbage collection.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
default void readChangeStream(
@@ -915,10 +915,10 @@ public void readModifyWriteRow(
*
*
*
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Returns the current list of partitions that make up the table's
* change stream. The union of partitions will cover the entire keyspace.
* Partitions can be read with `ReadChangeStream`.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
public void generateInitialChangeStreamPartitions(
@@ -936,10 +936,10 @@ public void generateInitialChangeStreamPartitions(
*
*
*
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Reads changes from a table's change stream. Changes will
* reflect both user-initiated mutations and mutations that are caused by
* garbage collection.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
public void readChangeStream(
@@ -1117,10 +1117,10 @@ public com.google.bigtable.v2.ReadModifyWriteRowResponse readModifyWriteRow(
*
*
*
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Returns the current list of partitions that make up the table's
* change stream. The union of partitions will cover the entire keyspace.
* Partitions can be read with `ReadChangeStream`.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
@@ -1139,10 +1139,10 @@ public com.google.bigtable.v2.ReadModifyWriteRowResponse readModifyWriteRow(
*
*
*
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Reads changes from a table's change stream. Changes will
* reflect both user-initiated mutations and mutations that are caused by
* garbage collection.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918")
@@ -1308,10 +1308,10 @@ public com.google.bigtable.v2.ReadModifyWriteRowResponse readModifyWriteRow(
*
*
*
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Returns the current list of partitions that make up the table's
* change stream. The union of partitions will cover the entire keyspace.
* Partitions can be read with `ReadChangeStream`.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
public java.util.Iterator
- * NOTE: This API is intended to be used by Apache Beam BigtableIO.
* Reads changes from a table's change stream. Changes will
* reflect both user-initiated mutations and mutations that are caused by
* garbage collection.
+ * NOTE: This API is only intended to be used by Apache Beam BigtableIO.
*
*/
public java.util.Iterator
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return Whether the elementType field is set.
+ * @return The schemaBundleId.
*/
- boolean hasElementType();
+ java.lang.String getSchemaBundleId();
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return The elementType.
+ * @return The bytes for schemaBundleId.
*/
- com.google.bigtable.admin.v2.Type getElementType();
+ com.google.protobuf.ByteString getSchemaBundleIdBytes();
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The fully qualified name of the protobuf message, including package. In
+ * the format of "foo.bar.Message".
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string message_name = 2;
+ *
+ * @return The messageName.
*/
- com.google.bigtable.admin.v2.TypeOrBuilder getElementTypeOrBuilder();
+ java.lang.String getMessageName();
+
+ /**
+ *
+ *
+ * + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + *+ * + *
string message_name = 2;
+ *
+ * @return The bytes for messageName.
+ */
+ com.google.protobuf.ByteString getMessageNameBytes();
}
/**
*
*
*
- * An ordered list of elements of a given type.
- * Values of type `Array` are stored in `Value.array_value`.
+ * A protobuf message type.
+ * Values of type `Proto` are stored in `Value.bytes_value`.
*
*
- * Protobuf type {@code google.bigtable.admin.v2.Type.Array}
+ * Protobuf type {@code google.bigtable.admin.v2.Type.Proto}
*/
- public static final class Array extends com.google.protobuf.GeneratedMessageV3
+ public static final class Proto extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Array)
- ArrayOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Proto)
+ ProtoOrBuilder {
private static final long serialVersionUID = 0L;
- // Use Array.newBuilder() to construct.
- private Array(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use Proto.newBuilder() to construct.
+ private Proto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Array() {}
+ private Proto() {
+ schemaBundleId_ = "";
+ messageName_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new Array();
+ return new Proto();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.admin.v2.TypesProto
- .internal_static_google_bigtable_admin_v2_Type_Array_descriptor;
+ .internal_static_google_bigtable_admin_v2_Type_Proto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.admin.v2.TypesProto
- .internal_static_google_bigtable_admin_v2_Type_Array_fieldAccessorTable
+ .internal_static_google_bigtable_admin_v2_Type_Proto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.bigtable.admin.v2.Type.Array.class,
- com.google.bigtable.admin.v2.Type.Array.Builder.class);
+ com.google.bigtable.admin.v2.Type.Proto.class,
+ com.google.bigtable.admin.v2.Type.Proto.Builder.class);
}
- private int bitField0_;
- public static final int ELEMENT_TYPE_FIELD_NUMBER = 1;
- private com.google.bigtable.admin.v2.Type elementType_;
+ public static final int SCHEMA_BUNDLE_ID_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaBundleId_ = "";
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return Whether the elementType field is set.
+ * @return The schemaBundleId.
*/
@java.lang.Override
- public boolean hasElementType() {
- return ((bitField0_ & 0x00000001) != 0);
+ public java.lang.String getSchemaBundleId() {
+ java.lang.Object ref = schemaBundleId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaBundleId_ = s;
+ return s;
+ }
}
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return The elementType.
+ * @return The bytes for schemaBundleId.
*/
@java.lang.Override
- public com.google.bigtable.admin.v2.Type getElementType() {
- return elementType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : elementType_;
+ public com.google.protobuf.ByteString getSchemaBundleIdBytes() {
+ java.lang.Object ref = schemaBundleId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaBundleId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
+ public static final int MESSAGE_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object messageName_ = "";
+
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The fully qualified name of the protobuf message, including package. In
+ * the format of "foo.bar.Message".
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string message_name = 2;
+ *
+ * @return The messageName.
*/
@java.lang.Override
- public com.google.bigtable.admin.v2.TypeOrBuilder getElementTypeOrBuilder() {
- return elementType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : elementType_;
+ public java.lang.String getMessageName() {
+ java.lang.Object ref = messageName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ messageName_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + *+ * + *
string message_name = 2;
+ *
+ * @return The bytes for messageName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMessageNameBytes() {
+ java.lang.Object ref = messageName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ messageName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
@@ -17540,8 +17614,11 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getElementType());
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaBundleId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaBundleId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, messageName_);
}
getUnknownFields().writeTo(output);
}
@@ -17552,8 +17629,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getElementType());
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaBundleId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaBundleId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, messageName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -17565,15 +17645,13 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.bigtable.admin.v2.Type.Array)) {
+ if (!(obj instanceof com.google.bigtable.admin.v2.Type.Proto)) {
return super.equals(obj);
}
- com.google.bigtable.admin.v2.Type.Array other = (com.google.bigtable.admin.v2.Type.Array) obj;
+ com.google.bigtable.admin.v2.Type.Proto other = (com.google.bigtable.admin.v2.Type.Proto) obj;
- if (hasElementType() != other.hasElementType()) return false;
- if (hasElementType()) {
- if (!getElementType().equals(other.getElementType())) return false;
- }
+ if (!getSchemaBundleId().equals(other.getSchemaBundleId())) return false;
+ if (!getMessageName().equals(other.getMessageName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -17585,80 +17663,80 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (hasElementType()) {
- hash = (37 * hash) + ELEMENT_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getElementType().hashCode();
- }
+ hash = (37 * hash) + SCHEMA_BUNDLE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaBundleId().hashCode();
+ hash = (37 * hash) + MESSAGE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getMessageName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(java.nio.ByteBuffer data)
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto 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.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto 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.admin.v2.Type.Array parseFrom(byte[] data)
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(java.io.InputStream input)
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto 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.admin.v2.Type.Array parseDelimitedFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.bigtable.admin.v2.Type.Array parseDelimitedFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto 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.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.bigtable.admin.v2.Type.Array parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Proto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -17675,7 +17753,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Array prototype) {
+ public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Proto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -17695,74 +17773,62 @@ protected Builder newBuilderForType(
*
*
*
- * An ordered list of elements of a given type.
- * Values of type `Array` are stored in `Value.array_value`.
+ * A protobuf message type.
+ * Values of type `Proto` are stored in `Value.bytes_value`.
*
*
- * Protobuf type {@code google.bigtable.admin.v2.Type.Array}
+ * Protobuf type {@code google.bigtable.admin.v2.Type.Proto}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return Whether the elementType field is set.
+ * @return The schemaBundleId.
*/
- public boolean hasElementType() {
- return ((bitField0_ & 0x00000001) != 0);
+ public java.lang.String getSchemaBundleId() {
+ java.lang.Object ref = schemaBundleId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaBundleId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return The elementType.
+ * @return The bytes for schemaBundleId.
*/
- public com.google.bigtable.admin.v2.Type getElementType() {
- if (elementTypeBuilder_ == null) {
- return elementType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : elementType_;
+ public com.google.protobuf.ByteString getSchemaBundleIdBytes() {
+ java.lang.Object ref = schemaBundleId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaBundleId_ = b;
+ return b;
} else {
- return elementTypeBuilder_.getMessage();
+ return (com.google.protobuf.ByteString) ref;
}
}
@@ -17939,20 +18022,19 @@ public com.google.bigtable.admin.v2.Type getElementType() {
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
+ *
+ * @param value The schemaBundleId to set.
+ * @return This builder for chaining.
*/
- public Builder setElementType(com.google.bigtable.admin.v2.Type value) {
- if (elementTypeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- elementType_ = value;
- } else {
- elementTypeBuilder_.setMessage(value);
+ public Builder setSchemaBundleId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ schemaBundleId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
@@ -17962,18 +18044,16 @@ public Builder setElementType(com.google.bigtable.admin.v2.Type value) {
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
+ *
+ * @return This builder for chaining.
*/
- public Builder setElementType(com.google.bigtable.admin.v2.Type.Builder builderForValue) {
- if (elementTypeBuilder_ == null) {
- elementType_ = builderForValue.build();
- } else {
- elementTypeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
+ public Builder clearSchemaBundleId() {
+ schemaBundleId_ = getDefaultInstance().getSchemaBundleId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -17982,108 +18062,139 @@ public Builder setElementType(com.google.bigtable.admin.v2.Type.Builder builderF
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The ID of the schema bundle that this proto is defined in.
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string schema_bundle_id = 1;
+ *
+ * @param value The bytes for schemaBundleId to set.
+ * @return This builder for chaining.
*/
- public Builder mergeElementType(com.google.bigtable.admin.v2.Type value) {
- if (elementTypeBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && elementType_ != null
- && elementType_ != com.google.bigtable.admin.v2.Type.getDefaultInstance()) {
- getElementTypeBuilder().mergeFrom(value);
- } else {
- elementType_ = value;
- }
- } else {
- elementTypeBuilder_.mergeFrom(value);
- }
- if (elementType_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
+ public Builder setSchemaBundleIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+ schemaBundleId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
+ private java.lang.Object messageName_ = "";
+
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The fully qualified name of the protobuf message, including package. In
+ * the format of "foo.bar.Message".
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string message_name = 2;
+ *
+ * @return The messageName.
*/
- public Builder clearElementType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- elementType_ = null;
- if (elementTypeBuilder_ != null) {
- elementTypeBuilder_.dispose();
- elementTypeBuilder_ = null;
+ public java.lang.String getMessageName() {
+ java.lang.Object ref = messageName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ messageName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
- onChanged();
- return this;
}
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The fully qualified name of the protobuf message, including package. In
+ * the format of "foo.bar.Message".
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string message_name = 2;
+ *
+ * @return The bytes for messageName.
*/
- public com.google.bigtable.admin.v2.Type.Builder getElementTypeBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getElementTypeFieldBuilder().getBuilder();
+ public com.google.protobuf.ByteString getMessageNameBytes() {
+ java.lang.Object ref = messageName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ messageName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The fully qualified name of the protobuf message, including package. In
+ * the format of "foo.bar.Message".
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string message_name = 2;
+ *
+ * @param value The messageName to set.
+ * @return This builder for chaining.
*/
- public com.google.bigtable.admin.v2.TypeOrBuilder getElementTypeOrBuilder() {
- if (elementTypeBuilder_ != null) {
- return elementTypeBuilder_.getMessageOrBuilder();
- } else {
- return elementType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : elementType_;
+ public Builder setMessageName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ messageName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
}
/**
*
*
*
- * The type of the elements in the array. This must not be `Array`.
+ * The fully qualified name of the protobuf message, including package. In
+ * the format of "foo.bar.Message".
*
*
- * .google.bigtable.admin.v2.Type element_type = 1;
+ * string message_name = 2;
+ *
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>
- getElementTypeFieldBuilder() {
- if (elementTypeBuilder_ == null) {
- elementTypeBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>(
- getElementType(), getParentForChildren(), isClean());
- elementType_ = null;
+ public Builder clearMessageName() {
+ messageName_ = getDefaultInstance().getMessageName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * The fully qualified name of the protobuf message, including package. In + * the format of "foo.bar.Message". + *+ * + *
string message_name = 2;
+ *
+ * @param value The bytes for messageName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return elementTypeBuilder_;
+ checkByteStringIsUtf8(value);
+ messageName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
}
@java.lang.Override
@@ -18098,24 +18209,24 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Array)
+ // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Proto)
}
- // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Array)
- private static final com.google.bigtable.admin.v2.Type.Array DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Proto)
+ private static final com.google.bigtable.admin.v2.Type.Proto DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Array();
+ DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Proto();
}
- public static com.google.bigtable.admin.v2.Type.Array getDefaultInstance() {
+ public static com.google.bigtable.admin.v2.Type.Proto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return Whether the keyType field is set.
+ * @return The schemaBundleId.
*/
- boolean hasKeyType();
+ java.lang.String getSchemaBundleId();
/**
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
- *
- * @return The keyType.
- */
- com.google.bigtable.admin.v2.Type getKeyType();
-
- /**
- *
- *
- * - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - *+ *
string schema_bundle_id = 1;
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * @return The bytes for schemaBundleId.
*/
- com.google.bigtable.admin.v2.TypeOrBuilder getKeyTypeOrBuilder();
+ com.google.protobuf.ByteString getSchemaBundleIdBytes();
/**
*
*
*
- * The type of the values in a map.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type value_type = 2;
+ * string enum_name = 2;
*
- * @return Whether the valueType field is set.
+ * @return The enumName.
*/
- boolean hasValueType();
+ java.lang.String getEnumName();
/**
*
*
*
- * The type of the values in a map.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type value_type = 2;
- *
- * @return The valueType.
- */
- com.google.bigtable.admin.v2.Type getValueType();
-
- /**
- *
+ * string enum_name = 2;
*
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
+ * @return The bytes for enumName.
*/
- com.google.bigtable.admin.v2.TypeOrBuilder getValueTypeOrBuilder();
+ com.google.protobuf.ByteString getEnumNameBytes();
}
/**
*
*
*
- * A mapping of keys to values of a given type.
- * Values of type `Map` are stored in a `Value.array_value` where each entry
- * is another `Value.array_value` with two elements (the key and the value,
- * in that order).
- * Normally encoded Map values won't have repeated keys, however, clients are
- * expected to handle the case in which they do. If the same key appears
- * multiple times, the _last_ value takes precedence.
+ * A protobuf enum type.
+ * Values of type `Enum` are stored in `Value.int_value`.
*
*
- * Protobuf type {@code google.bigtable.admin.v2.Type.Map}
+ * Protobuf type {@code google.bigtable.admin.v2.Type.Enum}
*/
- public static final class Map extends com.google.protobuf.GeneratedMessageV3
+ public static final class Enum extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Map)
- MapOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.Type.Enum)
+ EnumOrBuilder {
private static final long serialVersionUID = 0L;
- // Use Map.newBuilder() to construct.
- private Map(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use Enum.newBuilder() to construct.
+ private Enum(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Map() {}
+ private Enum() {
+ schemaBundleId_ = "";
+ enumName_ = "";
+ }
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new Map();
+ return new Enum();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.admin.v2.TypesProto
- .internal_static_google_bigtable_admin_v2_Type_Map_descriptor;
+ .internal_static_google_bigtable_admin_v2_Type_Enum_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.admin.v2.TypesProto
- .internal_static_google_bigtable_admin_v2_Type_Map_fieldAccessorTable
+ .internal_static_google_bigtable_admin_v2_Type_Enum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.bigtable.admin.v2.Type.Map.class,
- com.google.bigtable.admin.v2.Type.Map.Builder.class);
+ com.google.bigtable.admin.v2.Type.Enum.class,
+ com.google.bigtable.admin.v2.Type.Enum.Builder.class);
}
- private int bitField0_;
- public static final int KEY_TYPE_FIELD_NUMBER = 1;
- private com.google.bigtable.admin.v2.Type keyType_;
+ public static final int SCHEMA_BUNDLE_ID_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object schemaBundleId_ = "";
/**
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return Whether the keyType field is set.
+ * @return The schemaBundleId.
*/
@java.lang.Override
- public boolean hasKeyType() {
- return ((bitField0_ & 0x00000001) != 0);
+ public java.lang.String getSchemaBundleId() {
+ java.lang.Object ref = schemaBundleId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaBundleId_ = s;
+ return s;
+ }
}
/**
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return The keyType.
+ * @return The bytes for schemaBundleId.
*/
@java.lang.Override
- public com.google.bigtable.admin.v2.Type getKeyType() {
- return keyType_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : keyType_;
+ public com.google.protobuf.ByteString getSchemaBundleIdBytes() {
+ java.lang.Object ref = schemaBundleId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaBundleId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- /**
- *
- *
- * - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - *- * - *
.google.bigtable.admin.v2.Type key_type = 1;
- */
- @java.lang.Override
- public com.google.bigtable.admin.v2.TypeOrBuilder getKeyTypeOrBuilder() {
- return keyType_ == null ? com.google.bigtable.admin.v2.Type.getDefaultInstance() : keyType_;
- }
+ public static final int ENUM_NAME_FIELD_NUMBER = 2;
- public static final int VALUE_TYPE_FIELD_NUMBER = 2;
- private com.google.bigtable.admin.v2.Type valueType_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object enumName_ = "";
/**
*
*
*
- * The type of the values in a map.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type value_type = 2;
+ * string enum_name = 2;
*
- * @return Whether the valueType field is set.
+ * @return The enumName.
*/
@java.lang.Override
- public boolean hasValueType() {
- return ((bitField0_ & 0x00000002) != 0);
+ public java.lang.String getEnumName() {
+ java.lang.Object ref = enumName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ enumName_ = s;
+ return s;
+ }
}
/**
*
*
*
- * The type of the values in a map.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type value_type = 2;
- *
- * @return The valueType.
- */
- @java.lang.Override
- public com.google.bigtable.admin.v2.Type getValueType() {
- return valueType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : valueType_;
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *+ *
string enum_name = 2;
*
- * .google.bigtable.admin.v2.Type value_type = 2;
+ * @return The bytes for enumName.
*/
@java.lang.Override
- public com.google.bigtable.admin.v2.TypeOrBuilder getValueTypeOrBuilder() {
- return valueType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : valueType_;
+ public com.google.protobuf.ByteString getEnumNameBytes() {
+ java.lang.Object ref = enumName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ enumName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
@@ -18402,11 +18490,11 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getKeyType());
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaBundleId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaBundleId_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeMessage(2, getValueType());
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enumName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, enumName_);
}
getUnknownFields().writeTo(output);
}
@@ -18417,11 +18505,11 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getKeyType());
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaBundleId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaBundleId_);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValueType());
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enumName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, enumName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -18433,19 +18521,13 @@ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof com.google.bigtable.admin.v2.Type.Map)) {
+ if (!(obj instanceof com.google.bigtable.admin.v2.Type.Enum)) {
return super.equals(obj);
}
- com.google.bigtable.admin.v2.Type.Map other = (com.google.bigtable.admin.v2.Type.Map) obj;
+ com.google.bigtable.admin.v2.Type.Enum other = (com.google.bigtable.admin.v2.Type.Enum) obj;
- if (hasKeyType() != other.hasKeyType()) return false;
- if (hasKeyType()) {
- if (!getKeyType().equals(other.getKeyType())) return false;
- }
- if (hasValueType() != other.hasValueType()) return false;
- if (hasValueType()) {
- if (!getValueType().equals(other.getValueType())) return false;
- }
+ if (!getSchemaBundleId().equals(other.getSchemaBundleId())) return false;
+ if (!getEnumName().equals(other.getEnumName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -18457,84 +18539,80 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (hasKeyType()) {
- hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getKeyType().hashCode();
- }
- if (hasValueType()) {
- hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getValueType().hashCode();
- }
+ hash = (37 * hash) + SCHEMA_BUNDLE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSchemaBundleId().hashCode();
+ hash = (37 * hash) + ENUM_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getEnumName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(java.nio.ByteBuffer data)
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum 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.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum 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.admin.v2.Type.Map parseFrom(byte[] data)
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(java.io.InputStream input)
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum 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.admin.v2.Type.Map parseDelimitedFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
- public static com.google.bigtable.admin.v2.Type.Map parseDelimitedFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum 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.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
- public static com.google.bigtable.admin.v2.Type.Map parseFrom(
+ public static com.google.bigtable.admin.v2.Type.Enum parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -18551,7 +18629,7 @@ public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Map prototype) {
+ public static Builder newBuilder(com.google.bigtable.admin.v2.Type.Enum prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@@ -18571,85 +18649,62 @@ protected Builder newBuilderForType(
*
*
*
- * A mapping of keys to values of a given type.
- * Values of type `Map` are stored in a `Value.array_value` where each entry
- * is another `Value.array_value` with two elements (the key and the value,
- * in that order).
- * Normally encoded Map values won't have repeated keys, however, clients are
- * expected to handle the case in which they do. If the same key appears
- * multiple times, the _last_ value takes precedence.
+ * A protobuf enum type.
+ * Values of type `Enum` are stored in `Value.int_value`.
*
*
- * Protobuf type {@code google.bigtable.admin.v2.Type.Map}
+ * Protobuf type {@code google.bigtable.admin.v2.Type.Enum}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return Whether the keyType field is set.
+ * @return The schemaBundleId.
*/
- public boolean hasKeyType() {
- return ((bitField0_ & 0x00000001) != 0);
+ public java.lang.String getSchemaBundleId() {
+ java.lang.Object ref = schemaBundleId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ schemaBundleId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
*
- * @return The keyType.
+ * @return The bytes for schemaBundleId.
*/
- public com.google.bigtable.admin.v2.Type getKeyType() {
- if (keyTypeBuilder_ == null) {
- return keyType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : keyType_;
+ public com.google.protobuf.ByteString getSchemaBundleIdBytes() {
+ java.lang.Object ref = schemaBundleId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ schemaBundleId_ = b;
+ return b;
} else {
- return keyTypeBuilder_.getMessage();
+ return (com.google.protobuf.ByteString) ref;
}
}
@@ -18840,21 +18898,19 @@ public com.google.bigtable.admin.v2.Type getKeyType() {
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
+ *
+ * @param value The schemaBundleId to set.
+ * @return This builder for chaining.
*/
- public Builder setKeyType(com.google.bigtable.admin.v2.Type value) {
- if (keyTypeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- keyType_ = value;
- } else {
- keyTypeBuilder_.setMessage(value);
+ public Builder setSchemaBundleId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ schemaBundleId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
@@ -18864,19 +18920,16 @@ public Builder setKeyType(com.google.bigtable.admin.v2.Type value) {
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string schema_bundle_id = 1;
+ *
+ * @return This builder for chaining.
*/
- public Builder setKeyType(com.google.bigtable.admin.v2.Type.Builder builderForValue) {
- if (keyTypeBuilder_ == null) {
- keyType_ = builderForValue.build();
- } else {
- keyTypeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
+ public Builder clearSchemaBundleId() {
+ schemaBundleId_ = getDefaultInstance().getSchemaBundleId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -18885,85 +18938,72 @@ public Builder setKeyType(com.google.bigtable.admin.v2.Type.Builder builderForVa
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The ID of the schema bundle that this enum is defined in.
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
- */
- public Builder mergeKeyType(com.google.bigtable.admin.v2.Type value) {
- if (keyTypeBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)
- && keyType_ != null
- && keyType_ != com.google.bigtable.admin.v2.Type.getDefaultInstance()) {
- getKeyTypeBuilder().mergeFrom(value);
- } else {
- keyType_ = value;
- }
- } else {
- keyTypeBuilder_.mergeFrom(value);
- }
- if (keyType_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- *
- * - * The type of a map key. - * Only `Bytes`, `String`, and `Int64` are allowed as key types. - *+ *
string schema_bundle_id = 1;
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * @param value The bytes for schemaBundleId to set.
+ * @return This builder for chaining.
*/
- public Builder clearKeyType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- keyType_ = null;
- if (keyTypeBuilder_ != null) {
- keyTypeBuilder_.dispose();
- keyTypeBuilder_ = null;
+ public Builder setSchemaBundleIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+ schemaBundleId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
+ private java.lang.Object enumName_ = "";
+
/**
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string enum_name = 2;
+ *
+ * @return The enumName.
*/
- public com.google.bigtable.admin.v2.Type.Builder getKeyTypeBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getKeyTypeFieldBuilder().getBuilder();
+ public java.lang.String getEnumName() {
+ java.lang.Object ref = enumName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ enumName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string enum_name = 2;
+ *
+ * @return The bytes for enumName.
*/
- public com.google.bigtable.admin.v2.TypeOrBuilder getKeyTypeOrBuilder() {
- if (keyTypeBuilder_ != null) {
- return keyTypeBuilder_.getMessageOrBuilder();
+ public com.google.protobuf.ByteString getEnumNameBytes() {
+ java.lang.Object ref = enumName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ enumName_ = b;
+ return b;
} else {
- return keyType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : keyType_;
+ return (com.google.protobuf.ByteString) ref;
}
}
@@ -18971,221 +19011,66 @@ public com.google.bigtable.admin.v2.TypeOrBuilder getKeyTypeOrBuilder() {
*
*
*
- * The type of a map key.
- * Only `Bytes`, `String`, and `Int64` are allowed as key types.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type key_type = 1;
+ * string enum_name = 2;
+ *
+ * @param value The enumName to set.
+ * @return This builder for chaining.
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>
- getKeyTypeFieldBuilder() {
- if (keyTypeBuilder_ == null) {
- keyTypeBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>(
- getKeyType(), getParentForChildren(), isClean());
- keyType_ = null;
+ public Builder setEnumName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return keyTypeBuilder_;
+ enumName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
}
- private com.google.bigtable.admin.v2.Type valueType_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>
- valueTypeBuilder_;
-
/**
*
*
*
- * The type of the values in a map.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type value_type = 2;
+ * string enum_name = 2;
*
- * @return Whether the valueType field is set.
+ * @return This builder for chaining.
*/
- public boolean hasValueType() {
- return ((bitField0_ & 0x00000002) != 0);
+ public Builder clearEnumName() {
+ enumName_ = getDefaultInstance().getEnumName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
}
/**
*
*
*
- * The type of the values in a map.
+ * The fully qualified name of the protobuf enum message, including package.
+ * In the format of "foo.bar.EnumMessage".
*
*
- * .google.bigtable.admin.v2.Type value_type = 2;
+ * string enum_name = 2;
*
- * @return The valueType.
+ * @param value The bytes for enumName to set.
+ * @return This builder for chaining.
*/
- public com.google.bigtable.admin.v2.Type getValueType() {
- if (valueTypeBuilder_ == null) {
- return valueType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : valueType_;
- } else {
- return valueTypeBuilder_.getMessage();
+ public Builder setEnumNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- public Builder setValueType(com.google.bigtable.admin.v2.Type value) {
- if (valueTypeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- valueType_ = value;
- } else {
- valueTypeBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- public Builder setValueType(com.google.bigtable.admin.v2.Type.Builder builderForValue) {
- if (valueTypeBuilder_ == null) {
- valueType_ = builderForValue.build();
- } else {
- valueTypeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- public Builder mergeValueType(com.google.bigtable.admin.v2.Type value) {
- if (valueTypeBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)
- && valueType_ != null
- && valueType_ != com.google.bigtable.admin.v2.Type.getDefaultInstance()) {
- getValueTypeBuilder().mergeFrom(value);
- } else {
- valueType_ = value;
- }
- } else {
- valueTypeBuilder_.mergeFrom(value);
- }
- if (valueType_ != null) {
- bitField0_ |= 0x00000002;
- onChanged();
- }
- return this;
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- public Builder clearValueType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- valueType_ = null;
- if (valueTypeBuilder_ != null) {
- valueTypeBuilder_.dispose();
- valueTypeBuilder_ = null;
- }
- onChanged();
- return this;
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- public com.google.bigtable.admin.v2.Type.Builder getValueTypeBuilder() {
- bitField0_ |= 0x00000002;
- onChanged();
- return getValueTypeFieldBuilder().getBuilder();
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- public com.google.bigtable.admin.v2.TypeOrBuilder getValueTypeOrBuilder() {
- if (valueTypeBuilder_ != null) {
- return valueTypeBuilder_.getMessageOrBuilder();
- } else {
- return valueType_ == null
- ? com.google.bigtable.admin.v2.Type.getDefaultInstance()
- : valueType_;
- }
- }
-
- /**
- *
- *
- * - * The type of the values in a map. - *- * - *
.google.bigtable.admin.v2.Type value_type = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>
- getValueTypeFieldBuilder() {
- if (valueTypeBuilder_ == null) {
- valueTypeBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.bigtable.admin.v2.Type,
- com.google.bigtable.admin.v2.Type.Builder,
- com.google.bigtable.admin.v2.TypeOrBuilder>(
- getValueType(), getParentForChildren(), isClean());
- valueType_ = null;
- }
- return valueTypeBuilder_;
+ checkByteStringIsUtf8(value);
+ enumName_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
}
@java.lang.Override
@@ -19200,24 +19085,24 @@ public final Builder mergeUnknownFields(
return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Map)
+ // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.Type.Enum)
}
- // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Map)
- private static final com.google.bigtable.admin.v2.Type.Map DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.Type.Enum)
+ private static final com.google.bigtable.admin.v2.Type.Enum DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Map();
+ DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.Type.Enum();
}
- public static com.google.bigtable.admin.v2.Type.Map getDefaultInstance() {
+ public static com.google.bigtable.admin.v2.Type.Enum getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser