diff --git a/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json b/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json
index b336913805..378e5e224b 100644
--- a/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json
+++ b/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/com.google.cloud.bigquery.storage.v1/reflect-config.json
@@ -1043,6 +1043,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
+ {
+ "name": "com.google.cloud.bigquery.storage.v1.TableFieldSchema$FieldElementType",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
+ {
+ "name": "com.google.cloud.bigquery.storage.v1.TableFieldSchema$FieldElementType$Builder",
+ "queryAllDeclaredConstructors": true,
+ "queryAllPublicConstructors": true,
+ "queryAllDeclaredMethods": true,
+ "allPublicMethods": true,
+ "allDeclaredClasses": true,
+ "allPublicClasses": true
+ },
{
"name": "com.google.cloud.bigquery.storage.v1.TableFieldSchema$Mode",
"queryAllDeclaredConstructors": true,
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java
index 366bd08a89..af115cac70 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java
@@ -230,6 +230,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
* JSON = 15;
*/
JSON(15),
+ /**
+ *
+ *
+ *
+ * RANGE + *+ * + *
RANGE = 16;
+ */
+ RANGE(16),
UNRECOGNIZED(-1),
;
@@ -393,6 +403,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
* JSON = 15;
*/
public static final int JSON_VALUE = 15;
+ /**
+ *
+ *
+ * + * RANGE + *+ * + *
RANGE = 16;
+ */
+ public static final int RANGE_VALUE = 16;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -450,6 +470,8 @@ public static Type forNumber(int value) {
return INTERVAL;
case 15:
return JSON;
+ case 16:
+ return RANGE;
default:
return null;
}
@@ -630,6 +652,657 @@ private Mode(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.TableFieldSchema.Mode)
}
+ public interface FieldElementTypeOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The type.
+ */
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType();
+ }
+ /**
+ *
+ *
+ * + * Represents the type of a field element. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType} + */ + public static final class FieldElementType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType) + FieldElementTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use FieldElementType.newBuilder() to construct. + private FieldElementType(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FieldElementType() { + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FieldElementType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.class, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + * + * + *
+ * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() {
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result =
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_);
+ return result == null
+ ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED
+ : result;
+ }
+
+ 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 (type_
+ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_
+ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ 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.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType other =
+ (com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType) obj;
+
+ if (type_ != other.type_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType 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.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType 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.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ 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.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType 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.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType 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;
+ }
+ /**
+ *
+ *
+ * + * Represents the type of a field element. + *+ * + * Protobuf type {@code google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() {
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result =
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_);
+ return result == null
+ ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The type of a field element. + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType)
+ private static final com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType();
+ }
+
+ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rangeElementType field is set.
+ */
+ @java.lang.Override
+ public boolean hasRangeElementType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rangeElementType.
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ getRangeElementType() {
+ return rangeElementType_ == null
+ ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ .getDefaultInstance()
+ : rangeElementType_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementTypeOrBuilder
+ getRangeElementTypeOrBuilder() {
+ return rangeElementType_ == null
+ ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ .getDefaultInstance()
+ : rangeElementType_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1099,6 +1847,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValueExpression_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, defaultValueExpression_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(11, getRangeElementType());
+ }
getUnknownFields().writeTo(output);
}
@@ -1139,6 +1890,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValueExpression_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, defaultValueExpression_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRangeElementType());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1164,6 +1918,10 @@ public boolean equals(final java.lang.Object obj) {
if (getPrecision() != other.getPrecision()) return false;
if (getScale() != other.getScale()) return false;
if (!getDefaultValueExpression().equals(other.getDefaultValueExpression())) return false;
+ if (hasRangeElementType() != other.hasRangeElementType()) return false;
+ if (hasRangeElementType()) {
+ if (!getRangeElementType().equals(other.getRangeElementType())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1195,6 +1953,10 @@ public int hashCode() {
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getScale());
hash = (37 * hash) + DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValueExpression().hashCode();
+ if (hasRangeElementType()) {
+ hash = (37 * hash) + RANGE_ELEMENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getRangeElementType().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -1325,10 +2087,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.bigquery.storage.v1.TableFieldSchema.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getFieldsFieldBuilder();
+ getRangeElementTypeFieldBuilder();
+ }
}
@java.lang.Override
@@ -1350,6 +2122,11 @@ public Builder clear() {
precision_ = 0L;
scale_ = 0L;
defaultValueExpression_ = "";
+ rangeElementType_ = null;
+ if (rangeElementTypeBuilder_ != null) {
+ rangeElementTypeBuilder_.dispose();
+ rangeElementTypeBuilder_ = null;
+ }
return this;
}
@@ -1424,6 +2201,13 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.TableFieldSchema
if (((from_bitField0_ & 0x00000100) != 0)) {
result.defaultValueExpression_ = defaultValueExpression_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.rangeElementType_ =
+ rangeElementTypeBuilder_ == null ? rangeElementType_ : rangeElementTypeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -1529,6 +2313,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableFieldSchema o
bitField0_ |= 0x00000100;
onChanged();
}
+ if (other.hasRangeElementType()) {
+ mergeRangeElementType(other.getRangeElementType());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1617,6 +2404,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000100;
break;
} // case 82
+ case 90:
+ {
+ input.readMessage(
+ getRangeElementTypeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 90
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2870,6 +3664,266 @@ public Builder setDefaultValueExpressionBytes(com.google.protobuf.ByteString val
return this;
}
+ private com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ rangeElementType_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType,
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.Builder,
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementTypeOrBuilder>
+ rangeElementTypeBuilder_;
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rangeElementType field is set.
+ */
+ public boolean hasRangeElementType() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rangeElementType.
+ */
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ getRangeElementType() {
+ if (rangeElementTypeBuilder_ == null) {
+ return rangeElementType_ == null
+ ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ .getDefaultInstance()
+ : rangeElementType_;
+ } else {
+ return rangeElementTypeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRangeElementType(
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType value) {
+ if (rangeElementTypeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rangeElementType_ = value;
+ } else {
+ rangeElementTypeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setRangeElementType(
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.Builder
+ builderForValue) {
+ if (rangeElementTypeBuilder_ == null) {
+ rangeElementType_ = builderForValue.build();
+ } else {
+ rangeElementTypeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeRangeElementType(
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType value) {
+ if (rangeElementTypeBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)
+ && rangeElementType_ != null
+ && rangeElementType_
+ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ .getDefaultInstance()) {
+ getRangeElementTypeBuilder().mergeFrom(value);
+ } else {
+ rangeElementType_ = value;
+ }
+ } else {
+ rangeElementTypeBuilder_.mergeFrom(value);
+ }
+ if (rangeElementType_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearRangeElementType() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ rangeElementType_ = null;
+ if (rangeElementTypeBuilder_ != null) {
+ rangeElementTypeBuilder_.dispose();
+ rangeElementTypeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.Builder
+ getRangeElementTypeBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getRangeElementTypeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementTypeOrBuilder
+ getRangeElementTypeOrBuilder() {
+ if (rangeElementTypeBuilder_ != null) {
+ return rangeElementTypeBuilder_.getMessageOrBuilder();
+ } else {
+ return rangeElementType_ == null
+ ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType
+ .getDefaultInstance()
+ : rangeElementType_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType,
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.Builder,
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementTypeOrBuilder>
+ getRangeElementTypeFieldBuilder() {
+ if (rangeElementTypeBuilder_ == null) {
+ rangeElementTypeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType,
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType.Builder,
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementTypeOrBuilder>(
+ getRangeElementType(), getParentForChildren(), isClean());
+ rangeElementType_ = null;
+ }
+ return rangeElementTypeBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java
index 8860298476..19fe153cae 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java
@@ -310,4 +310,61 @@ public interface TableFieldSchemaOrBuilder
* @return The bytes for defaultValueExpression.
*/
com.google.protobuf.ByteString getDefaultValueExpressionBytes();
+
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the rangeElementType field is set.
+ */
+ boolean hasRangeElementType();
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The rangeElementType.
+ */
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType getRangeElementType();
+ /**
+ *
+ *
+ * + * Optional. The subtype of the RANGE, if the type of this field is RANGE. If + * the type is RANGE, this field is required. Possible values for the field + * element type of a RANGE include: + * * DATE + * * DATETIME + * * TIMESTAMP + *+ * + *
+ * .google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementType range_element_type = 11 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.bigquery.storage.v1.TableFieldSchema.FieldElementTypeOrBuilder
+ getRangeElementTypeOrBuilder();
}
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java
index 2273f181bb..be638846ba 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java
@@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -49,7 +53,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".proto\022 google.cloud.bigquery.storage.v1"
+ "\032\037google/api/field_behavior.proto\"Q\n\013Tab"
+ "leSchema\022B\n\006fields\030\001 \003(\01322.google.cloud."
- + "bigquery.storage.v1.TableFieldSchema\"\254\005\n"
+ + "bigquery.storage.v1.TableFieldSchema\"\375\006\n"
+ "\020TableFieldSchema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022J\n\004"
+ "type\030\002 \001(\01627.google.cloud.bigquery.stora"
+ "ge.v1.TableFieldSchema.TypeB\003\340A\002\022J\n\004mode"
@@ -59,19 +63,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "TableFieldSchemaB\003\340A\001\022\030\n\013description\030\006 \001"
+ "(\tB\003\340A\001\022\027\n\nmax_length\030\007 \001(\003B\003\340A\001\022\026\n\tprec"
+ "ision\030\010 \001(\003B\003\340A\001\022\022\n\005scale\030\t \001(\003B\003\340A\001\022%\n\030"
- + "default_value_expression\030\n \001(\tB\003\340A\001\"\325\001\n\004"
- + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t"
- + "\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005BYT"
- + "ES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022"
- + "\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013\022\013"
- + "\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVAL\020"
- + "\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020"
- + "\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEATE"
- + "D\020\003B\272\001\n$com.google.cloud.bigquery.storag"
- + "e.v1B\nTableProtoP\001Z>cloud.google.com/go/"
- + "bigquery/storage/apiv1/storagepb;storage"
- + "pb\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 "
- + "Google\\Cloud\\BigQuery\\Storage\\V1b\006proto3"
+ + "default_value_expression\030\n \001(\tB\003\340A\001\022d\n\022r"
+ + "ange_element_type\030\013 \001(\0132C.google.cloud.b"
+ + "igquery.storage.v1.TableFieldSchema.Fiel"
+ + "dElementTypeB\003\340A\001\032^\n\020FieldElementType\022J\n"
+ + "\004type\030\001 \001(\01627.google.cloud.bigquery.stor"
+ + "age.v1.TableFieldSchema.TypeB\003\340A\002\"\340\001\n\004Ty"
+ + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t\n\005"
+ + "INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005BYTES"
+ + "\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022\010\n"
+ + "\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013\022\013\n\007"
+ + "NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVAL\020\016\022"
+ + "\010\n\004JSON\020\017\022\t\n\005RANGE\020\020\"F\n\004Mode\022\024\n\020MODE_UNS"
+ + "PECIFIED\020\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014"
+ + "\n\010REPEATED\020\003B\272\001\n$com.google.cloud.bigque"
+ + "ry.storage.v1B\nTableProtoP\001Z>cloud.googl"
+ + "e.com/go/bigquery/storage/apiv1/storagep"
+ + "b;storagepb\252\002 Google.Cloud.BigQuery.Stor"
+ + "age.V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V"
+ + "1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -102,6 +112,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Precision",
"Scale",
"DefaultValueExpression",
+ "RangeElementType",
+ });
+ internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_descriptor =
+ internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_FieldElementType_descriptor,
+ new java.lang.String[] {
+ "Type",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
index 47629c510e..7f9dde5f6b 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
@@ -83,6 +83,9 @@ message TableFieldSchema {
// JSON, String
JSON = 15;
+
+ // RANGE
+ RANGE = 16;
}
enum Mode {
@@ -96,6 +99,12 @@ message TableFieldSchema {
REPEATED = 3;
}
+ // Represents the type of a field element.
+ message FieldElementType {
+ // Required. The type of a field element.
+ Type type = 1 [(google.api.field_behavior) = REQUIRED];
+ }
+
// Required. The field name. The name must contain only letters (a-z, A-Z),
// numbers (0-9), or underscores (_), and must start with a letter or
// underscore. The maximum length is 128 characters.
@@ -168,4 +177,13 @@ message TableFieldSchema {
// Optional. A SQL expression to specify the [default value]
// (https://cloud.google.com/bigquery/docs/default-values) for this field.
string default_value_expression = 10 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The subtype of the RANGE, if the type of this field is RANGE. If
+ // the type is RANGE, this field is required. Possible values for the field
+ // element type of a RANGE include:
+ // * DATE
+ // * DATETIME
+ // * TIMESTAMP
+ FieldElementType range_element_type = 11
+ [(google.api.field_behavior) = OPTIONAL];
}