diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java index f69d03c9b7..fd44fb0843 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java @@ -922,8 +922,7 @@ public final UnaryCallable getTableCallable() { * } * * @param table Required. The table to update. The table's `name` field is used to identify the - * table to update. Format: - * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + * table to update. * @param updateMask Required. The list of fields to update. A mask specifying which fields (e.g. * `deletion_protection`) in the `table` field should be updated. This mask is relative to the * `table` field, not to the request message. The wildcard (*) path is currently not diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java index d2669d97fb..950f190755 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequest.java @@ -143,8 +143,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The table to update.
    * The table's `name` field is used to identify the table to update.
-   * Format:
-   * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
    * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -162,8 +160,6 @@ public boolean hasTable() { *
    * Required. The table to update.
    * The table's `name` field is used to identify the table to update.
-   * Format:
-   * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
    * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -181,8 +177,6 @@ public com.google.bigtable.admin.v2.Table getTable() { *
    * Required. The table to update.
    * The table's `name` field is used to identify the table to update.
-   * Format:
-   * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
    * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -633,8 +627,6 @@ public Builder mergeFrom( *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -651,8 +643,6 @@ public boolean hasTable() { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -673,8 +663,6 @@ public com.google.bigtable.admin.v2.Table getTable() { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -699,8 +687,6 @@ public Builder setTable(com.google.bigtable.admin.v2.Table value) { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -722,8 +708,6 @@ public Builder setTable(com.google.bigtable.admin.v2.Table.Builder builderForVal *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -750,8 +734,6 @@ public Builder mergeTable(com.google.bigtable.admin.v2.Table value) { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -774,8 +756,6 @@ public Builder clearTable() { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -792,8 +772,6 @@ public com.google.bigtable.admin.v2.Table.Builder getTableBuilder() { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -812,8 +790,6 @@ public com.google.bigtable.admin.v2.TableOrBuilder getTableOrBuilder() { *
      * Required. The table to update.
      * The table's `name` field is used to identify the table to update.
-     * Format:
-     * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
      * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java index c9de53c62b..3ded387418 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateTableRequestOrBuilder.java @@ -29,8 +29,6 @@ public interface UpdateTableRequestOrBuilder *
    * Required. The table to update.
    * The table's `name` field is used to identify the table to update.
-   * Format:
-   * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
    * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,8 +43,6 @@ public interface UpdateTableRequestOrBuilder *
    * Required. The table to update.
    * The table's `name` field is used to identify the table to update.
-   * Format:
-   * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
    * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -61,8 +57,6 @@ public interface UpdateTableRequestOrBuilder *
    * Required. The table to update.
    * The table's `name` field is used to identify the table to update.
-   * Format:
-   * `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
    * 
* * .google.bigtable.admin.v2.Table table = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto index 1a0be99ee2..6a2d9eac95 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto @@ -381,8 +381,8 @@ message RestoreTableRequest { // Name of the backup from which to restore. Values are of the form // `projects//instances//clusters//backups/`. string backup = 3 [(google.api.resource_reference) = { - type: "bigtableadmin.googleapis.com/Backup" - }]; + type: "bigtableadmin.googleapis.com/Backup" + }]; } } @@ -597,8 +597,6 @@ message GetTableRequest { message UpdateTableRequest { // Required. The table to update. // The table's `name` field is used to identify the table to update. - // Format: - // `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*` Table table = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The list of fields to update. diff --git a/proto-google-cloud-bigtable-v2/clirr-ignored-differences.xml b/proto-google-cloud-bigtable-v2/clirr-ignored-differences.xml index 0259e4ee6e..3aebe65a28 100644 --- a/proto-google-cloud-bigtable-v2/clirr-ignored-differences.xml +++ b/proto-google-cloud-bigtable-v2/clirr-ignored-differences.xml @@ -4,6 +4,16 @@ 7012 com/google/bigtable/v2/*OrBuilder - * has*(*) + * get*(*) + + + 7012 + com/google/bigtable/v2/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/bigtable/v2/*OrBuilder + boolean has*(*) \ No newline at end of file diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AllReadStats.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AllReadStats.java new file mode 100644 index 0000000000..8d3602c39b --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AllReadStats.java @@ -0,0 +1,1057 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +/** + * + * + *
+ * AllReadStats captures all known information about a read.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.AllReadStats} + */ +public final class AllReadStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.AllReadStats) + AllReadStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllReadStats.newBuilder() to construct. + private AllReadStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AllReadStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AllReadStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AllReadStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.bigtable.v2.ReadIteratorStats.Builder subBuilder = null; + if (readIteratorStats_ != null) { + subBuilder = readIteratorStats_.toBuilder(); + } + readIteratorStats_ = + input.readMessage( + com.google.bigtable.v2.ReadIteratorStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readIteratorStats_); + readIteratorStats_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.bigtable.v2.RequestLatencyStats.Builder subBuilder = null; + if (requestLatencyStats_ != null) { + subBuilder = requestLatencyStats_.toBuilder(); + } + requestLatencyStats_ = + input.readMessage( + com.google.bigtable.v2.RequestLatencyStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestLatencyStats_); + requestLatencyStats_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_AllReadStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_AllReadStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.AllReadStats.class, + com.google.bigtable.v2.AllReadStats.Builder.class); + } + + public static final int READ_ITERATOR_STATS_FIELD_NUMBER = 1; + private com.google.bigtable.v2.ReadIteratorStats readIteratorStats_; + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return Whether the readIteratorStats field is set. + */ + @java.lang.Override + public boolean hasReadIteratorStats() { + return readIteratorStats_ != null; + } + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return The readIteratorStats. + */ + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStats getReadIteratorStats() { + return readIteratorStats_ == null + ? com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance() + : readIteratorStats_; + } + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStatsOrBuilder getReadIteratorStatsOrBuilder() { + return getReadIteratorStats(); + } + + public static final int REQUEST_LATENCY_STATS_FIELD_NUMBER = 2; + private com.google.bigtable.v2.RequestLatencyStats requestLatencyStats_; + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return Whether the requestLatencyStats field is set. + */ + @java.lang.Override + public boolean hasRequestLatencyStats() { + return requestLatencyStats_ != null; + } + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return The requestLatencyStats. + */ + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStats getRequestLatencyStats() { + return requestLatencyStats_ == null + ? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance() + : requestLatencyStats_; + } + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStatsOrBuilder getRequestLatencyStatsOrBuilder() { + return getRequestLatencyStats(); + } + + 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 (readIteratorStats_ != null) { + output.writeMessage(1, getReadIteratorStats()); + } + if (requestLatencyStats_ != null) { + output.writeMessage(2, getRequestLatencyStats()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (readIteratorStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadIteratorStats()); + } + if (requestLatencyStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestLatencyStats()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.AllReadStats)) { + return super.equals(obj); + } + com.google.bigtable.v2.AllReadStats other = (com.google.bigtable.v2.AllReadStats) obj; + + if (hasReadIteratorStats() != other.hasReadIteratorStats()) return false; + if (hasReadIteratorStats()) { + if (!getReadIteratorStats().equals(other.getReadIteratorStats())) return false; + } + if (hasRequestLatencyStats() != other.hasRequestLatencyStats()) return false; + if (hasRequestLatencyStats()) { + if (!getRequestLatencyStats().equals(other.getRequestLatencyStats())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReadIteratorStats()) { + hash = (37 * hash) + READ_ITERATOR_STATS_FIELD_NUMBER; + hash = (53 * hash) + getReadIteratorStats().hashCode(); + } + if (hasRequestLatencyStats()) { + hash = (37 * hash) + REQUEST_LATENCY_STATS_FIELD_NUMBER; + hash = (53 * hash) + getRequestLatencyStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.AllReadStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.AllReadStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AllReadStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.AllReadStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.AllReadStats 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; + } + /** + * + * + *
+   * AllReadStats captures all known information about a read.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.AllReadStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.AllReadStats) + com.google.bigtable.v2.AllReadStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_AllReadStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_AllReadStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.AllReadStats.class, + com.google.bigtable.v2.AllReadStats.Builder.class); + } + + // Construct using com.google.bigtable.v2.AllReadStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (readIteratorStatsBuilder_ == null) { + readIteratorStats_ = null; + } else { + readIteratorStats_ = null; + readIteratorStatsBuilder_ = null; + } + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStats_ = null; + } else { + requestLatencyStats_ = null; + requestLatencyStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_AllReadStats_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.AllReadStats getDefaultInstanceForType() { + return com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.AllReadStats build() { + com.google.bigtable.v2.AllReadStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.AllReadStats buildPartial() { + com.google.bigtable.v2.AllReadStats result = new com.google.bigtable.v2.AllReadStats(this); + if (readIteratorStatsBuilder_ == null) { + result.readIteratorStats_ = readIteratorStats_; + } else { + result.readIteratorStats_ = readIteratorStatsBuilder_.build(); + } + if (requestLatencyStatsBuilder_ == null) { + result.requestLatencyStats_ = requestLatencyStats_; + } else { + result.requestLatencyStats_ = requestLatencyStatsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.AllReadStats) { + return mergeFrom((com.google.bigtable.v2.AllReadStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.AllReadStats other) { + if (other == com.google.bigtable.v2.AllReadStats.getDefaultInstance()) return this; + if (other.hasReadIteratorStats()) { + mergeReadIteratorStats(other.getReadIteratorStats()); + } + if (other.hasRequestLatencyStats()) { + mergeRequestLatencyStats(other.getRequestLatencyStats()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.v2.AllReadStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.bigtable.v2.AllReadStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.bigtable.v2.ReadIteratorStats readIteratorStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadIteratorStats, + com.google.bigtable.v2.ReadIteratorStats.Builder, + com.google.bigtable.v2.ReadIteratorStatsOrBuilder> + readIteratorStatsBuilder_; + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return Whether the readIteratorStats field is set. + */ + public boolean hasReadIteratorStats() { + return readIteratorStatsBuilder_ != null || readIteratorStats_ != null; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return The readIteratorStats. + */ + public com.google.bigtable.v2.ReadIteratorStats getReadIteratorStats() { + if (readIteratorStatsBuilder_ == null) { + return readIteratorStats_ == null + ? com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance() + : readIteratorStats_; + } else { + return readIteratorStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder setReadIteratorStats(com.google.bigtable.v2.ReadIteratorStats value) { + if (readIteratorStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readIteratorStats_ = value; + onChanged(); + } else { + readIteratorStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder setReadIteratorStats( + com.google.bigtable.v2.ReadIteratorStats.Builder builderForValue) { + if (readIteratorStatsBuilder_ == null) { + readIteratorStats_ = builderForValue.build(); + onChanged(); + } else { + readIteratorStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder mergeReadIteratorStats(com.google.bigtable.v2.ReadIteratorStats value) { + if (readIteratorStatsBuilder_ == null) { + if (readIteratorStats_ != null) { + readIteratorStats_ = + com.google.bigtable.v2.ReadIteratorStats.newBuilder(readIteratorStats_) + .mergeFrom(value) + .buildPartial(); + } else { + readIteratorStats_ = value; + } + onChanged(); + } else { + readIteratorStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder clearReadIteratorStats() { + if (readIteratorStatsBuilder_ == null) { + readIteratorStats_ = null; + onChanged(); + } else { + readIteratorStats_ = null; + readIteratorStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public com.google.bigtable.v2.ReadIteratorStats.Builder getReadIteratorStatsBuilder() { + + onChanged(); + return getReadIteratorStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public com.google.bigtable.v2.ReadIteratorStatsOrBuilder getReadIteratorStatsOrBuilder() { + if (readIteratorStatsBuilder_ != null) { + return readIteratorStatsBuilder_.getMessageOrBuilder(); + } else { + return readIteratorStats_ == null + ? com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance() + : readIteratorStats_; + } + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadIteratorStats, + com.google.bigtable.v2.ReadIteratorStats.Builder, + com.google.bigtable.v2.ReadIteratorStatsOrBuilder> + getReadIteratorStatsFieldBuilder() { + if (readIteratorStatsBuilder_ == null) { + readIteratorStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadIteratorStats, + com.google.bigtable.v2.ReadIteratorStats.Builder, + com.google.bigtable.v2.ReadIteratorStatsOrBuilder>( + getReadIteratorStats(), getParentForChildren(), isClean()); + readIteratorStats_ = null; + } + return readIteratorStatsBuilder_; + } + + private com.google.bigtable.v2.RequestLatencyStats requestLatencyStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestLatencyStats, + com.google.bigtable.v2.RequestLatencyStats.Builder, + com.google.bigtable.v2.RequestLatencyStatsOrBuilder> + requestLatencyStatsBuilder_; + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return Whether the requestLatencyStats field is set. + */ + public boolean hasRequestLatencyStats() { + return requestLatencyStatsBuilder_ != null || requestLatencyStats_ != null; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return The requestLatencyStats. + */ + public com.google.bigtable.v2.RequestLatencyStats getRequestLatencyStats() { + if (requestLatencyStatsBuilder_ == null) { + return requestLatencyStats_ == null + ? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance() + : requestLatencyStats_; + } else { + return requestLatencyStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder setRequestLatencyStats(com.google.bigtable.v2.RequestLatencyStats value) { + if (requestLatencyStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestLatencyStats_ = value; + onChanged(); + } else { + requestLatencyStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder setRequestLatencyStats( + com.google.bigtable.v2.RequestLatencyStats.Builder builderForValue) { + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStats_ = builderForValue.build(); + onChanged(); + } else { + requestLatencyStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder mergeRequestLatencyStats(com.google.bigtable.v2.RequestLatencyStats value) { + if (requestLatencyStatsBuilder_ == null) { + if (requestLatencyStats_ != null) { + requestLatencyStats_ = + com.google.bigtable.v2.RequestLatencyStats.newBuilder(requestLatencyStats_) + .mergeFrom(value) + .buildPartial(); + } else { + requestLatencyStats_ = value; + } + onChanged(); + } else { + requestLatencyStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder clearRequestLatencyStats() { + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStats_ = null; + onChanged(); + } else { + requestLatencyStats_ = null; + requestLatencyStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public com.google.bigtable.v2.RequestLatencyStats.Builder getRequestLatencyStatsBuilder() { + + onChanged(); + return getRequestLatencyStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public com.google.bigtable.v2.RequestLatencyStatsOrBuilder getRequestLatencyStatsOrBuilder() { + if (requestLatencyStatsBuilder_ != null) { + return requestLatencyStatsBuilder_.getMessageOrBuilder(); + } else { + return requestLatencyStats_ == null + ? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance() + : requestLatencyStats_; + } + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestLatencyStats, + com.google.bigtable.v2.RequestLatencyStats.Builder, + com.google.bigtable.v2.RequestLatencyStatsOrBuilder> + getRequestLatencyStatsFieldBuilder() { + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestLatencyStats, + com.google.bigtable.v2.RequestLatencyStats.Builder, + com.google.bigtable.v2.RequestLatencyStatsOrBuilder>( + getRequestLatencyStats(), getParentForChildren(), isClean()); + requestLatencyStats_ = null; + } + return requestLatencyStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.AllReadStats) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.AllReadStats) + private static final com.google.bigtable.v2.AllReadStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.AllReadStats(); + } + + public static com.google.bigtable.v2.AllReadStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllReadStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllReadStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.AllReadStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AllReadStatsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AllReadStatsOrBuilder.java new file mode 100644 index 0000000000..7cd111af6d --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/AllReadStatsOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +public interface AllReadStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.AllReadStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return Whether the readIteratorStats field is set. + */ + boolean hasReadIteratorStats(); + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return The readIteratorStats. + */ + com.google.bigtable.v2.ReadIteratorStats getReadIteratorStats(); + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + com.google.bigtable.v2.ReadIteratorStatsOrBuilder getReadIteratorStatsOrBuilder(); + + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return Whether the requestLatencyStats field is set. + */ + boolean hasRequestLatencyStats(); + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return The requestLatencyStats. + */ + com.google.bigtable.v2.RequestLatencyStats getRequestLatencyStats(); + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + com.google.bigtable.v2.RequestLatencyStatsOrBuilder getRequestLatencyStatsOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java index 2e7276b4de..eb6c1d8b08 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/BigtableProto.java @@ -109,137 +109,145 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\027google/api/client.proto\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032\030google/api/routing.proto\032\035go" - + "ogle/bigtable/v2/data.proto\032\036google/prot" + + "ogle/bigtable/v2/data.proto\032&google/bigt" + + "able/v2/request_stats.proto\032\036google/prot" + "obuf/wrappers.proto\032\027google/rpc/status.p" - + "roto\"\326\001\n\017ReadRowsRequest\022>\n\ntable_name\030\001" + + "roto\"\257\003\n\017ReadRowsRequest\022>\n\ntable_name\030\001" + " \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis.c" + "om/Table\022\026\n\016app_profile_id\030\005 \001(\t\022(\n\004rows" + "\030\002 \001(\0132\032.google.bigtable.v2.RowSet\022-\n\006fi" + "lter\030\003 \001(\0132\035.google.bigtable.v2.RowFilte" - + "r\022\022\n\nrows_limit\030\004 \001(\003\"\370\002\n\020ReadRowsRespon" - + "se\022>\n\006chunks\030\001 \003(\0132..google.bigtable.v2." - + "ReadRowsResponse.CellChunk\022\034\n\024last_scann" - + "ed_row_key\030\002 \001(\014\032\205\002\n\tCellChunk\022\017\n\007row_ke" - + "y\030\001 \001(\014\0221\n\013family_name\030\002 \001(\0132\034.google.pr" - + "otobuf.StringValue\022.\n\tqualifier\030\003 \001(\0132\033." - + "google.protobuf.BytesValue\022\030\n\020timestamp_" - + "micros\030\004 \001(\003\022\016\n\006labels\030\005 \003(\t\022\r\n\005value\030\006 " - + "\001(\014\022\022\n\nvalue_size\030\007 \001(\005\022\023\n\treset_row\030\010 \001" - + "(\010H\000\022\024\n\ncommit_row\030\t \001(\010H\000B\014\n\nrow_status" - + "\"n\n\024SampleRowKeysRequest\022>\n\ntable_name\030\001" - + " \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis.c" - + "om/Table\022\026\n\016app_profile_id\030\002 \001(\t\">\n\025Samp" - + "leRowKeysResponse\022\017\n\007row_key\030\001 \001(\014\022\024\n\014of" - + "fset_bytes\030\002 \001(\003\"\266\001\n\020MutateRowRequest\022>\n" - + "\ntable_name\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin" - + ".googleapis.com/Table\022\026\n\016app_profile_id\030" - + "\004 \001(\t\022\024\n\007row_key\030\002 \001(\014B\003\340A\002\0224\n\tmutations" - + "\030\003 \003(\0132\034.google.bigtable.v2.MutationB\003\340A" - + "\002\"\023\n\021MutateRowResponse\"\376\001\n\021MutateRowsReq" - + "uest\022>\n\ntable_name\030\001 \001(\tB*\340A\002\372A$\n\"bigtab" - + "leadmin.googleapis.com/Table\022\026\n\016app_prof" - + "ile_id\030\003 \001(\t\022A\n\007entries\030\002 \003(\0132+.google.b" - + "igtable.v2.MutateRowsRequest.EntryB\003\340A\002\032" - + "N\n\005Entry\022\017\n\007row_key\030\001 \001(\014\0224\n\tmutations\030\002" - + " \003(\0132\034.google.bigtable.v2.MutationB\003\340A\002\"" - + "\217\001\n\022MutateRowsResponse\022=\n\007entries\030\001 \003(\0132" - + ",.google.bigtable.v2.MutateRowsResponse." - + "Entry\032:\n\005Entry\022\r\n\005index\030\001 \001(\003\022\"\n\006status\030" - + "\002 \001(\0132\022.google.rpc.Status\"\256\002\n\030CheckAndMu" - + "tateRowRequest\022>\n\ntable_name\030\001 \001(\tB*\340A\002\372" - + "A$\n\"bigtableadmin.googleapis.com/Table\022\026" - + "\n\016app_profile_id\030\007 \001(\t\022\024\n\007row_key\030\002 \001(\014B" - + "\003\340A\002\0227\n\020predicate_filter\030\006 \001(\0132\035.google." - + "bigtable.v2.RowFilter\0224\n\016true_mutations\030" - + "\004 \003(\0132\034.google.bigtable.v2.Mutation\0225\n\017f" - + "alse_mutations\030\005 \003(\0132\034.google.bigtable.v" - + "2.Mutation\"6\n\031CheckAndMutateRowResponse\022" - + "\031\n\021predicate_matched\030\001 \001(\010\"i\n\022PingAndWar" - + "mRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtable" - + "admin.googleapis.com/Instance\022\026\n\016app_pro" - + "file_id\030\002 \001(\t\"\025\n\023PingAndWarmResponse\"\306\001\n" - + "\031ReadModifyWriteRowRequest\022>\n\ntable_name" - + "\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis" - + ".com/Table\022\026\n\016app_profile_id\030\004 \001(\t\022\024\n\007ro" - + "w_key\030\002 \001(\014B\003\340A\002\022;\n\005rules\030\003 \003(\0132\'.google" - + ".bigtable.v2.ReadModifyWriteRuleB\003\340A\002\"B\n" - + "\032ReadModifyWriteRowResponse\022$\n\003row\030\001 \001(\013" - + "2\027.google.bigtable.v2.Row2\260\024\n\010Bigtable\022\233" - + "\002\n\010ReadRows\022#.google.bigtable.v2.ReadRow" - + "sRequest\032$.google.bigtable.v2.ReadRowsRe" - + "sponse\"\301\001\202\323\344\223\002>\"9/v2/{table_name=project" - + "s/*/instances/*/tables/*}:readRows:\001*\212\323\344" - + "\223\002N\022:\n\ntable_name\022,{table_name=projects/" - + "*/instances/*/tables/*}\022\020\n\016app_profile_i" - + "d\332A\ntable_name\332A\031table_name,app_profile_" - + "id0\001\022\254\002\n\rSampleRowKeys\022(.google.bigtable" - + ".v2.SampleRowKeysRequest\032).google.bigtab" - + "le.v2.SampleRowKeysResponse\"\303\001\202\323\344\223\002@\022>/v" - + "2/{table_name=projects/*/instances/*/tab" - + "les/*}:sampleRowKeys\212\323\344\223\002N\022:\n\ntable_name" - + "\022,{table_name=projects/*/instances/*/tab" - + "les/*}\022\020\n\016app_profile_id\332A\ntable_name\332A\031" - + "table_name,app_profile_id0\001\022\301\002\n\tMutateRo" - + "w\022$.google.bigtable.v2.MutateRowRequest\032" - + "%.google.bigtable.v2.MutateRowResponse\"\346" - + "\001\202\323\344\223\002?\":/v2/{table_name=projects/*/inst" - + "ances/*/tables/*}:mutateRow:\001*\212\323\344\223\002N\022:\n\n" - + "table_name\022,{table_name=projects/*/insta" - + "nces/*/tables/*}\022\020\n\016app_profile_id\332A\034tab" - + "le_name,row_key,mutations\332A+table_name,r" - + "ow_key,mutations,app_profile_id\022\263\002\n\nMuta" - + "teRows\022%.google.bigtable.v2.MutateRowsRe" - + "quest\032&.google.bigtable.v2.MutateRowsRes" - + "ponse\"\323\001\202\323\344\223\002@\";/v2/{table_name=projects" - + "/*/instances/*/tables/*}:mutateRows:\001*\212\323" - + "\344\223\002N\022:\n\ntable_name\022,{table_name=projects" - + "/*/instances/*/tables/*}\022\020\n\016app_profile_" - + "id\332A\022table_name,entries\332A!table_name,ent" - + "ries,app_profile_id0\001\022\255\003\n\021CheckAndMutate" - + "Row\022,.google.bigtable.v2.CheckAndMutateR" - + "owRequest\032-.google.bigtable.v2.CheckAndM" - + "utateRowResponse\"\272\002\202\323\344\223\002G\"B/v2/{table_na" - + "me=projects/*/instances/*/tables/*}:chec" - + "kAndMutateRow:\001*\212\323\344\223\002N\022:\n\ntable_name\022,{t" - + "able_name=projects/*/instances/*/tables/" - + "*}\022\020\n\016app_profile_id\332ABtable_name,row_ke" - + "y,predicate_filter,true_mutations,false_" - + "mutations\332AQtable_name,row_key,predicate" - + "_filter,true_mutations,false_mutations,a" - + "pp_profile_id\022\356\001\n\013PingAndWarm\022&.google.b" - + "igtable.v2.PingAndWarmRequest\032\'.google.b" - + "igtable.v2.PingAndWarmResponse\"\215\001\202\323\344\223\002+\"" - + "&/v2/{name=projects/*/instances/*}:ping:" - + "\001*\212\323\344\223\0029\022%\n\004name\022\035{name=projects/*/insta" - + "nces/*}\022\020\n\016app_profile_id\332A\004name\332A\023name," - + "app_profile_id\022\335\002\n\022ReadModifyWriteRow\022-." - + "google.bigtable.v2.ReadModifyWriteRowReq" - + "uest\032..google.bigtable.v2.ReadModifyWrit" - + "eRowResponse\"\347\001\202\323\344\223\002H\"C/v2/{table_name=p" - + "rojects/*/instances/*/tables/*}:readModi" - + "fyWriteRow:\001*\212\323\344\223\002N\022:\n\ntable_name\022,{tabl" - + "e_name=projects/*/instances/*/tables/*}\022" - + "\020\n\016app_profile_id\332A\030table_name,row_key,r" - + "ules\332A\'table_name,row_key,rules,app_prof" - + "ile_id\032\333\002\312A\027bigtable.googleapis.com\322A\275\002h" + + "r\022\022\n\nrows_limit\030\004 \001(\003\022P\n\022request_stats_v" + + "iew\030\006 \001(\01624.google.bigtable.v2.ReadRowsR" + + "equest.RequestStatsView\"\204\001\n\020RequestStats" + + "View\022\"\n\036REQUEST_STATS_VIEW_UNSPECIFIED\020\000" + + "\022\026\n\022REQUEST_STATS_NONE\020\001\022\034\n\030REQUEST_STAT" + + "S_EFFICIENCY\020\002\022\026\n\022REQUEST_STATS_FULL\020\003\"\261" + + "\003\n\020ReadRowsResponse\022>\n\006chunks\030\001 \003(\0132..go" + + "ogle.bigtable.v2.ReadRowsResponse.CellCh" + + "unk\022\034\n\024last_scanned_row_key\030\002 \001(\014\0227\n\rreq" + + "uest_stats\030\003 \001(\0132 .google.bigtable.v2.Re" + + "questStats\032\205\002\n\tCellChunk\022\017\n\007row_key\030\001 \001(" + + "\014\0221\n\013family_name\030\002 \001(\0132\034.google.protobuf" + + ".StringValue\022.\n\tqualifier\030\003 \001(\0132\033.google" + + ".protobuf.BytesValue\022\030\n\020timestamp_micros" + + "\030\004 \001(\003\022\016\n\006labels\030\005 \003(\t\022\r\n\005value\030\006 \001(\014\022\022\n" + + "\nvalue_size\030\007 \001(\005\022\023\n\treset_row\030\010 \001(\010H\000\022\024" + + "\n\ncommit_row\030\t \001(\010H\000B\014\n\nrow_status\"n\n\024Sa" + + "mpleRowKeysRequest\022>\n\ntable_name\030\001 \001(\tB*" + + "\340A\002\372A$\n\"bigtableadmin.googleapis.com/Tab" + + "le\022\026\n\016app_profile_id\030\002 \001(\t\">\n\025SampleRowK" + + "eysResponse\022\017\n\007row_key\030\001 \001(\014\022\024\n\014offset_b" + + "ytes\030\002 \001(\003\"\266\001\n\020MutateRowRequest\022>\n\ntable" + + "_name\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googl" + + "eapis.com/Table\022\026\n\016app_profile_id\030\004 \001(\t\022" + + "\024\n\007row_key\030\002 \001(\014B\003\340A\002\0224\n\tmutations\030\003 \003(\013" + + "2\034.google.bigtable.v2.MutationB\003\340A\002\"\023\n\021M" + + "utateRowResponse\"\376\001\n\021MutateRowsRequest\022>" + + "\n\ntable_name\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmi" + + "n.googleapis.com/Table\022\026\n\016app_profile_id" + + "\030\003 \001(\t\022A\n\007entries\030\002 \003(\0132+.google.bigtabl" + + "e.v2.MutateRowsRequest.EntryB\003\340A\002\032N\n\005Ent" + + "ry\022\017\n\007row_key\030\001 \001(\014\0224\n\tmutations\030\002 \003(\0132\034" + + ".google.bigtable.v2.MutationB\003\340A\002\"\217\001\n\022Mu" + + "tateRowsResponse\022=\n\007entries\030\001 \003(\0132,.goog" + + "le.bigtable.v2.MutateRowsResponse.Entry\032" + + ":\n\005Entry\022\r\n\005index\030\001 \001(\003\022\"\n\006status\030\002 \001(\0132" + + "\022.google.rpc.Status\"\256\002\n\030CheckAndMutateRo" + + "wRequest\022>\n\ntable_name\030\001 \001(\tB*\340A\002\372A$\n\"bi" + + "gtableadmin.googleapis.com/Table\022\026\n\016app_" + + "profile_id\030\007 \001(\t\022\024\n\007row_key\030\002 \001(\014B\003\340A\002\0227" + + "\n\020predicate_filter\030\006 \001(\0132\035.google.bigtab" + + "le.v2.RowFilter\0224\n\016true_mutations\030\004 \003(\0132" + + "\034.google.bigtable.v2.Mutation\0225\n\017false_m" + + "utations\030\005 \003(\0132\034.google.bigtable.v2.Muta" + + "tion\"6\n\031CheckAndMutateRowResponse\022\031\n\021pre" + + "dicate_matched\030\001 \001(\010\"i\n\022PingAndWarmReque" + + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtableadmin." + + "googleapis.com/Instance\022\026\n\016app_profile_i" + + "d\030\002 \001(\t\"\025\n\023PingAndWarmResponse\"\306\001\n\031ReadM" + + "odifyWriteRowRequest\022>\n\ntable_name\030\001 \001(\t" + + "B*\340A\002\372A$\n\"bigtableadmin.googleapis.com/T" + + "able\022\026\n\016app_profile_id\030\004 \001(\t\022\024\n\007row_key\030" + + "\002 \001(\014B\003\340A\002\022;\n\005rules\030\003 \003(\0132\'.google.bigta" + + "ble.v2.ReadModifyWriteRuleB\003\340A\002\"B\n\032ReadM" + + "odifyWriteRowResponse\022$\n\003row\030\001 \001(\0132\027.goo" + + "gle.bigtable.v2.Row2\260\024\n\010Bigtable\022\233\002\n\010Rea" + + "dRows\022#.google.bigtable.v2.ReadRowsReque" + + "st\032$.google.bigtable.v2.ReadRowsResponse" + + "\"\301\001\202\323\344\223\002>\"9/v2/{table_name=projects/*/in" + + "stances/*/tables/*}:readRows:\001*\212\323\344\223\002N\022:\n" + + "\ntable_name\022,{table_name=projects/*/inst" + + "ances/*/tables/*}\022\020\n\016app_profile_id\332A\nta" + + "ble_name\332A\031table_name,app_profile_id0\001\022\254" + + "\002\n\rSampleRowKeys\022(.google.bigtable.v2.Sa" + + "mpleRowKeysRequest\032).google.bigtable.v2." + + "SampleRowKeysResponse\"\303\001\202\323\344\223\002@\022>/v2/{tab" + + "le_name=projects/*/instances/*/tables/*}" + + ":sampleRowKeys\212\323\344\223\002N\022:\n\ntable_name\022,{tab" + + "le_name=projects/*/instances/*/tables/*}" + + "\022\020\n\016app_profile_id\332A\ntable_name\332A\031table_" + + "name,app_profile_id0\001\022\301\002\n\tMutateRow\022$.go" + + "ogle.bigtable.v2.MutateRowRequest\032%.goog" + + "le.bigtable.v2.MutateRowResponse\"\346\001\202\323\344\223\002" + + "?\":/v2/{table_name=projects/*/instances/" + + "*/tables/*}:mutateRow:\001*\212\323\344\223\002N\022:\n\ntable_" + + "name\022,{table_name=projects/*/instances/*" + + "/tables/*}\022\020\n\016app_profile_id\332A\034table_nam" + + "e,row_key,mutations\332A+table_name,row_key" + + ",mutations,app_profile_id\022\263\002\n\nMutateRows" + + "\022%.google.bigtable.v2.MutateRowsRequest\032" + + "&.google.bigtable.v2.MutateRowsResponse\"" + + "\323\001\202\323\344\223\002@\";/v2/{table_name=projects/*/ins" + + "tances/*/tables/*}:mutateRows:\001*\212\323\344\223\002N\022:" + + "\n\ntable_name\022,{table_name=projects/*/ins" + + "tances/*/tables/*}\022\020\n\016app_profile_id\332A\022t" + + "able_name,entries\332A!table_name,entries,a" + + "pp_profile_id0\001\022\255\003\n\021CheckAndMutateRow\022,." + + "google.bigtable.v2.CheckAndMutateRowRequ" + + "est\032-.google.bigtable.v2.CheckAndMutateR" + + "owResponse\"\272\002\202\323\344\223\002G\"B/v2/{table_name=pro" + + "jects/*/instances/*/tables/*}:checkAndMu" + + "tateRow:\001*\212\323\344\223\002N\022:\n\ntable_name\022,{table_n" + + "ame=projects/*/instances/*/tables/*}\022\020\n\016" + + "app_profile_id\332ABtable_name,row_key,pred" + + "icate_filter,true_mutations,false_mutati" + + "ons\332AQtable_name,row_key,predicate_filte" + + "r,true_mutations,false_mutations,app_pro" + + "file_id\022\356\001\n\013PingAndWarm\022&.google.bigtabl" + + "e.v2.PingAndWarmRequest\032\'.google.bigtabl" + + "e.v2.PingAndWarmResponse\"\215\001\202\323\344\223\002+\"&/v2/{" + + "name=projects/*/instances/*}:ping:\001*\212\323\344\223" + + "\0029\022%\n\004name\022\035{name=projects/*/instances/*" + + "}\022\020\n\016app_profile_id\332A\004name\332A\023name,app_pr" + + "ofile_id\022\335\002\n\022ReadModifyWriteRow\022-.google" + + ".bigtable.v2.ReadModifyWriteRowRequest\032." + + ".google.bigtable.v2.ReadModifyWriteRowRe" + + "sponse\"\347\001\202\323\344\223\002H\"C/v2/{table_name=project" + + "s/*/instances/*/tables/*}:readModifyWrit" + + "eRow:\001*\212\323\344\223\002N\022:\n\ntable_name\022,{table_name" + + "=projects/*/instances/*/tables/*}\022\020\n\016app" + + "_profile_id\332A\030table_name,row_key,rules\332A" + + "\'table_name,row_key,rules,app_profile_id" + + "\032\333\002\312A\027bigtable.googleapis.com\322A\275\002https:/" + + "/www.googleapis.com/auth/bigtable.data,h" + "ttps://www.googleapis.com/auth/bigtable." - + "data,https://www.googleapis.com/auth/big" - + "table.data.readonly,https://www.googleap" - + "is.com/auth/cloud-bigtable.data,https://" - + "www.googleapis.com/auth/cloud-bigtable.d" - + "ata.readonly,https://www.googleapis.com/" - + "auth/cloud-platform,https://www.googleap" - + "is.com/auth/cloud-platform.read-onlyB\353\002\n" - + "\026com.google.bigtable.v2B\rBigtableProtoP\001" - + "Z:google.golang.org/genproto/googleapis/" - + "bigtable/v2;bigtable\252\002\030Google.Cloud.Bigt" - + "able.V2\312\002\030Google\\Cloud\\Bigtable\\V2\352\002\033Goo" - + "gle::Cloud::Bigtable::V2\352A\\\n\"bigtableadm" - + "in.googleapis.com/Table\0226projects/{proje" - + "ct}/instances/{instance}/tables/{table}\352" - + "AP\n%bigtableadmin.googleapis.com/Instanc" - + "e\022\'projects/{project}/instances/{instanc" - + "e}b\006proto3" + + "data.readonly,https://www.googleapis.com" + + "/auth/cloud-bigtable.data,https://www.go" + + "ogleapis.com/auth/cloud-bigtable.data.re" + + "adonly,https://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/cloud-platform.read-onlyB\353\002\n\026com.g" + + "oogle.bigtable.v2B\rBigtableProtoP\001Z:goog" + + "le.golang.org/genproto/googleapis/bigtab" + + "le/v2;bigtable\252\002\030Google.Cloud.Bigtable.V" + + "2\312\002\030Google\\Cloud\\Bigtable\\V2\352\002\033Google::C" + + "loud::Bigtable::V2\352AP\n%bigtableadmin.goo" + + "gleapis.com/Instance\022\'projects/{project}" + + "/instances/{instance}\352A\\\n\"bigtableadmin." + + "googleapis.com/Table\0226projects/{project}" + + "/instances/{instance}/tables/{table}b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -251,6 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.api.RoutingProto.getDescriptor(), com.google.bigtable.v2.DataProto.getDescriptor(), + com.google.bigtable.v2.RequestStatsProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), }); @@ -260,7 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_v2_ReadRowsRequest_descriptor, new java.lang.String[] { - "TableName", "AppProfileId", "Rows", "Filter", "RowsLimit", + "TableName", "AppProfileId", "Rows", "Filter", "RowsLimit", "RequestStatsView", }); internal_static_google_bigtable_v2_ReadRowsResponse_descriptor = getDescriptor().getMessageTypes().get(1); @@ -268,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_v2_ReadRowsResponse_descriptor, new java.lang.String[] { - "Chunks", "LastScannedRowKey", + "Chunks", "LastScannedRowKey", "RequestStats", }); internal_static_google_bigtable_v2_ReadRowsResponse_CellChunk_descriptor = internal_static_google_bigtable_v2_ReadRowsResponse_descriptor.getNestedTypes().get(0); @@ -418,6 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.api.RoutingProto.getDescriptor(); com.google.bigtable.v2.DataProto.getDescriptor(); + com.google.bigtable.v2.RequestStatsProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequest.java index 0d1ca2cae2..9a43c6e12a 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequest.java @@ -177,9 +177,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the table to which the conditional mutation should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the conditional mutation
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -205,9 +204,8 @@ public java.lang.String getTableName() { * * *
-   * Required. The unique name of the table to which the conditional mutation should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the conditional mutation
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -287,7 +285,8 @@ public com.google.protobuf.ByteString getAppProfileIdBytes() { * * *
-   * Required. The key of the row to which the conditional mutation should be applied.
+   * Required. The key of the row to which the conditional mutation should be
+   * applied.
    * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1027,9 +1026,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the table to which the conditional mutation should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the conditional mutation
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1054,9 +1052,8 @@ public java.lang.String getTableName() { * * *
-     * Required. The unique name of the table to which the conditional mutation should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the conditional mutation
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1081,9 +1078,8 @@ public com.google.protobuf.ByteString getTableNameBytes() { * * *
-     * Required. The unique name of the table to which the conditional mutation should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the conditional mutation
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1107,9 +1103,8 @@ public Builder setTableName(java.lang.String value) { * * *
-     * Required. The unique name of the table to which the conditional mutation should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the conditional mutation
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1129,9 +1124,8 @@ public Builder clearTableName() { * * *
-     * Required. The unique name of the table to which the conditional mutation should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the conditional mutation
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1269,7 +1263,8 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The key of the row to which the conditional mutation should be applied.
+     * Required. The key of the row to which the conditional mutation should be
+     * applied.
      * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1284,7 +1279,8 @@ public com.google.protobuf.ByteString getRowKey() { * * *
-     * Required. The key of the row to which the conditional mutation should be applied.
+     * Required. The key of the row to which the conditional mutation should be
+     * applied.
      * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1305,7 +1301,8 @@ public Builder setRowKey(com.google.protobuf.ByteString value) { * * *
-     * Required. The key of the row to which the conditional mutation should be applied.
+     * Required. The key of the row to which the conditional mutation should be
+     * applied.
      * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequestOrBuilder.java index e044d70cd1..c39724cfff 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/CheckAndMutateRowRequestOrBuilder.java @@ -27,9 +27,8 @@ public interface CheckAndMutateRowRequestOrBuilder * * *
-   * Required. The unique name of the table to which the conditional mutation should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the conditional mutation
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -44,9 +43,8 @@ public interface CheckAndMutateRowRequestOrBuilder * * *
-   * Required. The unique name of the table to which the conditional mutation should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the conditional mutation
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -89,7 +87,8 @@ public interface CheckAndMutateRowRequestOrBuilder * * *
-   * Required. The key of the row to which the conditional mutation should be applied.
+   * Required. The key of the row to which the conditional mutation should be
+   * applied.
    * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequest.java index 6e46da8f24..ccb68c2da5 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequest.java @@ -148,8 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the table to which the mutation should be applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the mutation should be
+   * applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -175,8 +175,8 @@ public java.lang.String getTableName() { * * *
-   * Required. The unique name of the table to which the mutation should be applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the mutation should be
+   * applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -274,9 +274,9 @@ public com.google.protobuf.ByteString getRowKey() { * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -291,9 +291,9 @@ public java.util.List getMutationsList() { * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -309,9 +309,9 @@ public java.util.List getMutationsList() { * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -326,9 +326,9 @@ public int getMutationsCount() { * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -343,9 +343,9 @@ public com.google.bigtable.v2.Mutation getMutations(int index) { * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -766,8 +766,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the table to which the mutation should be applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the mutation should be
+     * applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -792,8 +792,8 @@ public java.lang.String getTableName() { * * *
-     * Required. The unique name of the table to which the mutation should be applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the mutation should be
+     * applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -818,8 +818,8 @@ public com.google.protobuf.ByteString getTableNameBytes() { * * *
-     * Required. The unique name of the table to which the mutation should be applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the mutation should be
+     * applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -843,8 +843,8 @@ public Builder setTableName(java.lang.String value) { * * *
-     * Required. The unique name of the table to which the mutation should be applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the mutation should be
+     * applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -864,8 +864,8 @@ public Builder clearTableName() { * * *
-     * Required. The unique name of the table to which the mutation should be applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the mutation should be
+     * applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1073,9 +1073,9 @@ private void ensureMutationsIsMutable() { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1093,9 +1093,9 @@ public java.util.List getMutationsList() { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1113,9 +1113,9 @@ public int getMutationsCount() { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1133,9 +1133,9 @@ public com.google.bigtable.v2.Mutation getMutations(int index) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1159,9 +1159,9 @@ public Builder setMutations(int index, com.google.bigtable.v2.Mutation value) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1183,9 +1183,9 @@ public Builder setMutations( * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1209,9 +1209,9 @@ public Builder addMutations(com.google.bigtable.v2.Mutation value) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1235,9 +1235,9 @@ public Builder addMutations(int index, com.google.bigtable.v2.Mutation value) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1258,9 +1258,9 @@ public Builder addMutations(com.google.bigtable.v2.Mutation.Builder builderForVa * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1282,9 +1282,9 @@ public Builder addMutations( * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1306,9 +1306,9 @@ public Builder addAllMutations( * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1329,9 +1329,9 @@ public Builder clearMutations() { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1352,9 +1352,9 @@ public Builder removeMutations(int index) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1368,9 +1368,9 @@ public com.google.bigtable.v2.Mutation.Builder getMutationsBuilder(int index) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1388,9 +1388,9 @@ public com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index) * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1409,9 +1409,9 @@ public com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index) * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1426,9 +1426,9 @@ public com.google.bigtable.v2.Mutation.Builder addMutationsBuilder() { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * @@ -1443,9 +1443,9 @@ public com.google.bigtable.v2.Mutation.Builder addMutationsBuilder(int index) { * * *
-     * Required. Changes to be atomically applied to the specified row. Entries are applied
-     * in order, meaning that earlier mutations can be masked by later ones.
-     * Must contain at least one entry and at most 100000.
+     * Required. Changes to be atomically applied to the specified row. Entries
+     * are applied in order, meaning that earlier mutations can be masked by later
+     * ones. Must contain at least one entry and at most 100000.
      * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequestOrBuilder.java index cd0791f7d3..3bb86b6295 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. The unique name of the table to which the mutation should be applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the mutation should be
+   * applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -43,8 +43,8 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. The unique name of the table to which the mutation should be applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the mutation should be
+   * applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -100,9 +100,9 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -114,9 +114,9 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -128,9 +128,9 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -142,9 +142,9 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * @@ -156,9 +156,9 @@ public interface MutateRowRequestOrBuilder * * *
-   * Required. Changes to be atomically applied to the specified row. Entries are applied
-   * in order, meaning that earlier mutations can be masked by later ones.
-   * Must contain at least one entry and at most 100000.
+   * Required. Changes to be atomically applied to the specified row. Entries
+   * are applied in order, meaning that earlier mutations can be masked by later
+   * ones. Must contain at least one entry and at most 100000.
    * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequest.java index e0aed28a41..4a83ae2b26 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequest.java @@ -160,10 +160,9 @@ public interface EntryOrBuilder * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -175,10 +174,9 @@ public interface EntryOrBuilder * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -190,10 +188,9 @@ public interface EntryOrBuilder * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -205,10 +202,9 @@ public interface EntryOrBuilder * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -220,10 +216,9 @@ public interface EntryOrBuilder * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -364,10 +359,9 @@ public com.google.protobuf.ByteString getRowKey() { * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -382,10 +376,9 @@ public java.util.List getMutationsList() { * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -401,10 +394,9 @@ public java.util.List getMutationsList() { * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -419,10 +411,9 @@ public int getMutationsCount() { * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -437,10 +428,9 @@ public com.google.bigtable.v2.Mutation getMutations(int index) { * * *
-     * Required. Changes to be atomically applied to the specified row. Mutations are
-     * applied in order, meaning that earlier mutations can be masked by
-     * later ones.
-     * You must specify at least one mutation.
+     * Required. Changes to be atomically applied to the specified row.
+     * Mutations are applied in order, meaning that earlier mutations can be
+     * masked by later ones. You must specify at least one mutation.
      * 
* * @@ -905,10 +895,9 @@ private void ensureMutationsIsMutable() { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -926,10 +915,9 @@ public java.util.List getMutationsList() { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -947,10 +935,9 @@ public int getMutationsCount() { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -968,10 +955,9 @@ public com.google.bigtable.v2.Mutation getMutations(int index) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -995,10 +981,9 @@ public Builder setMutations(int index, com.google.bigtable.v2.Mutation value) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1020,10 +1005,9 @@ public Builder setMutations( * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1047,10 +1031,9 @@ public Builder addMutations(com.google.bigtable.v2.Mutation value) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1074,10 +1057,9 @@ public Builder addMutations(int index, com.google.bigtable.v2.Mutation value) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1098,10 +1080,9 @@ public Builder addMutations(com.google.bigtable.v2.Mutation.Builder builderForVa * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1123,10 +1104,9 @@ public Builder addMutations( * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1148,10 +1128,9 @@ public Builder addAllMutations( * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1172,10 +1151,9 @@ public Builder clearMutations() { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1196,10 +1174,9 @@ public Builder removeMutations(int index) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1213,10 +1190,9 @@ public com.google.bigtable.v2.Mutation.Builder getMutationsBuilder(int index) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1234,10 +1210,9 @@ public com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index) * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1256,10 +1231,9 @@ public com.google.bigtable.v2.MutationOrBuilder getMutationsOrBuilder(int index) * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1274,10 +1248,9 @@ public com.google.bigtable.v2.Mutation.Builder addMutationsBuilder() { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1292,10 +1265,9 @@ public com.google.bigtable.v2.Mutation.Builder addMutationsBuilder(int index) { * * *
-       * Required. Changes to be atomically applied to the specified row. Mutations are
-       * applied in order, meaning that earlier mutations can be masked by
-       * later ones.
-       * You must specify at least one mutation.
+       * Required. Changes to be atomically applied to the specified row.
+       * Mutations are applied in order, meaning that earlier mutations can be
+       * masked by later ones. You must specify at least one mutation.
        * 
* * @@ -1381,7 +1353,8 @@ public com.google.bigtable.v2.MutateRowsRequest.Entry getDefaultInstanceForType( * * *
-   * Required. The unique name of the table to which the mutations should be applied.
+   * Required. The unique name of the table to which the mutations should be
+   * applied.
    * 
* * @@ -1406,7 +1379,8 @@ public java.lang.String getTableName() { * * *
-   * Required. The unique name of the table to which the mutations should be applied.
+   * Required. The unique name of the table to which the mutations should be
+   * applied.
    * 
* * @@ -1972,7 +1946,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the table to which the mutations should be applied.
+     * Required. The unique name of the table to which the mutations should be
+     * applied.
      * 
* * @@ -1996,7 +1971,8 @@ public java.lang.String getTableName() { * * *
-     * Required. The unique name of the table to which the mutations should be applied.
+     * Required. The unique name of the table to which the mutations should be
+     * applied.
      * 
* * @@ -2020,7 +1996,8 @@ public com.google.protobuf.ByteString getTableNameBytes() { * * *
-     * Required. The unique name of the table to which the mutations should be applied.
+     * Required. The unique name of the table to which the mutations should be
+     * applied.
      * 
* * @@ -2043,7 +2020,8 @@ public Builder setTableName(java.lang.String value) { * * *
-     * Required. The unique name of the table to which the mutations should be applied.
+     * Required. The unique name of the table to which the mutations should be
+     * applied.
      * 
* * @@ -2062,7 +2040,8 @@ public Builder clearTableName() { * * *
-     * Required. The unique name of the table to which the mutations should be applied.
+     * Required. The unique name of the table to which the mutations should be
+     * applied.
      * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequestOrBuilder.java index 7c877bd876..483d0f714f 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/MutateRowsRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface MutateRowsRequestOrBuilder * * *
-   * Required. The unique name of the table to which the mutations should be applied.
+   * Required. The unique name of the table to which the mutations should be
+   * applied.
    * 
* * @@ -41,7 +42,8 @@ public interface MutateRowsRequestOrBuilder * * *
-   * Required. The unique name of the table to which the mutations should be applied.
+   * Required. The unique name of the table to which the mutations should be
+   * applied.
    * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequest.java index c602d4fc6c..b9c74111c7 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequest.java @@ -127,8 +127,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the instance to check permissions for as well as
-   * respond. Values are of the form `projects/<project>/instances/<instance>`.
+   * Required. The unique name of the instance to check permissions for as well
+   * as respond. Values are of the form
+   * `projects/<project>/instances/<instance>`.
    * 
* * @@ -153,8 +154,9 @@ public java.lang.String getName() { * * *
-   * Required. The unique name of the instance to check permissions for as well as
-   * respond. Values are of the form `projects/<project>/instances/<instance>`.
+   * Required. The unique name of the instance to check permissions for as well
+   * as respond. Values are of the form
+   * `projects/<project>/instances/<instance>`.
    * 
* * @@ -564,8 +566,9 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the instance to check permissions for as well as
-     * respond. Values are of the form `projects/<project>/instances/<instance>`.
+     * Required. The unique name of the instance to check permissions for as well
+     * as respond. Values are of the form
+     * `projects/<project>/instances/<instance>`.
      * 
* * @@ -589,8 +592,9 @@ public java.lang.String getName() { * * *
-     * Required. The unique name of the instance to check permissions for as well as
-     * respond. Values are of the form `projects/<project>/instances/<instance>`.
+     * Required. The unique name of the instance to check permissions for as well
+     * as respond. Values are of the form
+     * `projects/<project>/instances/<instance>`.
      * 
* * @@ -614,8 +618,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The unique name of the instance to check permissions for as well as
-     * respond. Values are of the form `projects/<project>/instances/<instance>`.
+     * Required. The unique name of the instance to check permissions for as well
+     * as respond. Values are of the form
+     * `projects/<project>/instances/<instance>`.
      * 
* * @@ -638,8 +643,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The unique name of the instance to check permissions for as well as
-     * respond. Values are of the form `projects/<project>/instances/<instance>`.
+     * Required. The unique name of the instance to check permissions for as well
+     * as respond. Values are of the form
+     * `projects/<project>/instances/<instance>`.
      * 
* * @@ -658,8 +664,9 @@ public Builder clearName() { * * *
-     * Required. The unique name of the instance to check permissions for as well as
-     * respond. Values are of the form `projects/<project>/instances/<instance>`.
+     * Required. The unique name of the instance to check permissions for as well
+     * as respond. Values are of the form
+     * `projects/<project>/instances/<instance>`.
      * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequestOrBuilder.java index 026de7db51..4f15fb0040 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/PingAndWarmRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface PingAndWarmRequestOrBuilder * * *
-   * Required. The unique name of the instance to check permissions for as well as
-   * respond. Values are of the form `projects/<project>/instances/<instance>`.
+   * Required. The unique name of the instance to check permissions for as well
+   * as respond. Values are of the form
+   * `projects/<project>/instances/<instance>`.
    * 
* * @@ -42,8 +43,9 @@ public interface PingAndWarmRequestOrBuilder * * *
-   * Required. The unique name of the instance to check permissions for as well as
-   * respond. Values are of the form `projects/<project>/instances/<instance>`.
+   * Required. The unique name of the instance to check permissions for as well
+   * as respond. Values are of the form
+   * `projects/<project>/instances/<instance>`.
    * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadEfficiencyStats.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadEfficiencyStats.java new file mode 100644 index 0000000000..af30c1ba19 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadEfficiencyStats.java @@ -0,0 +1,1060 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +/** + * + * + *
+ * ReadEfficiencyStats captures information about the efficiency of a read.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.ReadEfficiencyStats} + */ +public final class ReadEfficiencyStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.ReadEfficiencyStats) + ReadEfficiencyStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadEfficiencyStats.newBuilder() to construct. + private ReadEfficiencyStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadEfficiencyStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadEfficiencyStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadEfficiencyStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.bigtable.v2.ReadIteratorStats.Builder subBuilder = null; + if (readIteratorStats_ != null) { + subBuilder = readIteratorStats_.toBuilder(); + } + readIteratorStats_ = + input.readMessage( + com.google.bigtable.v2.ReadIteratorStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(readIteratorStats_); + readIteratorStats_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.bigtable.v2.RequestLatencyStats.Builder subBuilder = null; + if (requestLatencyStats_ != null) { + subBuilder = requestLatencyStats_.toBuilder(); + } + requestLatencyStats_ = + input.readMessage( + com.google.bigtable.v2.RequestLatencyStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestLatencyStats_); + requestLatencyStats_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadEfficiencyStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadEfficiencyStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ReadEfficiencyStats.class, + com.google.bigtable.v2.ReadEfficiencyStats.Builder.class); + } + + public static final int READ_ITERATOR_STATS_FIELD_NUMBER = 1; + private com.google.bigtable.v2.ReadIteratorStats readIteratorStats_; + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return Whether the readIteratorStats field is set. + */ + @java.lang.Override + public boolean hasReadIteratorStats() { + return readIteratorStats_ != null; + } + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return The readIteratorStats. + */ + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStats getReadIteratorStats() { + return readIteratorStats_ == null + ? com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance() + : readIteratorStats_; + } + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStatsOrBuilder getReadIteratorStatsOrBuilder() { + return getReadIteratorStats(); + } + + public static final int REQUEST_LATENCY_STATS_FIELD_NUMBER = 2; + private com.google.bigtable.v2.RequestLatencyStats requestLatencyStats_; + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return Whether the requestLatencyStats field is set. + */ + @java.lang.Override + public boolean hasRequestLatencyStats() { + return requestLatencyStats_ != null; + } + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return The requestLatencyStats. + */ + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStats getRequestLatencyStats() { + return requestLatencyStats_ == null + ? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance() + : requestLatencyStats_; + } + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStatsOrBuilder getRequestLatencyStatsOrBuilder() { + return getRequestLatencyStats(); + } + + 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 (readIteratorStats_ != null) { + output.writeMessage(1, getReadIteratorStats()); + } + if (requestLatencyStats_ != null) { + output.writeMessage(2, getRequestLatencyStats()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (readIteratorStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadIteratorStats()); + } + if (requestLatencyStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestLatencyStats()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.ReadEfficiencyStats)) { + return super.equals(obj); + } + com.google.bigtable.v2.ReadEfficiencyStats other = + (com.google.bigtable.v2.ReadEfficiencyStats) obj; + + if (hasReadIteratorStats() != other.hasReadIteratorStats()) return false; + if (hasReadIteratorStats()) { + if (!getReadIteratorStats().equals(other.getReadIteratorStats())) return false; + } + if (hasRequestLatencyStats() != other.hasRequestLatencyStats()) return false; + if (hasRequestLatencyStats()) { + if (!getRequestLatencyStats().equals(other.getRequestLatencyStats())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReadIteratorStats()) { + hash = (37 * hash) + READ_ITERATOR_STATS_FIELD_NUMBER; + hash = (53 * hash) + getReadIteratorStats().hashCode(); + } + if (hasRequestLatencyStats()) { + hash = (37 * hash) + REQUEST_LATENCY_STATS_FIELD_NUMBER; + hash = (53 * hash) + getRequestLatencyStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.ReadEfficiencyStats 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; + } + /** + * + * + *
+   * ReadEfficiencyStats captures information about the efficiency of a read.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.ReadEfficiencyStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ReadEfficiencyStats) + com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadEfficiencyStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadEfficiencyStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ReadEfficiencyStats.class, + com.google.bigtable.v2.ReadEfficiencyStats.Builder.class); + } + + // Construct using com.google.bigtable.v2.ReadEfficiencyStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (readIteratorStatsBuilder_ == null) { + readIteratorStats_ = null; + } else { + readIteratorStats_ = null; + readIteratorStatsBuilder_ = null; + } + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStats_ = null; + } else { + requestLatencyStats_ = null; + requestLatencyStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadEfficiencyStats_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStats getDefaultInstanceForType() { + return com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStats build() { + com.google.bigtable.v2.ReadEfficiencyStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStats buildPartial() { + com.google.bigtable.v2.ReadEfficiencyStats result = + new com.google.bigtable.v2.ReadEfficiencyStats(this); + if (readIteratorStatsBuilder_ == null) { + result.readIteratorStats_ = readIteratorStats_; + } else { + result.readIteratorStats_ = readIteratorStatsBuilder_.build(); + } + if (requestLatencyStatsBuilder_ == null) { + result.requestLatencyStats_ = requestLatencyStats_; + } else { + result.requestLatencyStats_ = requestLatencyStatsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.ReadEfficiencyStats) { + return mergeFrom((com.google.bigtable.v2.ReadEfficiencyStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.ReadEfficiencyStats other) { + if (other == com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance()) return this; + if (other.hasReadIteratorStats()) { + mergeReadIteratorStats(other.getReadIteratorStats()); + } + if (other.hasRequestLatencyStats()) { + mergeRequestLatencyStats(other.getRequestLatencyStats()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.v2.ReadEfficiencyStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.bigtable.v2.ReadEfficiencyStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.bigtable.v2.ReadIteratorStats readIteratorStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadIteratorStats, + com.google.bigtable.v2.ReadIteratorStats.Builder, + com.google.bigtable.v2.ReadIteratorStatsOrBuilder> + readIteratorStatsBuilder_; + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return Whether the readIteratorStats field is set. + */ + public boolean hasReadIteratorStats() { + return readIteratorStatsBuilder_ != null || readIteratorStats_ != null; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return The readIteratorStats. + */ + public com.google.bigtable.v2.ReadIteratorStats getReadIteratorStats() { + if (readIteratorStatsBuilder_ == null) { + return readIteratorStats_ == null + ? com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance() + : readIteratorStats_; + } else { + return readIteratorStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder setReadIteratorStats(com.google.bigtable.v2.ReadIteratorStats value) { + if (readIteratorStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readIteratorStats_ = value; + onChanged(); + } else { + readIteratorStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder setReadIteratorStats( + com.google.bigtable.v2.ReadIteratorStats.Builder builderForValue) { + if (readIteratorStatsBuilder_ == null) { + readIteratorStats_ = builderForValue.build(); + onChanged(); + } else { + readIteratorStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder mergeReadIteratorStats(com.google.bigtable.v2.ReadIteratorStats value) { + if (readIteratorStatsBuilder_ == null) { + if (readIteratorStats_ != null) { + readIteratorStats_ = + com.google.bigtable.v2.ReadIteratorStats.newBuilder(readIteratorStats_) + .mergeFrom(value) + .buildPartial(); + } else { + readIteratorStats_ = value; + } + onChanged(); + } else { + readIteratorStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public Builder clearReadIteratorStats() { + if (readIteratorStatsBuilder_ == null) { + readIteratorStats_ = null; + onChanged(); + } else { + readIteratorStats_ = null; + readIteratorStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public com.google.bigtable.v2.ReadIteratorStats.Builder getReadIteratorStatsBuilder() { + + onChanged(); + return getReadIteratorStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + public com.google.bigtable.v2.ReadIteratorStatsOrBuilder getReadIteratorStatsOrBuilder() { + if (readIteratorStatsBuilder_ != null) { + return readIteratorStatsBuilder_.getMessageOrBuilder(); + } else { + return readIteratorStats_ == null + ? com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance() + : readIteratorStats_; + } + } + /** + * + * + *
+     * Iteration stats describe how efficient the read is, e.g. comparing
+     * rows seen vs. rows returned or cells seen vs cells returned can provide an
+     * indication of read efficiency (the higher the ratio of seen to retuned the
+     * better).
+     * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadIteratorStats, + com.google.bigtable.v2.ReadIteratorStats.Builder, + com.google.bigtable.v2.ReadIteratorStatsOrBuilder> + getReadIteratorStatsFieldBuilder() { + if (readIteratorStatsBuilder_ == null) { + readIteratorStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadIteratorStats, + com.google.bigtable.v2.ReadIteratorStats.Builder, + com.google.bigtable.v2.ReadIteratorStatsOrBuilder>( + getReadIteratorStats(), getParentForChildren(), isClean()); + readIteratorStats_ = null; + } + return readIteratorStatsBuilder_; + } + + private com.google.bigtable.v2.RequestLatencyStats requestLatencyStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestLatencyStats, + com.google.bigtable.v2.RequestLatencyStats.Builder, + com.google.bigtable.v2.RequestLatencyStatsOrBuilder> + requestLatencyStatsBuilder_; + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return Whether the requestLatencyStats field is set. + */ + public boolean hasRequestLatencyStats() { + return requestLatencyStatsBuilder_ != null || requestLatencyStats_ != null; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return The requestLatencyStats. + */ + public com.google.bigtable.v2.RequestLatencyStats getRequestLatencyStats() { + if (requestLatencyStatsBuilder_ == null) { + return requestLatencyStats_ == null + ? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance() + : requestLatencyStats_; + } else { + return requestLatencyStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder setRequestLatencyStats(com.google.bigtable.v2.RequestLatencyStats value) { + if (requestLatencyStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestLatencyStats_ = value; + onChanged(); + } else { + requestLatencyStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder setRequestLatencyStats( + com.google.bigtable.v2.RequestLatencyStats.Builder builderForValue) { + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStats_ = builderForValue.build(); + onChanged(); + } else { + requestLatencyStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder mergeRequestLatencyStats(com.google.bigtable.v2.RequestLatencyStats value) { + if (requestLatencyStatsBuilder_ == null) { + if (requestLatencyStats_ != null) { + requestLatencyStats_ = + com.google.bigtable.v2.RequestLatencyStats.newBuilder(requestLatencyStats_) + .mergeFrom(value) + .buildPartial(); + } else { + requestLatencyStats_ = value; + } + onChanged(); + } else { + requestLatencyStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public Builder clearRequestLatencyStats() { + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStats_ = null; + onChanged(); + } else { + requestLatencyStats_ = null; + requestLatencyStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public com.google.bigtable.v2.RequestLatencyStats.Builder getRequestLatencyStatsBuilder() { + + onChanged(); + return getRequestLatencyStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + public com.google.bigtable.v2.RequestLatencyStatsOrBuilder getRequestLatencyStatsOrBuilder() { + if (requestLatencyStatsBuilder_ != null) { + return requestLatencyStatsBuilder_.getMessageOrBuilder(); + } else { + return requestLatencyStats_ == null + ? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance() + : requestLatencyStats_; + } + } + /** + * + * + *
+     * Request latency stats describe the time taken to complete a request, from
+     * the server side.
+     * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestLatencyStats, + com.google.bigtable.v2.RequestLatencyStats.Builder, + com.google.bigtable.v2.RequestLatencyStatsOrBuilder> + getRequestLatencyStatsFieldBuilder() { + if (requestLatencyStatsBuilder_ == null) { + requestLatencyStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestLatencyStats, + com.google.bigtable.v2.RequestLatencyStats.Builder, + com.google.bigtable.v2.RequestLatencyStatsOrBuilder>( + getRequestLatencyStats(), getParentForChildren(), isClean()); + requestLatencyStats_ = null; + } + return requestLatencyStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ReadEfficiencyStats) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadEfficiencyStats) + private static final com.google.bigtable.v2.ReadEfficiencyStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.ReadEfficiencyStats(); + } + + public static com.google.bigtable.v2.ReadEfficiencyStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadEfficiencyStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadEfficiencyStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadEfficiencyStatsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadEfficiencyStatsOrBuilder.java new file mode 100644 index 0000000000..77898c1698 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadEfficiencyStatsOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +public interface ReadEfficiencyStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.ReadEfficiencyStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return Whether the readIteratorStats field is set. + */ + boolean hasReadIteratorStats(); + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + * + * @return The readIteratorStats. + */ + com.google.bigtable.v2.ReadIteratorStats getReadIteratorStats(); + /** + * + * + *
+   * Iteration stats describe how efficient the read is, e.g. comparing
+   * rows seen vs. rows returned or cells seen vs cells returned can provide an
+   * indication of read efficiency (the higher the ratio of seen to retuned the
+   * better).
+   * 
+ * + * .google.bigtable.v2.ReadIteratorStats read_iterator_stats = 1; + */ + com.google.bigtable.v2.ReadIteratorStatsOrBuilder getReadIteratorStatsOrBuilder(); + + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return Whether the requestLatencyStats field is set. + */ + boolean hasRequestLatencyStats(); + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + * + * @return The requestLatencyStats. + */ + com.google.bigtable.v2.RequestLatencyStats getRequestLatencyStats(); + /** + * + * + *
+   * Request latency stats describe the time taken to complete a request, from
+   * the server side.
+   * 
+ * + * .google.bigtable.v2.RequestLatencyStats request_latency_stats = 2; + */ + com.google.bigtable.v2.RequestLatencyStatsOrBuilder getRequestLatencyStatsOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadIteratorStats.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadIteratorStats.java new file mode 100644 index 0000000000..6628c5f68d --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadIteratorStats.java @@ -0,0 +1,917 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +/** + * + * + *
+ * ReadIteratorStats captures information about the iteration of rows or cells
+ * over the course of a read, e.g. how many results were scanned in a read
+ * operation versus the results returned.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.ReadIteratorStats} + */ +public final class ReadIteratorStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.ReadIteratorStats) + ReadIteratorStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ReadIteratorStats.newBuilder() to construct. + private ReadIteratorStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReadIteratorStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReadIteratorStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ReadIteratorStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rowsSeenCount_ = input.readInt64(); + break; + } + case 16: + { + rowsReturnedCount_ = input.readInt64(); + break; + } + case 24: + { + cellsSeenCount_ = input.readInt64(); + break; + } + case 32: + { + cellsReturnedCount_ = input.readInt64(); + break; + } + case 40: + { + deletesSeenCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadIteratorStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadIteratorStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ReadIteratorStats.class, + com.google.bigtable.v2.ReadIteratorStats.Builder.class); + } + + public static final int ROWS_SEEN_COUNT_FIELD_NUMBER = 1; + private long rowsSeenCount_; + /** + * + * + *
+   * The rows seen (scanned) as part of the request. This includes the count of
+   * rows returned, as captured below.
+   * 
+ * + * int64 rows_seen_count = 1; + * + * @return The rowsSeenCount. + */ + @java.lang.Override + public long getRowsSeenCount() { + return rowsSeenCount_; + } + + public static final int ROWS_RETURNED_COUNT_FIELD_NUMBER = 2; + private long rowsReturnedCount_; + /** + * + * + *
+   * The rows returned as part of the request.
+   * 
+ * + * int64 rows_returned_count = 2; + * + * @return The rowsReturnedCount. + */ + @java.lang.Override + public long getRowsReturnedCount() { + return rowsReturnedCount_; + } + + public static final int CELLS_SEEN_COUNT_FIELD_NUMBER = 3; + private long cellsSeenCount_; + /** + * + * + *
+   * The cells seen (scanned) as part of the request. This includes the count of
+   * cells returned, as captured below.
+   * 
+ * + * int64 cells_seen_count = 3; + * + * @return The cellsSeenCount. + */ + @java.lang.Override + public long getCellsSeenCount() { + return cellsSeenCount_; + } + + public static final int CELLS_RETURNED_COUNT_FIELD_NUMBER = 4; + private long cellsReturnedCount_; + /** + * + * + *
+   * The cells returned as part of the request.
+   * 
+ * + * int64 cells_returned_count = 4; + * + * @return The cellsReturnedCount. + */ + @java.lang.Override + public long getCellsReturnedCount() { + return cellsReturnedCount_; + } + + public static final int DELETES_SEEN_COUNT_FIELD_NUMBER = 5; + private long deletesSeenCount_; + /** + * + * + *
+   * The deletes seen as part of the request.
+   * 
+ * + * int64 deletes_seen_count = 5; + * + * @return The deletesSeenCount. + */ + @java.lang.Override + public long getDeletesSeenCount() { + return deletesSeenCount_; + } + + 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 (rowsSeenCount_ != 0L) { + output.writeInt64(1, rowsSeenCount_); + } + if (rowsReturnedCount_ != 0L) { + output.writeInt64(2, rowsReturnedCount_); + } + if (cellsSeenCount_ != 0L) { + output.writeInt64(3, cellsSeenCount_); + } + if (cellsReturnedCount_ != 0L) { + output.writeInt64(4, cellsReturnedCount_); + } + if (deletesSeenCount_ != 0L) { + output.writeInt64(5, deletesSeenCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rowsSeenCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowsSeenCount_); + } + if (rowsReturnedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowsReturnedCount_); + } + if (cellsSeenCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, cellsSeenCount_); + } + if (cellsReturnedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, cellsReturnedCount_); + } + if (deletesSeenCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, deletesSeenCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.ReadIteratorStats)) { + return super.equals(obj); + } + com.google.bigtable.v2.ReadIteratorStats other = (com.google.bigtable.v2.ReadIteratorStats) obj; + + if (getRowsSeenCount() != other.getRowsSeenCount()) return false; + if (getRowsReturnedCount() != other.getRowsReturnedCount()) return false; + if (getCellsSeenCount() != other.getCellsSeenCount()) return false; + if (getCellsReturnedCount() != other.getCellsReturnedCount()) return false; + if (getDeletesSeenCount() != other.getDeletesSeenCount()) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + ROWS_SEEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowsSeenCount()); + hash = (37 * hash) + ROWS_RETURNED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowsReturnedCount()); + hash = (37 * hash) + CELLS_SEEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCellsSeenCount()); + hash = (37 * hash) + CELLS_RETURNED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCellsReturnedCount()); + hash = (37 * hash) + DELETES_SEEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDeletesSeenCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.ReadIteratorStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.ReadIteratorStats 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; + } + /** + * + * + *
+   * ReadIteratorStats captures information about the iteration of rows or cells
+   * over the course of a read, e.g. how many results were scanned in a read
+   * operation versus the results returned.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.ReadIteratorStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.ReadIteratorStats) + com.google.bigtable.v2.ReadIteratorStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadIteratorStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadIteratorStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.ReadIteratorStats.class, + com.google.bigtable.v2.ReadIteratorStats.Builder.class); + } + + // Construct using com.google.bigtable.v2.ReadIteratorStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rowsSeenCount_ = 0L; + + rowsReturnedCount_ = 0L; + + cellsSeenCount_ = 0L; + + cellsReturnedCount_ = 0L; + + deletesSeenCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_ReadIteratorStats_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStats getDefaultInstanceForType() { + return com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStats build() { + com.google.bigtable.v2.ReadIteratorStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStats buildPartial() { + com.google.bigtable.v2.ReadIteratorStats result = + new com.google.bigtable.v2.ReadIteratorStats(this); + result.rowsSeenCount_ = rowsSeenCount_; + result.rowsReturnedCount_ = rowsReturnedCount_; + result.cellsSeenCount_ = cellsSeenCount_; + result.cellsReturnedCount_ = cellsReturnedCount_; + result.deletesSeenCount_ = deletesSeenCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.ReadIteratorStats) { + return mergeFrom((com.google.bigtable.v2.ReadIteratorStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.ReadIteratorStats other) { + if (other == com.google.bigtable.v2.ReadIteratorStats.getDefaultInstance()) return this; + if (other.getRowsSeenCount() != 0L) { + setRowsSeenCount(other.getRowsSeenCount()); + } + if (other.getRowsReturnedCount() != 0L) { + setRowsReturnedCount(other.getRowsReturnedCount()); + } + if (other.getCellsSeenCount() != 0L) { + setCellsSeenCount(other.getCellsSeenCount()); + } + if (other.getCellsReturnedCount() != 0L) { + setCellsReturnedCount(other.getCellsReturnedCount()); + } + if (other.getDeletesSeenCount() != 0L) { + setDeletesSeenCount(other.getDeletesSeenCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.v2.ReadIteratorStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.bigtable.v2.ReadIteratorStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long rowsSeenCount_; + /** + * + * + *
+     * The rows seen (scanned) as part of the request. This includes the count of
+     * rows returned, as captured below.
+     * 
+ * + * int64 rows_seen_count = 1; + * + * @return The rowsSeenCount. + */ + @java.lang.Override + public long getRowsSeenCount() { + return rowsSeenCount_; + } + /** + * + * + *
+     * The rows seen (scanned) as part of the request. This includes the count of
+     * rows returned, as captured below.
+     * 
+ * + * int64 rows_seen_count = 1; + * + * @param value The rowsSeenCount to set. + * @return This builder for chaining. + */ + public Builder setRowsSeenCount(long value) { + + rowsSeenCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The rows seen (scanned) as part of the request. This includes the count of
+     * rows returned, as captured below.
+     * 
+ * + * int64 rows_seen_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRowsSeenCount() { + + rowsSeenCount_ = 0L; + onChanged(); + return this; + } + + private long rowsReturnedCount_; + /** + * + * + *
+     * The rows returned as part of the request.
+     * 
+ * + * int64 rows_returned_count = 2; + * + * @return The rowsReturnedCount. + */ + @java.lang.Override + public long getRowsReturnedCount() { + return rowsReturnedCount_; + } + /** + * + * + *
+     * The rows returned as part of the request.
+     * 
+ * + * int64 rows_returned_count = 2; + * + * @param value The rowsReturnedCount to set. + * @return This builder for chaining. + */ + public Builder setRowsReturnedCount(long value) { + + rowsReturnedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The rows returned as part of the request.
+     * 
+ * + * int64 rows_returned_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearRowsReturnedCount() { + + rowsReturnedCount_ = 0L; + onChanged(); + return this; + } + + private long cellsSeenCount_; + /** + * + * + *
+     * The cells seen (scanned) as part of the request. This includes the count of
+     * cells returned, as captured below.
+     * 
+ * + * int64 cells_seen_count = 3; + * + * @return The cellsSeenCount. + */ + @java.lang.Override + public long getCellsSeenCount() { + return cellsSeenCount_; + } + /** + * + * + *
+     * The cells seen (scanned) as part of the request. This includes the count of
+     * cells returned, as captured below.
+     * 
+ * + * int64 cells_seen_count = 3; + * + * @param value The cellsSeenCount to set. + * @return This builder for chaining. + */ + public Builder setCellsSeenCount(long value) { + + cellsSeenCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cells seen (scanned) as part of the request. This includes the count of
+     * cells returned, as captured below.
+     * 
+ * + * int64 cells_seen_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearCellsSeenCount() { + + cellsSeenCount_ = 0L; + onChanged(); + return this; + } + + private long cellsReturnedCount_; + /** + * + * + *
+     * The cells returned as part of the request.
+     * 
+ * + * int64 cells_returned_count = 4; + * + * @return The cellsReturnedCount. + */ + @java.lang.Override + public long getCellsReturnedCount() { + return cellsReturnedCount_; + } + /** + * + * + *
+     * The cells returned as part of the request.
+     * 
+ * + * int64 cells_returned_count = 4; + * + * @param value The cellsReturnedCount to set. + * @return This builder for chaining. + */ + public Builder setCellsReturnedCount(long value) { + + cellsReturnedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The cells returned as part of the request.
+     * 
+ * + * int64 cells_returned_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearCellsReturnedCount() { + + cellsReturnedCount_ = 0L; + onChanged(); + return this; + } + + private long deletesSeenCount_; + /** + * + * + *
+     * The deletes seen as part of the request.
+     * 
+ * + * int64 deletes_seen_count = 5; + * + * @return The deletesSeenCount. + */ + @java.lang.Override + public long getDeletesSeenCount() { + return deletesSeenCount_; + } + /** + * + * + *
+     * The deletes seen as part of the request.
+     * 
+ * + * int64 deletes_seen_count = 5; + * + * @param value The deletesSeenCount to set. + * @return This builder for chaining. + */ + public Builder setDeletesSeenCount(long value) { + + deletesSeenCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The deletes seen as part of the request.
+     * 
+ * + * int64 deletes_seen_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearDeletesSeenCount() { + + deletesSeenCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.ReadIteratorStats) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.ReadIteratorStats) + private static final com.google.bigtable.v2.ReadIteratorStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.ReadIteratorStats(); + } + + public static com.google.bigtable.v2.ReadIteratorStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadIteratorStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReadIteratorStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.ReadIteratorStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadIteratorStatsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadIteratorStatsOrBuilder.java new file mode 100644 index 0000000000..3c3a9eb550 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadIteratorStatsOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +public interface ReadIteratorStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.ReadIteratorStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The rows seen (scanned) as part of the request. This includes the count of
+   * rows returned, as captured below.
+   * 
+ * + * int64 rows_seen_count = 1; + * + * @return The rowsSeenCount. + */ + long getRowsSeenCount(); + + /** + * + * + *
+   * The rows returned as part of the request.
+   * 
+ * + * int64 rows_returned_count = 2; + * + * @return The rowsReturnedCount. + */ + long getRowsReturnedCount(); + + /** + * + * + *
+   * The cells seen (scanned) as part of the request. This includes the count of
+   * cells returned, as captured below.
+   * 
+ * + * int64 cells_seen_count = 3; + * + * @return The cellsSeenCount. + */ + long getCellsSeenCount(); + + /** + * + * + *
+   * The cells returned as part of the request.
+   * 
+ * + * int64 cells_returned_count = 4; + * + * @return The cellsReturnedCount. + */ + long getCellsReturnedCount(); + + /** + * + * + *
+   * The deletes seen as part of the request.
+   * 
+ * + * int64 deletes_seen_count = 5; + * + * @return The deletesSeenCount. + */ + long getDeletesSeenCount(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequest.java index a048b66796..5261b3f010 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequest.java @@ -149,9 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the table to which the read/modify/write rules should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the read/modify/write rules
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -177,9 +176,8 @@ public java.lang.String getTableName() { * * *
-   * Required. The unique name of the table to which the read/modify/write rules should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the read/modify/write rules
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -259,7 +257,8 @@ public com.google.protobuf.ByteString getAppProfileIdBytes() { * * *
-   * Required. The key of the row to which the read/modify/write rules should be applied.
+   * Required. The key of the row to which the read/modify/write rules should be
+   * applied.
    * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -277,9 +276,9 @@ public com.google.protobuf.ByteString getRowKey() { * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -294,9 +293,9 @@ public java.util.List getRulesList() * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -312,9 +311,9 @@ public java.util.List getRulesList() * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -329,9 +328,9 @@ public int getRulesCount() { * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -346,9 +345,9 @@ public com.google.bigtable.v2.ReadModifyWriteRule getRules(int index) { * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -771,9 +770,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the table to which the read/modify/write rules should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the read/modify/write rules
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -798,9 +796,8 @@ public java.lang.String getTableName() { * * *
-     * Required. The unique name of the table to which the read/modify/write rules should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the read/modify/write rules
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -825,9 +822,8 @@ public com.google.protobuf.ByteString getTableNameBytes() { * * *
-     * Required. The unique name of the table to which the read/modify/write rules should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the read/modify/write rules
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -851,9 +847,8 @@ public Builder setTableName(java.lang.String value) { * * *
-     * Required. The unique name of the table to which the read/modify/write rules should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the read/modify/write rules
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -873,9 +868,8 @@ public Builder clearTableName() { * * *
-     * Required. The unique name of the table to which the read/modify/write rules should be
-     * applied.
-     * Values are of the form
+     * Required. The unique name of the table to which the read/modify/write rules
+     * should be applied. Values are of the form
      * `projects/<project>/instances/<instance>/tables/<table>`.
      * 
* @@ -1013,7 +1007,8 @@ public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The key of the row to which the read/modify/write rules should be applied.
+     * Required. The key of the row to which the read/modify/write rules should be
+     * applied.
      * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1028,7 +1023,8 @@ public com.google.protobuf.ByteString getRowKey() { * * *
-     * Required. The key of the row to which the read/modify/write rules should be applied.
+     * Required. The key of the row to which the read/modify/write rules should be
+     * applied.
      * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1049,7 +1045,8 @@ public Builder setRowKey(com.google.protobuf.ByteString value) { * * *
-     * Required. The key of the row to which the read/modify/write rules should be applied.
+     * Required. The key of the row to which the read/modify/write rules should be
+     * applied.
      * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1083,9 +1080,9 @@ private void ensureRulesIsMutable() { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1103,9 +1100,9 @@ public java.util.List getRulesList() * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1123,9 +1120,9 @@ public int getRulesCount() { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1143,9 +1140,9 @@ public com.google.bigtable.v2.ReadModifyWriteRule getRules(int index) { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1169,9 +1166,9 @@ public Builder setRules(int index, com.google.bigtable.v2.ReadModifyWriteRule va * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1193,9 +1190,9 @@ public Builder setRules( * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1219,9 +1216,9 @@ public Builder addRules(com.google.bigtable.v2.ReadModifyWriteRule value) { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1245,9 +1242,9 @@ public Builder addRules(int index, com.google.bigtable.v2.ReadModifyWriteRule va * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1268,9 +1265,9 @@ public Builder addRules(com.google.bigtable.v2.ReadModifyWriteRule.Builder build * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1292,9 +1289,9 @@ public Builder addRules( * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1316,9 +1313,9 @@ public Builder addAllRules( * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1339,9 +1336,9 @@ public Builder clearRules() { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1362,9 +1359,9 @@ public Builder removeRules(int index) { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1378,9 +1375,9 @@ public com.google.bigtable.v2.ReadModifyWriteRule.Builder getRulesBuilder(int in * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1398,9 +1395,9 @@ public com.google.bigtable.v2.ReadModifyWriteRuleOrBuilder getRulesOrBuilder(int * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1419,9 +1416,9 @@ public com.google.bigtable.v2.ReadModifyWriteRuleOrBuilder getRulesOrBuilder(int * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1436,9 +1433,9 @@ public com.google.bigtable.v2.ReadModifyWriteRule.Builder addRulesBuilder() { * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * @@ -1453,9 +1450,9 @@ public com.google.bigtable.v2.ReadModifyWriteRule.Builder addRulesBuilder(int in * * *
-     * Required. Rules specifying how the specified row's contents are to be transformed
-     * into writes. Entries are applied in order, meaning that earlier rules will
-     * affect the results of later ones.
+     * Required. Rules specifying how the specified row's contents are to be
+     * transformed into writes. Entries are applied in order, meaning that earlier
+     * rules will affect the results of later ones.
      * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequestOrBuilder.java index e8a39483e1..8ac9d12675 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadModifyWriteRowRequestOrBuilder.java @@ -27,9 +27,8 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. The unique name of the table to which the read/modify/write rules should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the read/modify/write rules
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -44,9 +43,8 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. The unique name of the table to which the read/modify/write rules should be
-   * applied.
-   * Values are of the form
+   * Required. The unique name of the table to which the read/modify/write rules
+   * should be applied. Values are of the form
    * `projects/<project>/instances/<instance>/tables/<table>`.
    * 
* @@ -89,7 +87,8 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. The key of the row to which the read/modify/write rules should be applied.
+   * Required. The key of the row to which the read/modify/write rules should be
+   * applied.
    * 
* * bytes row_key = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -102,9 +101,9 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -116,9 +115,9 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -130,9 +129,9 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -144,9 +143,9 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * @@ -159,9 +158,9 @@ public interface ReadModifyWriteRowRequestOrBuilder * * *
-   * Required. Rules specifying how the specified row's contents are to be transformed
-   * into writes. Entries are applied in order, meaning that earlier rules will
-   * affect the results of later ones.
+   * Required. Rules specifying how the specified row's contents are to be
+   * transformed into writes. Entries are applied in order, meaning that earlier
+   * rules will affect the results of later ones.
    * 
* * diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java index 0c8a055a78..0b6a2e8279 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequest.java @@ -40,6 +40,7 @@ private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builde private ReadRowsRequest() { tableName_ = ""; appProfileId_ = ""; + requestStatsView_ = 0; } @java.lang.Override @@ -119,6 +120,13 @@ private ReadRowsRequest( appProfileId_ = s; break; } + case 48: + { + int rawValue = input.readEnum(); + + requestStatsView_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -155,6 +163,192 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.bigtable.v2.ReadRowsRequest.Builder.class); } + /** + * + * + *
+   * The desired view into RequestStats that should be returned in the response.
+   * See also: RequestStats message.
+   * 
+ * + * Protobuf enum {@code google.bigtable.v2.ReadRowsRequest.RequestStatsView} + */ + public enum RequestStatsView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default / unset value. The API will default to the NONE option below.
+     * 
+ * + * REQUEST_STATS_VIEW_UNSPECIFIED = 0; + */ + REQUEST_STATS_VIEW_UNSPECIFIED(0), + /** + * + * + *
+     * Do not include any RequestStats in the response. This will leave the
+     * RequestStats embedded message unset in the response.
+     * 
+ * + * REQUEST_STATS_NONE = 1; + */ + REQUEST_STATS_NONE(1), + /** + * + * + *
+     * Include stats related to the efficiency of the read.
+     * 
+ * + * REQUEST_STATS_EFFICIENCY = 2; + */ + REQUEST_STATS_EFFICIENCY(2), + /** + * + * + *
+     * Include the full set of available RequestStats in the response,
+     * applicable to this read.
+     * 
+ * + * REQUEST_STATS_FULL = 3; + */ + REQUEST_STATS_FULL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The default / unset value. The API will default to the NONE option below.
+     * 
+ * + * REQUEST_STATS_VIEW_UNSPECIFIED = 0; + */ + public static final int REQUEST_STATS_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Do not include any RequestStats in the response. This will leave the
+     * RequestStats embedded message unset in the response.
+     * 
+ * + * REQUEST_STATS_NONE = 1; + */ + public static final int REQUEST_STATS_NONE_VALUE = 1; + /** + * + * + *
+     * Include stats related to the efficiency of the read.
+     * 
+ * + * REQUEST_STATS_EFFICIENCY = 2; + */ + public static final int REQUEST_STATS_EFFICIENCY_VALUE = 2; + /** + * + * + *
+     * Include the full set of available RequestStats in the response,
+     * applicable to this read.
+     * 
+ * + * REQUEST_STATS_FULL = 3; + */ + public static final int REQUEST_STATS_FULL_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestStatsView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RequestStatsView forNumber(int value) { + switch (value) { + case 0: + return REQUEST_STATS_VIEW_UNSPECIFIED; + case 1: + return REQUEST_STATS_NONE; + case 2: + return REQUEST_STATS_EFFICIENCY; + case 3: + return REQUEST_STATS_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RequestStatsView findValueByNumber(int number) { + return RequestStatsView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.bigtable.v2.ReadRowsRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final RequestStatsView[] VALUES = values(); + + public static RequestStatsView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RequestStatsView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.bigtable.v2.ReadRowsRequest.RequestStatsView) + } + public static final int TABLE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object tableName_; /** @@ -218,8 +412,8 @@ public com.google.protobuf.ByteString getTableNameBytes() { * * *
-   * This value specifies routing for replication. If not specified, the
-   * "default" application profile will be used.
+   * This value specifies routing for replication. This API only accepts the
+   * empty value of app_profile_id.
    * 
* * string app_profile_id = 5; @@ -242,8 +436,8 @@ public java.lang.String getAppProfileId() { * * *
-   * This value specifies routing for replication. If not specified, the
-   * "default" application profile will be used.
+   * This value specifies routing for replication. This API only accepts the
+   * empty value of app_profile_id.
    * 
* * string app_profile_id = 5; @@ -380,6 +574,44 @@ public long getRowsLimit() { return rowsLimit_; } + public static final int REQUEST_STATS_VIEW_FIELD_NUMBER = 6; + private int requestStatsView_; + /** + * + * + *
+   * The view into RequestStats, as described above.
+   * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return The enum numeric value on the wire for requestStatsView. + */ + @java.lang.Override + public int getRequestStatsViewValue() { + return requestStatsView_; + } + /** + * + * + *
+   * The view into RequestStats, as described above.
+   * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return The requestStatsView. + */ + @java.lang.Override + public com.google.bigtable.v2.ReadRowsRequest.RequestStatsView getRequestStatsView() { + @SuppressWarnings("deprecation") + com.google.bigtable.v2.ReadRowsRequest.RequestStatsView result = + com.google.bigtable.v2.ReadRowsRequest.RequestStatsView.valueOf(requestStatsView_); + return result == null + ? com.google.bigtable.v2.ReadRowsRequest.RequestStatsView.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -409,6 +641,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appProfileId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, appProfileId_); } + if (requestStatsView_ + != com.google.bigtable.v2.ReadRowsRequest.RequestStatsView.REQUEST_STATS_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, requestStatsView_); + } unknownFields.writeTo(output); } @@ -433,6 +670,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appProfileId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, appProfileId_); } + if (requestStatsView_ + != com.google.bigtable.v2.ReadRowsRequest.RequestStatsView.REQUEST_STATS_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, requestStatsView_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -459,6 +701,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; } if (getRowsLimit() != other.getRowsLimit()) return false; + if (requestStatsView_ != other.requestStatsView_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -484,6 +727,8 @@ public int hashCode() { } hash = (37 * hash) + ROWS_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowsLimit()); + hash = (37 * hash) + REQUEST_STATS_VIEW_FIELD_NUMBER; + hash = (53 * hash) + requestStatsView_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -647,6 +892,8 @@ public Builder clear() { } rowsLimit_ = 0L; + requestStatsView_ = 0; + return this; } @@ -687,6 +934,7 @@ public com.google.bigtable.v2.ReadRowsRequest buildPartial() { result.filter_ = filterBuilder_.build(); } result.rowsLimit_ = rowsLimit_; + result.requestStatsView_ = requestStatsView_; onBuilt(); return result; } @@ -753,6 +1001,9 @@ public Builder mergeFrom(com.google.bigtable.v2.ReadRowsRequest other) { if (other.getRowsLimit() != 0L) { setRowsLimit(other.getRowsLimit()); } + if (other.requestStatsView_ != 0) { + setRequestStatsViewValue(other.getRequestStatsViewValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -913,8 +1164,8 @@ public Builder setTableNameBytes(com.google.protobuf.ByteString value) { * * *
-     * This value specifies routing for replication. If not specified, the
-     * "default" application profile will be used.
+     * This value specifies routing for replication. This API only accepts the
+     * empty value of app_profile_id.
      * 
* * string app_profile_id = 5; @@ -936,8 +1187,8 @@ public java.lang.String getAppProfileId() { * * *
-     * This value specifies routing for replication. If not specified, the
-     * "default" application profile will be used.
+     * This value specifies routing for replication. This API only accepts the
+     * empty value of app_profile_id.
      * 
* * string app_profile_id = 5; @@ -959,8 +1210,8 @@ public com.google.protobuf.ByteString getAppProfileIdBytes() { * * *
-     * This value specifies routing for replication. If not specified, the
-     * "default" application profile will be used.
+     * This value specifies routing for replication. This API only accepts the
+     * empty value of app_profile_id.
      * 
* * string app_profile_id = 5; @@ -981,8 +1232,8 @@ public Builder setAppProfileId(java.lang.String value) { * * *
-     * This value specifies routing for replication. If not specified, the
-     * "default" application profile will be used.
+     * This value specifies routing for replication. This API only accepts the
+     * empty value of app_profile_id.
      * 
* * string app_profile_id = 5; @@ -999,8 +1250,8 @@ public Builder clearAppProfileId() { * * *
-     * This value specifies routing for replication. If not specified, the
-     * "default" application profile will be used.
+     * This value specifies routing for replication. This API only accepts the
+     * empty value of app_profile_id.
      * 
* * string app_profile_id = 5; @@ -1449,6 +1700,100 @@ public Builder clearRowsLimit() { return this; } + private int requestStatsView_ = 0; + /** + * + * + *
+     * The view into RequestStats, as described above.
+     * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return The enum numeric value on the wire for requestStatsView. + */ + @java.lang.Override + public int getRequestStatsViewValue() { + return requestStatsView_; + } + /** + * + * + *
+     * The view into RequestStats, as described above.
+     * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @param value The enum numeric value on the wire for requestStatsView to set. + * @return This builder for chaining. + */ + public Builder setRequestStatsViewValue(int value) { + + requestStatsView_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The view into RequestStats, as described above.
+     * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return The requestStatsView. + */ + @java.lang.Override + public com.google.bigtable.v2.ReadRowsRequest.RequestStatsView getRequestStatsView() { + @SuppressWarnings("deprecation") + com.google.bigtable.v2.ReadRowsRequest.RequestStatsView result = + com.google.bigtable.v2.ReadRowsRequest.RequestStatsView.valueOf(requestStatsView_); + return result == null + ? com.google.bigtable.v2.ReadRowsRequest.RequestStatsView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The view into RequestStats, as described above.
+     * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @param value The requestStatsView to set. + * @return This builder for chaining. + */ + public Builder setRequestStatsView( + com.google.bigtable.v2.ReadRowsRequest.RequestStatsView value) { + if (value == null) { + throw new NullPointerException(); + } + + requestStatsView_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The view into RequestStats, as described above.
+     * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return This builder for chaining. + */ + public Builder clearRequestStatsView() { + + requestStatsView_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java index 9455f46c5c..2b2e969f06 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsRequestOrBuilder.java @@ -60,8 +60,8 @@ public interface ReadRowsRequestOrBuilder * * *
-   * This value specifies routing for replication. If not specified, the
-   * "default" application profile will be used.
+   * This value specifies routing for replication. This API only accepts the
+   * empty value of app_profile_id.
    * 
* * string app_profile_id = 5; @@ -73,8 +73,8 @@ public interface ReadRowsRequestOrBuilder * * *
-   * This value specifies routing for replication. If not specified, the
-   * "default" application profile will be used.
+   * This value specifies routing for replication. This API only accepts the
+   * empty value of app_profile_id.
    * 
* * string app_profile_id = 5; @@ -172,4 +172,29 @@ public interface ReadRowsRequestOrBuilder * @return The rowsLimit. */ long getRowsLimit(); + + /** + * + * + *
+   * The view into RequestStats, as described above.
+   * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return The enum numeric value on the wire for requestStatsView. + */ + int getRequestStatsViewValue(); + /** + * + * + *
+   * The view into RequestStats, as described above.
+   * 
+ * + * .google.bigtable.v2.ReadRowsRequest.RequestStatsView request_stats_view = 6; + * + * @return The requestStatsView. + */ + com.google.bigtable.v2.ReadRowsRequest.RequestStatsView getRequestStatsView(); } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponse.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponse.java index 98ac786491..a3c9e42894 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponse.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponse.java @@ -88,6 +88,22 @@ private ReadRowsResponse( case 18: { lastScannedRowKey_ = input.readBytes(); + break; + } + case 26: + { + com.google.bigtable.v2.RequestStats.Builder subBuilder = null; + if (requestStats_ != null) { + subBuilder = requestStats_.toBuilder(); + } + requestStats_ = + input.readMessage( + com.google.bigtable.v2.RequestStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestStats_); + requestStats_ = subBuilder.buildPartial(); + } + break; } default: @@ -2712,6 +2728,102 @@ public com.google.protobuf.ByteString getLastScannedRowKey() { return lastScannedRowKey_; } + public static final int REQUEST_STATS_FIELD_NUMBER = 3; + private com.google.bigtable.v2.RequestStats requestStats_; + /** + * + * + *
+   * If requested, provide enhanced query performance statistics. The semantics
+   * dictate:
+   *   * request_stats is empty on every (streamed) response, except
+   *   * request_stats has non-empty information after all chunks have been
+   *     streamed, where the ReadRowsResponse message only contains
+   *     request_stats.
+   *       * For example, if a read request would have returned an empty
+   *         response instead a single ReadRowsResponse is streamed with empty
+   *         chunks and request_stats filled.
+   * Visually, response messages will stream as follows:
+   *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+   *   \______________________/  \________________________________/
+   *       Primary response         Trailer of RequestStats info
+   * Or if the read did not return any values:
+   *   {chunks: [], request_stats: {...}}
+   *   \________________________________/
+   *      Trailer of RequestStats info
+   * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + * + * @return Whether the requestStats field is set. + */ + @java.lang.Override + public boolean hasRequestStats() { + return requestStats_ != null; + } + /** + * + * + *
+   * If requested, provide enhanced query performance statistics. The semantics
+   * dictate:
+   *   * request_stats is empty on every (streamed) response, except
+   *   * request_stats has non-empty information after all chunks have been
+   *     streamed, where the ReadRowsResponse message only contains
+   *     request_stats.
+   *       * For example, if a read request would have returned an empty
+   *         response instead a single ReadRowsResponse is streamed with empty
+   *         chunks and request_stats filled.
+   * Visually, response messages will stream as follows:
+   *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+   *   \______________________/  \________________________________/
+   *       Primary response         Trailer of RequestStats info
+   * Or if the read did not return any values:
+   *   {chunks: [], request_stats: {...}}
+   *   \________________________________/
+   *      Trailer of RequestStats info
+   * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + * + * @return The requestStats. + */ + @java.lang.Override + public com.google.bigtable.v2.RequestStats getRequestStats() { + return requestStats_ == null + ? com.google.bigtable.v2.RequestStats.getDefaultInstance() + : requestStats_; + } + /** + * + * + *
+   * If requested, provide enhanced query performance statistics. The semantics
+   * dictate:
+   *   * request_stats is empty on every (streamed) response, except
+   *   * request_stats has non-empty information after all chunks have been
+   *     streamed, where the ReadRowsResponse message only contains
+   *     request_stats.
+   *       * For example, if a read request would have returned an empty
+   *         response instead a single ReadRowsResponse is streamed with empty
+   *         chunks and request_stats filled.
+   * Visually, response messages will stream as follows:
+   *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+   *   \______________________/  \________________________________/
+   *       Primary response         Trailer of RequestStats info
+   * Or if the read did not return any values:
+   *   {chunks: [], request_stats: {...}}
+   *   \________________________________/
+   *      Trailer of RequestStats info
+   * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + @java.lang.Override + public com.google.bigtable.v2.RequestStatsOrBuilder getRequestStatsOrBuilder() { + return getRequestStats(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2732,6 +2844,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!lastScannedRowKey_.isEmpty()) { output.writeBytes(2, lastScannedRowKey_); } + if (requestStats_ != null) { + output.writeMessage(3, getRequestStats()); + } unknownFields.writeTo(output); } @@ -2747,6 +2862,9 @@ public int getSerializedSize() { if (!lastScannedRowKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, lastScannedRowKey_); } + if (requestStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequestStats()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2764,6 +2882,10 @@ public boolean equals(final java.lang.Object obj) { if (!getChunksList().equals(other.getChunksList())) return false; if (!getLastScannedRowKey().equals(other.getLastScannedRowKey())) return false; + if (hasRequestStats() != other.hasRequestStats()) return false; + if (hasRequestStats()) { + if (!getRequestStats().equals(other.getRequestStats())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2781,6 +2903,10 @@ public int hashCode() { } hash = (37 * hash) + LAST_SCANNED_ROW_KEY_FIELD_NUMBER; hash = (53 * hash) + getLastScannedRowKey().hashCode(); + if (hasRequestStats()) { + hash = (37 * hash) + REQUEST_STATS_FIELD_NUMBER; + hash = (53 * hash) + getRequestStats().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2936,6 +3062,12 @@ public Builder clear() { } lastScannedRowKey_ = com.google.protobuf.ByteString.EMPTY; + if (requestStatsBuilder_ == null) { + requestStats_ = null; + } else { + requestStats_ = null; + requestStatsBuilder_ = null; + } return this; } @@ -2974,6 +3106,11 @@ public com.google.bigtable.v2.ReadRowsResponse buildPartial() { result.chunks_ = chunksBuilder_.build(); } result.lastScannedRowKey_ = lastScannedRowKey_; + if (requestStatsBuilder_ == null) { + result.requestStats_ = requestStats_; + } else { + result.requestStats_ = requestStatsBuilder_.build(); + } onBuilt(); return result; } @@ -3053,6 +3190,9 @@ public Builder mergeFrom(com.google.bigtable.v2.ReadRowsResponse other) { if (other.getLastScannedRowKey() != com.google.protobuf.ByteString.EMPTY) { setLastScannedRowKey(other.getLastScannedRowKey()); } + if (other.hasRequestStats()) { + mergeRequestStats(other.getRequestStats()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3511,6 +3651,335 @@ public Builder clearLastScannedRowKey() { return this; } + private com.google.bigtable.v2.RequestStats requestStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestStats, + com.google.bigtable.v2.RequestStats.Builder, + com.google.bigtable.v2.RequestStatsOrBuilder> + requestStatsBuilder_; + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + * + * @return Whether the requestStats field is set. + */ + public boolean hasRequestStats() { + return requestStatsBuilder_ != null || requestStats_ != null; + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + * + * @return The requestStats. + */ + public com.google.bigtable.v2.RequestStats getRequestStats() { + if (requestStatsBuilder_ == null) { + return requestStats_ == null + ? com.google.bigtable.v2.RequestStats.getDefaultInstance() + : requestStats_; + } else { + return requestStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + public Builder setRequestStats(com.google.bigtable.v2.RequestStats value) { + if (requestStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestStats_ = value; + onChanged(); + } else { + requestStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + public Builder setRequestStats(com.google.bigtable.v2.RequestStats.Builder builderForValue) { + if (requestStatsBuilder_ == null) { + requestStats_ = builderForValue.build(); + onChanged(); + } else { + requestStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + public Builder mergeRequestStats(com.google.bigtable.v2.RequestStats value) { + if (requestStatsBuilder_ == null) { + if (requestStats_ != null) { + requestStats_ = + com.google.bigtable.v2.RequestStats.newBuilder(requestStats_) + .mergeFrom(value) + .buildPartial(); + } else { + requestStats_ = value; + } + onChanged(); + } else { + requestStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + public Builder clearRequestStats() { + if (requestStatsBuilder_ == null) { + requestStats_ = null; + onChanged(); + } else { + requestStats_ = null; + requestStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + public com.google.bigtable.v2.RequestStats.Builder getRequestStatsBuilder() { + + onChanged(); + return getRequestStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + public com.google.bigtable.v2.RequestStatsOrBuilder getRequestStatsOrBuilder() { + if (requestStatsBuilder_ != null) { + return requestStatsBuilder_.getMessageOrBuilder(); + } else { + return requestStats_ == null + ? com.google.bigtable.v2.RequestStats.getDefaultInstance() + : requestStats_; + } + } + /** + * + * + *
+     * If requested, provide enhanced query performance statistics. The semantics
+     * dictate:
+     *   * request_stats is empty on every (streamed) response, except
+     *   * request_stats has non-empty information after all chunks have been
+     *     streamed, where the ReadRowsResponse message only contains
+     *     request_stats.
+     *       * For example, if a read request would have returned an empty
+     *         response instead a single ReadRowsResponse is streamed with empty
+     *         chunks and request_stats filled.
+     * Visually, response messages will stream as follows:
+     *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+     *   \______________________/  \________________________________/
+     *       Primary response         Trailer of RequestStats info
+     * Or if the read did not return any values:
+     *   {chunks: [], request_stats: {...}}
+     *   \________________________________/
+     *      Trailer of RequestStats info
+     * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestStats, + com.google.bigtable.v2.RequestStats.Builder, + com.google.bigtable.v2.RequestStatsOrBuilder> + getRequestStatsFieldBuilder() { + if (requestStatsBuilder_ == null) { + requestStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.RequestStats, + com.google.bigtable.v2.RequestStats.Builder, + com.google.bigtable.v2.RequestStatsOrBuilder>( + getRequestStats(), getParentForChildren(), isClean()); + requestStats_ = null; + } + return requestStatsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponseOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponseOrBuilder.java index 84410a4c1e..26522bed3b 100644 --- a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/ReadRowsResponseOrBuilder.java @@ -93,4 +93,87 @@ public interface ReadRowsResponseOrBuilder * @return The lastScannedRowKey. */ com.google.protobuf.ByteString getLastScannedRowKey(); + + /** + * + * + *
+   * If requested, provide enhanced query performance statistics. The semantics
+   * dictate:
+   *   * request_stats is empty on every (streamed) response, except
+   *   * request_stats has non-empty information after all chunks have been
+   *     streamed, where the ReadRowsResponse message only contains
+   *     request_stats.
+   *       * For example, if a read request would have returned an empty
+   *         response instead a single ReadRowsResponse is streamed with empty
+   *         chunks and request_stats filled.
+   * Visually, response messages will stream as follows:
+   *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+   *   \______________________/  \________________________________/
+   *       Primary response         Trailer of RequestStats info
+   * Or if the read did not return any values:
+   *   {chunks: [], request_stats: {...}}
+   *   \________________________________/
+   *      Trailer of RequestStats info
+   * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + * + * @return Whether the requestStats field is set. + */ + boolean hasRequestStats(); + /** + * + * + *
+   * If requested, provide enhanced query performance statistics. The semantics
+   * dictate:
+   *   * request_stats is empty on every (streamed) response, except
+   *   * request_stats has non-empty information after all chunks have been
+   *     streamed, where the ReadRowsResponse message only contains
+   *     request_stats.
+   *       * For example, if a read request would have returned an empty
+   *         response instead a single ReadRowsResponse is streamed with empty
+   *         chunks and request_stats filled.
+   * Visually, response messages will stream as follows:
+   *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+   *   \______________________/  \________________________________/
+   *       Primary response         Trailer of RequestStats info
+   * Or if the read did not return any values:
+   *   {chunks: [], request_stats: {...}}
+   *   \________________________________/
+   *      Trailer of RequestStats info
+   * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + * + * @return The requestStats. + */ + com.google.bigtable.v2.RequestStats getRequestStats(); + /** + * + * + *
+   * If requested, provide enhanced query performance statistics. The semantics
+   * dictate:
+   *   * request_stats is empty on every (streamed) response, except
+   *   * request_stats has non-empty information after all chunks have been
+   *     streamed, where the ReadRowsResponse message only contains
+   *     request_stats.
+   *       * For example, if a read request would have returned an empty
+   *         response instead a single ReadRowsResponse is streamed with empty
+   *         chunks and request_stats filled.
+   * Visually, response messages will stream as follows:
+   *    ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}}
+   *   \______________________/  \________________________________/
+   *       Primary response         Trailer of RequestStats info
+   * Or if the read did not return any values:
+   *   {chunks: [], request_stats: {...}}
+   *   \________________________________/
+   *      Trailer of RequestStats info
+   * 
+ * + * .google.bigtable.v2.RequestStats request_stats = 3; + */ + com.google.bigtable.v2.RequestStatsOrBuilder getRequestStatsOrBuilder(); } diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestLatencyStats.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestLatencyStats.java new file mode 100644 index 0000000000..cff5684e14 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestLatencyStats.java @@ -0,0 +1,833 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +/** + * + * + *
+ * RequestLatencyStats provides a measurement of the latency of the request as
+ * it interacts with different systems over its lifetime, e.g. how long the
+ * request took to execute within a frontend server.
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.RequestLatencyStats} + */ +public final class RequestLatencyStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.RequestLatencyStats) + RequestLatencyStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RequestLatencyStats.newBuilder() to construct. + private RequestLatencyStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestLatencyStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RequestLatencyStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RequestLatencyStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (frontendServerLatency_ != null) { + subBuilder = frontendServerLatency_.toBuilder(); + } + frontendServerLatency_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(frontendServerLatency_); + frontendServerLatency_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestLatencyStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestLatencyStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.RequestLatencyStats.class, + com.google.bigtable.v2.RequestLatencyStats.Builder.class); + } + + public static final int FRONTEND_SERVER_LATENCY_FIELD_NUMBER = 1; + private com.google.protobuf.Duration frontendServerLatency_; + /** + * + * + *
+   * The latency measured by the frontend server handling this request, from
+   * when the request was received, to when this value is sent back in the
+   * response. For more context on the component that is measuring this latency,
+   * see: https://cloud.google.com/bigtable/docs/overview
+   * Note: This value may be slightly shorter than the value reported into
+   * aggregate latency metrics in Monitoring for this request
+   * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+   * needs to be sent in the response before the latency measurement including
+   * that transmission is finalized.
+   * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + * + * @return Whether the frontendServerLatency field is set. + */ + @java.lang.Override + public boolean hasFrontendServerLatency() { + return frontendServerLatency_ != null; + } + /** + * + * + *
+   * The latency measured by the frontend server handling this request, from
+   * when the request was received, to when this value is sent back in the
+   * response. For more context on the component that is measuring this latency,
+   * see: https://cloud.google.com/bigtable/docs/overview
+   * Note: This value may be slightly shorter than the value reported into
+   * aggregate latency metrics in Monitoring for this request
+   * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+   * needs to be sent in the response before the latency measurement including
+   * that transmission is finalized.
+   * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + * + * @return The frontendServerLatency. + */ + @java.lang.Override + public com.google.protobuf.Duration getFrontendServerLatency() { + return frontendServerLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : frontendServerLatency_; + } + /** + * + * + *
+   * The latency measured by the frontend server handling this request, from
+   * when the request was received, to when this value is sent back in the
+   * response. For more context on the component that is measuring this latency,
+   * see: https://cloud.google.com/bigtable/docs/overview
+   * Note: This value may be slightly shorter than the value reported into
+   * aggregate latency metrics in Monitoring for this request
+   * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+   * needs to be sent in the response before the latency measurement including
+   * that transmission is finalized.
+   * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getFrontendServerLatencyOrBuilder() { + return getFrontendServerLatency(); + } + + 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 (frontendServerLatency_ != null) { + output.writeMessage(1, getFrontendServerLatency()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (frontendServerLatency_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFrontendServerLatency()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.RequestLatencyStats)) { + return super.equals(obj); + } + com.google.bigtable.v2.RequestLatencyStats other = + (com.google.bigtable.v2.RequestLatencyStats) obj; + + if (hasFrontendServerLatency() != other.hasFrontendServerLatency()) return false; + if (hasFrontendServerLatency()) { + if (!getFrontendServerLatency().equals(other.getFrontendServerLatency())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFrontendServerLatency()) { + hash = (37 * hash) + FRONTEND_SERVER_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getFrontendServerLatency().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.RequestLatencyStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.RequestLatencyStats 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; + } + /** + * + * + *
+   * RequestLatencyStats provides a measurement of the latency of the request as
+   * it interacts with different systems over its lifetime, e.g. how long the
+   * request took to execute within a frontend server.
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.RequestLatencyStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.RequestLatencyStats) + com.google.bigtable.v2.RequestLatencyStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestLatencyStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestLatencyStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.RequestLatencyStats.class, + com.google.bigtable.v2.RequestLatencyStats.Builder.class); + } + + // Construct using com.google.bigtable.v2.RequestLatencyStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (frontendServerLatencyBuilder_ == null) { + frontendServerLatency_ = null; + } else { + frontendServerLatency_ = null; + frontendServerLatencyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestLatencyStats_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStats getDefaultInstanceForType() { + return com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStats build() { + com.google.bigtable.v2.RequestLatencyStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStats buildPartial() { + com.google.bigtable.v2.RequestLatencyStats result = + new com.google.bigtable.v2.RequestLatencyStats(this); + if (frontendServerLatencyBuilder_ == null) { + result.frontendServerLatency_ = frontendServerLatency_; + } else { + result.frontendServerLatency_ = frontendServerLatencyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.RequestLatencyStats) { + return mergeFrom((com.google.bigtable.v2.RequestLatencyStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.RequestLatencyStats other) { + if (other == com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance()) return this; + if (other.hasFrontendServerLatency()) { + mergeFrontendServerLatency(other.getFrontendServerLatency()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.v2.RequestLatencyStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.bigtable.v2.RequestLatencyStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration frontendServerLatency_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + frontendServerLatencyBuilder_; + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + * + * @return Whether the frontendServerLatency field is set. + */ + public boolean hasFrontendServerLatency() { + return frontendServerLatencyBuilder_ != null || frontendServerLatency_ != null; + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + * + * @return The frontendServerLatency. + */ + public com.google.protobuf.Duration getFrontendServerLatency() { + if (frontendServerLatencyBuilder_ == null) { + return frontendServerLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : frontendServerLatency_; + } else { + return frontendServerLatencyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + public Builder setFrontendServerLatency(com.google.protobuf.Duration value) { + if (frontendServerLatencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + frontendServerLatency_ = value; + onChanged(); + } else { + frontendServerLatencyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + public Builder setFrontendServerLatency(com.google.protobuf.Duration.Builder builderForValue) { + if (frontendServerLatencyBuilder_ == null) { + frontendServerLatency_ = builderForValue.build(); + onChanged(); + } else { + frontendServerLatencyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + public Builder mergeFrontendServerLatency(com.google.protobuf.Duration value) { + if (frontendServerLatencyBuilder_ == null) { + if (frontendServerLatency_ != null) { + frontendServerLatency_ = + com.google.protobuf.Duration.newBuilder(frontendServerLatency_) + .mergeFrom(value) + .buildPartial(); + } else { + frontendServerLatency_ = value; + } + onChanged(); + } else { + frontendServerLatencyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + public Builder clearFrontendServerLatency() { + if (frontendServerLatencyBuilder_ == null) { + frontendServerLatency_ = null; + onChanged(); + } else { + frontendServerLatency_ = null; + frontendServerLatencyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + public com.google.protobuf.Duration.Builder getFrontendServerLatencyBuilder() { + + onChanged(); + return getFrontendServerLatencyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + public com.google.protobuf.DurationOrBuilder getFrontendServerLatencyOrBuilder() { + if (frontendServerLatencyBuilder_ != null) { + return frontendServerLatencyBuilder_.getMessageOrBuilder(); + } else { + return frontendServerLatency_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : frontendServerLatency_; + } + } + /** + * + * + *
+     * The latency measured by the frontend server handling this request, from
+     * when the request was received, to when this value is sent back in the
+     * response. For more context on the component that is measuring this latency,
+     * see: https://cloud.google.com/bigtable/docs/overview
+     * Note: This value may be slightly shorter than the value reported into
+     * aggregate latency metrics in Monitoring for this request
+     * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+     * needs to be sent in the response before the latency measurement including
+     * that transmission is finalized.
+     * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getFrontendServerLatencyFieldBuilder() { + if (frontendServerLatencyBuilder_ == null) { + frontendServerLatencyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getFrontendServerLatency(), getParentForChildren(), isClean()); + frontendServerLatency_ = null; + } + return frontendServerLatencyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.RequestLatencyStats) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.RequestLatencyStats) + private static final com.google.bigtable.v2.RequestLatencyStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.RequestLatencyStats(); + } + + public static com.google.bigtable.v2.RequestLatencyStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestLatencyStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestLatencyStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.RequestLatencyStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestLatencyStatsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestLatencyStatsOrBuilder.java new file mode 100644 index 0000000000..aa71fa6b5d --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestLatencyStatsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +public interface RequestLatencyStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.RequestLatencyStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The latency measured by the frontend server handling this request, from
+   * when the request was received, to when this value is sent back in the
+   * response. For more context on the component that is measuring this latency,
+   * see: https://cloud.google.com/bigtable/docs/overview
+   * Note: This value may be slightly shorter than the value reported into
+   * aggregate latency metrics in Monitoring for this request
+   * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+   * needs to be sent in the response before the latency measurement including
+   * that transmission is finalized.
+   * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + * + * @return Whether the frontendServerLatency field is set. + */ + boolean hasFrontendServerLatency(); + /** + * + * + *
+   * The latency measured by the frontend server handling this request, from
+   * when the request was received, to when this value is sent back in the
+   * response. For more context on the component that is measuring this latency,
+   * see: https://cloud.google.com/bigtable/docs/overview
+   * Note: This value may be slightly shorter than the value reported into
+   * aggregate latency metrics in Monitoring for this request
+   * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+   * needs to be sent in the response before the latency measurement including
+   * that transmission is finalized.
+   * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + * + * @return The frontendServerLatency. + */ + com.google.protobuf.Duration getFrontendServerLatency(); + /** + * + * + *
+   * The latency measured by the frontend server handling this request, from
+   * when the request was received, to when this value is sent back in the
+   * response. For more context on the component that is measuring this latency,
+   * see: https://cloud.google.com/bigtable/docs/overview
+   * Note: This value may be slightly shorter than the value reported into
+   * aggregate latency metrics in Monitoring for this request
+   * (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value
+   * needs to be sent in the response before the latency measurement including
+   * that transmission is finalized.
+   * 
+ * + * .google.protobuf.Duration frontend_server_latency = 1; + */ + com.google.protobuf.DurationOrBuilder getFrontendServerLatencyOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStats.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStats.java new file mode 100644 index 0000000000..3fc29dae93 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStats.java @@ -0,0 +1,1178 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +/** + * + * + *
+ * RequestStats is the container for additional information pertaining to a
+ * single request, helpful for evaluating the performance of the sent request.
+ * Currently, there are the following supported methods:
+ *   * google.bigtable.v2.ReadRows
+ * 
+ * + * Protobuf type {@code google.bigtable.v2.RequestStats} + */ +public final class RequestStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.v2.RequestStats) + RequestStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RequestStats.newBuilder() to construct. + private RequestStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RequestStats() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RequestStats(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RequestStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.bigtable.v2.ReadEfficiencyStats.Builder subBuilder = null; + if (statsCase_ == 1) { + subBuilder = ((com.google.bigtable.v2.ReadEfficiencyStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.bigtable.v2.ReadEfficiencyStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.bigtable.v2.ReadEfficiencyStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 1; + break; + } + case 18: + { + com.google.bigtable.v2.AllReadStats.Builder subBuilder = null; + if (statsCase_ == 2) { + subBuilder = ((com.google.bigtable.v2.AllReadStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.bigtable.v2.AllReadStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.bigtable.v2.AllReadStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.RequestStats.class, + com.google.bigtable.v2.RequestStats.Builder.class); + } + + private int statsCase_ = 0; + private java.lang.Object stats_; + + public enum StatsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + READ_EFFICIENCY_STATS(1), + ALL_READ_STATS(2), + STATS_NOT_SET(0); + private final int value; + + private StatsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StatsCase valueOf(int value) { + return forNumber(value); + } + + public static StatsCase forNumber(int value) { + switch (value) { + case 1: + return READ_EFFICIENCY_STATS; + case 2: + return ALL_READ_STATS; + case 0: + return STATS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StatsCase getStatsCase() { + return StatsCase.forNumber(statsCase_); + } + + public static final int READ_EFFICIENCY_STATS_FIELD_NUMBER = 1; + /** + * + * + *
+   * Available with the
+   * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+   * package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + * + * @return Whether the readEfficiencyStats field is set. + */ + @java.lang.Override + public boolean hasReadEfficiencyStats() { + return statsCase_ == 1; + } + /** + * + * + *
+   * Available with the
+   * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+   * package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + * + * @return The readEfficiencyStats. + */ + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStats getReadEfficiencyStats() { + if (statsCase_ == 1) { + return (com.google.bigtable.v2.ReadEfficiencyStats) stats_; + } + return com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } + /** + * + * + *
+   * Available with the
+   * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+   * package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder getReadEfficiencyStatsOrBuilder() { + if (statsCase_ == 1) { + return (com.google.bigtable.v2.ReadEfficiencyStats) stats_; + } + return com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } + + public static final int ALL_READ_STATS_FIELD_NUMBER = 2; + /** + * + * + *
+   * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+   * view, see package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + * + * @return Whether the allReadStats field is set. + */ + @java.lang.Override + public boolean hasAllReadStats() { + return statsCase_ == 2; + } + /** + * + * + *
+   * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+   * view, see package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + * + * @return The allReadStats. + */ + @java.lang.Override + public com.google.bigtable.v2.AllReadStats getAllReadStats() { + if (statsCase_ == 2) { + return (com.google.bigtable.v2.AllReadStats) stats_; + } + return com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } + /** + * + * + *
+   * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+   * view, see package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.AllReadStatsOrBuilder getAllReadStatsOrBuilder() { + if (statsCase_ == 2) { + return (com.google.bigtable.v2.AllReadStats) stats_; + } + return com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } + + 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 (statsCase_ == 1) { + output.writeMessage(1, (com.google.bigtable.v2.ReadEfficiencyStats) stats_); + } + if (statsCase_ == 2) { + output.writeMessage(2, (com.google.bigtable.v2.AllReadStats) stats_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (statsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.bigtable.v2.ReadEfficiencyStats) stats_); + } + if (statsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.bigtable.v2.AllReadStats) stats_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.v2.RequestStats)) { + return super.equals(obj); + } + com.google.bigtable.v2.RequestStats other = (com.google.bigtable.v2.RequestStats) obj; + + if (!getStatsCase().equals(other.getStatsCase())) return false; + switch (statsCase_) { + case 1: + if (!getReadEfficiencyStats().equals(other.getReadEfficiencyStats())) return false; + break; + case 2: + if (!getAllReadStats().equals(other.getAllReadStats())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (statsCase_) { + case 1: + hash = (37 * hash) + READ_EFFICIENCY_STATS_FIELD_NUMBER; + hash = (53 * hash) + getReadEfficiencyStats().hashCode(); + break; + case 2: + hash = (37 * hash) + ALL_READ_STATS_FIELD_NUMBER; + hash = (53 * hash) + getAllReadStats().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.v2.RequestStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.RequestStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestStats parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.RequestStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.v2.RequestStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.RequestStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.RequestStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.v2.RequestStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.v2.RequestStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.v2.RequestStats 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; + } + /** + * + * + *
+   * RequestStats is the container for additional information pertaining to a
+   * single request, helpful for evaluating the performance of the sent request.
+   * Currently, there are the following supported methods:
+   *   * google.bigtable.v2.ReadRows
+   * 
+ * + * Protobuf type {@code google.bigtable.v2.RequestStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.v2.RequestStats) + com.google.bigtable.v2.RequestStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.v2.RequestStats.class, + com.google.bigtable.v2.RequestStats.Builder.class); + } + + // Construct using com.google.bigtable.v2.RequestStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + statsCase_ = 0; + stats_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.v2.RequestStatsProto + .internal_static_google_bigtable_v2_RequestStats_descriptor; + } + + @java.lang.Override + public com.google.bigtable.v2.RequestStats getDefaultInstanceForType() { + return com.google.bigtable.v2.RequestStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.v2.RequestStats build() { + com.google.bigtable.v2.RequestStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.v2.RequestStats buildPartial() { + com.google.bigtable.v2.RequestStats result = new com.google.bigtable.v2.RequestStats(this); + if (statsCase_ == 1) { + if (readEfficiencyStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = readEfficiencyStatsBuilder_.build(); + } + } + if (statsCase_ == 2) { + if (allReadStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = allReadStatsBuilder_.build(); + } + } + result.statsCase_ = statsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.v2.RequestStats) { + return mergeFrom((com.google.bigtable.v2.RequestStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.v2.RequestStats other) { + if (other == com.google.bigtable.v2.RequestStats.getDefaultInstance()) return this; + switch (other.getStatsCase()) { + case READ_EFFICIENCY_STATS: + { + mergeReadEfficiencyStats(other.getReadEfficiencyStats()); + break; + } + case ALL_READ_STATS: + { + mergeAllReadStats(other.getAllReadStats()); + break; + } + case STATS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.v2.RequestStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.bigtable.v2.RequestStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int statsCase_ = 0; + private java.lang.Object stats_; + + public StatsCase getStatsCase() { + return StatsCase.forNumber(statsCase_); + } + + public Builder clearStats() { + statsCase_ = 0; + stats_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadEfficiencyStats, + com.google.bigtable.v2.ReadEfficiencyStats.Builder, + com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder> + readEfficiencyStatsBuilder_; + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + * + * @return Whether the readEfficiencyStats field is set. + */ + @java.lang.Override + public boolean hasReadEfficiencyStats() { + return statsCase_ == 1; + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + * + * @return The readEfficiencyStats. + */ + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStats getReadEfficiencyStats() { + if (readEfficiencyStatsBuilder_ == null) { + if (statsCase_ == 1) { + return (com.google.bigtable.v2.ReadEfficiencyStats) stats_; + } + return com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } else { + if (statsCase_ == 1) { + return readEfficiencyStatsBuilder_.getMessage(); + } + return com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + public Builder setReadEfficiencyStats(com.google.bigtable.v2.ReadEfficiencyStats value) { + if (readEfficiencyStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + readEfficiencyStatsBuilder_.setMessage(value); + } + statsCase_ = 1; + return this; + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + public Builder setReadEfficiencyStats( + com.google.bigtable.v2.ReadEfficiencyStats.Builder builderForValue) { + if (readEfficiencyStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + readEfficiencyStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 1; + return this; + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + public Builder mergeReadEfficiencyStats(com.google.bigtable.v2.ReadEfficiencyStats value) { + if (readEfficiencyStatsBuilder_ == null) { + if (statsCase_ == 1 + && stats_ != com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance()) { + stats_ = + com.google.bigtable.v2.ReadEfficiencyStats.newBuilder( + (com.google.bigtable.v2.ReadEfficiencyStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 1) { + readEfficiencyStatsBuilder_.mergeFrom(value); + } else { + readEfficiencyStatsBuilder_.setMessage(value); + } + } + statsCase_ = 1; + return this; + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + public Builder clearReadEfficiencyStats() { + if (readEfficiencyStatsBuilder_ == null) { + if (statsCase_ == 1) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 1) { + statsCase_ = 0; + stats_ = null; + } + readEfficiencyStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + public com.google.bigtable.v2.ReadEfficiencyStats.Builder getReadEfficiencyStatsBuilder() { + return getReadEfficiencyStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + @java.lang.Override + public com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder getReadEfficiencyStatsOrBuilder() { + if ((statsCase_ == 1) && (readEfficiencyStatsBuilder_ != null)) { + return readEfficiencyStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 1) { + return (com.google.bigtable.v2.ReadEfficiencyStats) stats_; + } + return com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * Available with the
+     * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+     * package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadEfficiencyStats, + com.google.bigtable.v2.ReadEfficiencyStats.Builder, + com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder> + getReadEfficiencyStatsFieldBuilder() { + if (readEfficiencyStatsBuilder_ == null) { + if (!(statsCase_ == 1)) { + stats_ = com.google.bigtable.v2.ReadEfficiencyStats.getDefaultInstance(); + } + readEfficiencyStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.ReadEfficiencyStats, + com.google.bigtable.v2.ReadEfficiencyStats.Builder, + com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder>( + (com.google.bigtable.v2.ReadEfficiencyStats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 1; + onChanged(); + ; + return readEfficiencyStatsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.AllReadStats, + com.google.bigtable.v2.AllReadStats.Builder, + com.google.bigtable.v2.AllReadStatsOrBuilder> + allReadStatsBuilder_; + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + * + * @return Whether the allReadStats field is set. + */ + @java.lang.Override + public boolean hasAllReadStats() { + return statsCase_ == 2; + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + * + * @return The allReadStats. + */ + @java.lang.Override + public com.google.bigtable.v2.AllReadStats getAllReadStats() { + if (allReadStatsBuilder_ == null) { + if (statsCase_ == 2) { + return (com.google.bigtable.v2.AllReadStats) stats_; + } + return com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } else { + if (statsCase_ == 2) { + return allReadStatsBuilder_.getMessage(); + } + return com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + public Builder setAllReadStats(com.google.bigtable.v2.AllReadStats value) { + if (allReadStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + allReadStatsBuilder_.setMessage(value); + } + statsCase_ = 2; + return this; + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + public Builder setAllReadStats(com.google.bigtable.v2.AllReadStats.Builder builderForValue) { + if (allReadStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + allReadStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 2; + return this; + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + public Builder mergeAllReadStats(com.google.bigtable.v2.AllReadStats value) { + if (allReadStatsBuilder_ == null) { + if (statsCase_ == 2 && stats_ != com.google.bigtable.v2.AllReadStats.getDefaultInstance()) { + stats_ = + com.google.bigtable.v2.AllReadStats.newBuilder( + (com.google.bigtable.v2.AllReadStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 2) { + allReadStatsBuilder_.mergeFrom(value); + } else { + allReadStatsBuilder_.setMessage(value); + } + } + statsCase_ = 2; + return this; + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + public Builder clearAllReadStats() { + if (allReadStatsBuilder_ == null) { + if (statsCase_ == 2) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 2) { + statsCase_ = 0; + stats_ = null; + } + allReadStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + public com.google.bigtable.v2.AllReadStats.Builder getAllReadStatsBuilder() { + return getAllReadStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + @java.lang.Override + public com.google.bigtable.v2.AllReadStatsOrBuilder getAllReadStatsOrBuilder() { + if ((statsCase_ == 2) && (allReadStatsBuilder_ != null)) { + return allReadStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 2) { + return (com.google.bigtable.v2.AllReadStats) stats_; + } + return com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+     * view, see package google.bigtable.v2.
+     * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.AllReadStats, + com.google.bigtable.v2.AllReadStats.Builder, + com.google.bigtable.v2.AllReadStatsOrBuilder> + getAllReadStatsFieldBuilder() { + if (allReadStatsBuilder_ == null) { + if (!(statsCase_ == 2)) { + stats_ = com.google.bigtable.v2.AllReadStats.getDefaultInstance(); + } + allReadStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.v2.AllReadStats, + com.google.bigtable.v2.AllReadStats.Builder, + com.google.bigtable.v2.AllReadStatsOrBuilder>( + (com.google.bigtable.v2.AllReadStats) stats_, getParentForChildren(), isClean()); + stats_ = null; + } + statsCase_ = 2; + onChanged(); + ; + return allReadStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.v2.RequestStats) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.v2.RequestStats) + private static final com.google.bigtable.v2.RequestStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.v2.RequestStats(); + } + + public static com.google.bigtable.v2.RequestStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RequestStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RequestStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.v2.RequestStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStatsOrBuilder.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStatsOrBuilder.java new file mode 100644 index 0000000000..163c6d8123 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStatsOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +public interface RequestStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.v2.RequestStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Available with the
+   * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+   * package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + * + * @return Whether the readEfficiencyStats field is set. + */ + boolean hasReadEfficiencyStats(); + /** + * + * + *
+   * Available with the
+   * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+   * package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + * + * @return The readEfficiencyStats. + */ + com.google.bigtable.v2.ReadEfficiencyStats getReadEfficiencyStats(); + /** + * + * + *
+   * Available with the
+   * ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see
+   * package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.ReadEfficiencyStats read_efficiency_stats = 1; + */ + com.google.bigtable.v2.ReadEfficiencyStatsOrBuilder getReadEfficiencyStatsOrBuilder(); + + /** + * + * + *
+   * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+   * view, see package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + * + * @return Whether the allReadStats field is set. + */ + boolean hasAllReadStats(); + /** + * + * + *
+   * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+   * view, see package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + * + * @return The allReadStats. + */ + com.google.bigtable.v2.AllReadStats getAllReadStats(); + /** + * + * + *
+   * Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL
+   * view, see package google.bigtable.v2.
+   * 
+ * + * .google.bigtable.v2.AllReadStats all_read_stats = 2; + */ + com.google.bigtable.v2.AllReadStatsOrBuilder getAllReadStatsOrBuilder(); + + public com.google.bigtable.v2.RequestStats.StatsCase getStatsCase(); +} diff --git a/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStatsProto.java b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStatsProto.java new file mode 100644 index 0000000000..6e1cf9c583 --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2/RequestStatsProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/v2/request_stats.proto + +package com.google.bigtable.v2; + +public final class RequestStatsProto { + private RequestStatsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_ReadIteratorStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_ReadIteratorStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_RequestLatencyStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_RequestLatencyStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_ReadEfficiencyStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_ReadEfficiencyStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_AllReadStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_AllReadStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_v2_RequestStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_v2_RequestStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/bigtable/v2/request_stats.proto" + + "\022\022google.bigtable.v2\032\036google/protobuf/du" + + "ration.proto\"\235\001\n\021ReadIteratorStats\022\027\n\017ro" + + "ws_seen_count\030\001 \001(\003\022\033\n\023rows_returned_cou" + + "nt\030\002 \001(\003\022\030\n\020cells_seen_count\030\003 \001(\003\022\034\n\024ce" + + "lls_returned_count\030\004 \001(\003\022\032\n\022deletes_seen" + + "_count\030\005 \001(\003\"Q\n\023RequestLatencyStats\022:\n\027f" + + "rontend_server_latency\030\001 \001(\0132\031.google.pr" + + "otobuf.Duration\"\241\001\n\023ReadEfficiencyStats\022" + + "B\n\023read_iterator_stats\030\001 \001(\0132%.google.bi" + + "gtable.v2.ReadIteratorStats\022F\n\025request_l" + + "atency_stats\030\002 \001(\0132\'.google.bigtable.v2." + + "RequestLatencyStats\"\232\001\n\014AllReadStats\022B\n\023" + + "read_iterator_stats\030\001 \001(\0132%.google.bigta" + + "ble.v2.ReadIteratorStats\022F\n\025request_late" + + "ncy_stats\030\002 \001(\0132\'.google.bigtable.v2.Req" + + "uestLatencyStats\"\235\001\n\014RequestStats\022H\n\025rea" + + "d_efficiency_stats\030\001 \001(\0132\'.google.bigtab" + + "le.v2.ReadEfficiencyStatsH\000\022:\n\016all_read_" + + "stats\030\002 \001(\0132 .google.bigtable.v2.AllRead" + + "StatsH\000B\007\n\005statsB\275\001\n\026com.google.bigtable" + + ".v2B\021RequestStatsProtoP\001Z:google.golang." + + "org/genproto/googleapis/bigtable/v2;bigt" + + "able\252\002\030Google.Cloud.Bigtable.V2\312\002\030Google" + + "\\Cloud\\Bigtable\\V2\352\002\033Google::Cloud::Bigt" + + "able::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_bigtable_v2_ReadIteratorStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_bigtable_v2_ReadIteratorStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_ReadIteratorStats_descriptor, + new java.lang.String[] { + "RowsSeenCount", + "RowsReturnedCount", + "CellsSeenCount", + "CellsReturnedCount", + "DeletesSeenCount", + }); + internal_static_google_bigtable_v2_RequestLatencyStats_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_bigtable_v2_RequestLatencyStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_RequestLatencyStats_descriptor, + new java.lang.String[] { + "FrontendServerLatency", + }); + internal_static_google_bigtable_v2_ReadEfficiencyStats_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_bigtable_v2_ReadEfficiencyStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_ReadEfficiencyStats_descriptor, + new java.lang.String[] { + "ReadIteratorStats", "RequestLatencyStats", + }); + internal_static_google_bigtable_v2_AllReadStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_bigtable_v2_AllReadStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_AllReadStats_descriptor, + new java.lang.String[] { + "ReadIteratorStats", "RequestLatencyStats", + }); + internal_static_google_bigtable_v2_RequestStats_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_bigtable_v2_RequestStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_v2_RequestStats_descriptor, + new java.lang.String[] { + "ReadEfficiencyStats", "AllReadStats", "Stats", + }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto index 215b573cbd..090c60eb71 100644 --- a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/bigtable.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/api/routing.proto"; import "google/bigtable/v2/data.proto"; +import "google/bigtable/v2/request_stats.proto"; import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; @@ -32,14 +33,14 @@ option java_outer_classname = "BigtableProto"; option java_package = "com.google.bigtable.v2"; option php_namespace = "Google\\Cloud\\Bigtable\\V2"; option ruby_package = "Google::Cloud::Bigtable::V2"; -option (google.api.resource_definition) = { - type: "bigtableadmin.googleapis.com/Table" - pattern: "projects/{project}/instances/{instance}/tables/{table}" -}; option (google.api.resource_definition) = { type: "bigtableadmin.googleapis.com/Instance" pattern: "projects/{project}/instances/{instance}" }; +option (google.api.resource_definition) = { + type: "bigtableadmin.googleapis.com/Table" + pattern: "projects/{project}/instances/{instance}/tables/{table}" +}; // Service for reading from and writing to existing Bigtable tables. service Bigtable { @@ -67,9 +68,7 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; option (google.api.method_signature) = "table_name"; option (google.api.method_signature) = "table_name,app_profile_id"; @@ -79,7 +78,8 @@ service Bigtable { // delimit contiguous sections of the table of approximately equal size, // which can be used to break up the data for distributed tasks like // mapreduces. - rpc SampleRowKeys(SampleRowKeysRequest) returns (stream SampleRowKeysResponse) { + rpc SampleRowKeys(SampleRowKeysRequest) + returns (stream SampleRowKeysResponse) { option (google.api.http) = { get: "/v2/{table_name=projects/*/instances/*/tables/*}:sampleRowKeys" }; @@ -88,9 +88,7 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; option (google.api.method_signature) = "table_name"; option (google.api.method_signature) = "table_name,app_profile_id"; @@ -108,12 +106,11 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; option (google.api.method_signature) = "table_name,row_key,mutations"; - option (google.api.method_signature) = "table_name,row_key,mutations,app_profile_id"; + option (google.api.method_signature) = + "table_name,row_key,mutations,app_profile_id"; } // Mutates multiple rows in a batch. Each individual row is mutated @@ -129,16 +126,15 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; option (google.api.method_signature) = "table_name,entries"; option (google.api.method_signature) = "table_name,entries,app_profile_id"; } // Mutates a row atomically based on the output of a predicate Reader filter. - rpc CheckAndMutateRow(CheckAndMutateRowRequest) returns (CheckAndMutateRowResponse) { + rpc CheckAndMutateRow(CheckAndMutateRowRequest) + returns (CheckAndMutateRowResponse) { option (google.api.http) = { post: "/v2/{table_name=projects/*/instances/*/tables/*}:checkAndMutateRow" body: "*" @@ -148,12 +144,12 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; - option (google.api.method_signature) = "table_name,row_key,predicate_filter,true_mutations,false_mutations"; - option (google.api.method_signature) = "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id"; + option (google.api.method_signature) = + "table_name,row_key,predicate_filter,true_mutations,false_mutations"; + option (google.api.method_signature) = + "table_name,row_key,predicate_filter,true_mutations,false_mutations,app_profile_id"; } // Warm up associated instance metadata for this connection. @@ -168,9 +164,7 @@ service Bigtable { field: "name" path_template: "{name=projects/*/instances/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; option (google.api.method_signature) = "name"; option (google.api.method_signature) = "name,app_profile_id"; @@ -181,7 +175,8 @@ service Bigtable { // entry based on pre-defined read/modify/write rules. The new value for the // timestamp is the greater of the existing timestamp or the current server // time. The method returns the new contents of all modified cells. - rpc ReadModifyWriteRow(ReadModifyWriteRowRequest) returns (ReadModifyWriteRowResponse) { + rpc ReadModifyWriteRow(ReadModifyWriteRowRequest) + returns (ReadModifyWriteRowResponse) { option (google.api.http) = { post: "/v2/{table_name=projects/*/instances/*/tables/*}:readModifyWriteRow" body: "*" @@ -191,17 +186,36 @@ service Bigtable { field: "table_name" path_template: "{table_name=projects/*/instances/*/tables/*}" } - routing_parameters { - field: "app_profile_id" - } + routing_parameters { field: "app_profile_id" } }; option (google.api.method_signature) = "table_name,row_key,rules"; - option (google.api.method_signature) = "table_name,row_key,rules,app_profile_id"; + option (google.api.method_signature) = + "table_name,row_key,rules,app_profile_id"; } } // Request message for Bigtable.ReadRows. message ReadRowsRequest { + // + // The desired view into RequestStats that should be returned in the response. + // + // See also: RequestStats message. + enum RequestStatsView { + // The default / unset value. The API will default to the NONE option below. + REQUEST_STATS_VIEW_UNSPECIFIED = 0; + + // Do not include any RequestStats in the response. This will leave the + // RequestStats embedded message unset in the response. + REQUEST_STATS_NONE = 1; + + // Include stats related to the efficiency of the read. + REQUEST_STATS_EFFICIENCY = 2; + + // Include the full set of available RequestStats in the response, + // applicable to this read. + REQUEST_STATS_FULL = 3; + } + // Required. The unique name of the table from which to read. // Values are of the form // `projects//instances//tables/`. @@ -212,8 +226,8 @@ message ReadRowsRequest { } ]; - // This value specifies routing for replication. If not specified, the - // "default" application profile will be used. + // This value specifies routing for replication. This API only accepts the + // empty value of app_profile_id. string app_profile_id = 5; // The row keys and/or ranges to read sequentially. If not specified, reads @@ -227,6 +241,9 @@ message ReadRowsRequest { // The read will stop after committing to N rows' worth of results. The // default (zero) is to return all results. int64 rows_limit = 4; + + // The view into RequestStats, as described above. + RequestStatsView request_stats_view = 6; } // Response message for Bigtable.ReadRows. @@ -306,6 +323,28 @@ message ReadRowsResponse { // lot of data that was filtered out since the last committed row // key, allowing the client to skip that work on a retry. bytes last_scanned_row_key = 2; + + // + // If requested, provide enhanced query performance statistics. The semantics + // dictate: + // * request_stats is empty on every (streamed) response, except + // * request_stats has non-empty information after all chunks have been + // streamed, where the ReadRowsResponse message only contains + // request_stats. + // * For example, if a read request would have returned an empty + // response instead a single ReadRowsResponse is streamed with empty + // chunks and request_stats filled. + // + // Visually, response messages will stream as follows: + // ... -> {chunks: [...]} -> {chunks: [], request_stats: {...}} + // \______________________/ \________________________________/ + // Primary response Trailer of RequestStats info + // + // Or if the read did not return any values: + // {chunks: [], request_stats: {...}} + // \________________________________/ + // Trailer of RequestStats info + RequestStats request_stats = 3; } // Request message for Bigtable.SampleRowKeys. @@ -345,8 +384,8 @@ message SampleRowKeysResponse { // Request message for Bigtable.MutateRow. message MutateRowRequest { - // Required. The unique name of the table to which the mutation should be applied. - // Values are of the form + // Required. The unique name of the table to which the mutation should be + // applied. Values are of the form // `projects//instances//tables/
`. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -362,16 +401,14 @@ message MutateRowRequest { // Required. The key of the row to which the mutation should be applied. bytes row_key = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Changes to be atomically applied to the specified row. Entries are applied - // in order, meaning that earlier mutations can be masked by later ones. - // Must contain at least one entry and at most 100000. + // Required. Changes to be atomically applied to the specified row. Entries + // are applied in order, meaning that earlier mutations can be masked by later + // ones. Must contain at least one entry and at most 100000. repeated Mutation mutations = 3 [(google.api.field_behavior) = REQUIRED]; } // Response message for Bigtable.MutateRow. -message MutateRowResponse { - -} +message MutateRowResponse {} // Request message for BigtableService.MutateRows. message MutateRowsRequest { @@ -380,14 +417,14 @@ message MutateRowsRequest { // The key of the row to which the `mutations` should be applied. bytes row_key = 1; - // Required. Changes to be atomically applied to the specified row. Mutations are - // applied in order, meaning that earlier mutations can be masked by - // later ones. - // You must specify at least one mutation. + // Required. Changes to be atomically applied to the specified row. + // Mutations are applied in order, meaning that earlier mutations can be + // masked by later ones. You must specify at least one mutation. repeated Mutation mutations = 2 [(google.api.field_behavior) = REQUIRED]; } - // Required. The unique name of the table to which the mutations should be applied. + // Required. The unique name of the table to which the mutations should be + // applied. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -428,9 +465,8 @@ message MutateRowsResponse { // Request message for Bigtable.CheckAndMutateRow. message CheckAndMutateRowRequest { - // Required. The unique name of the table to which the conditional mutation should be - // applied. - // Values are of the form + // Required. The unique name of the table to which the conditional mutation + // should be applied. Values are of the form // `projects//instances//tables/
`. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -443,7 +479,8 @@ message CheckAndMutateRowRequest { // "default" application profile will be used. string app_profile_id = 7; - // Required. The key of the row to which the conditional mutation should be applied. + // Required. The key of the row to which the conditional mutation should be + // applied. bytes row_key = 2 [(google.api.field_behavior) = REQUIRED]; // The filter to be applied to the contents of the specified row. Depending @@ -476,8 +513,9 @@ message CheckAndMutateRowResponse { // Request message for client connection keep-alive and warming. message PingAndWarmRequest { - // Required. The unique name of the instance to check permissions for as well as - // respond. Values are of the form `projects//instances/`. + // Required. The unique name of the instance to check permissions for as well + // as respond. Values are of the form + // `projects//instances/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -491,15 +529,12 @@ message PingAndWarmRequest { } // Response message for Bigtable.PingAndWarm connection keepalive and warming. -message PingAndWarmResponse { - -} +message PingAndWarmResponse {} // Request message for Bigtable.ReadModifyWriteRow. message ReadModifyWriteRowRequest { - // Required. The unique name of the table to which the read/modify/write rules should be - // applied. - // Values are of the form + // Required. The unique name of the table to which the read/modify/write rules + // should be applied. Values are of the form // `projects//instances//tables/
`. string table_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -512,13 +547,15 @@ message ReadModifyWriteRowRequest { // "default" application profile will be used. string app_profile_id = 4; - // Required. The key of the row to which the read/modify/write rules should be applied. + // Required. The key of the row to which the read/modify/write rules should be + // applied. bytes row_key = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. Rules specifying how the specified row's contents are to be transformed - // into writes. Entries are applied in order, meaning that earlier rules will - // affect the results of later ones. - repeated ReadModifyWriteRule rules = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. Rules specifying how the specified row's contents are to be + // transformed into writes. Entries are applied in order, meaning that earlier + // rules will affect the results of later ones. + repeated ReadModifyWriteRule rules = 3 + [(google.api.field_behavior) = REQUIRED]; } // Response message for Bigtable.ReadModifyWriteRow. diff --git a/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto new file mode 100644 index 0000000000..101603504d --- /dev/null +++ b/proto-google-cloud-bigtable-v2/src/main/proto/google/bigtable/v2/request_stats.proto @@ -0,0 +1,117 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.bigtable.v2; + +import "google/protobuf/duration.proto"; + +option csharp_namespace = "Google.Cloud.Bigtable.V2"; +option go_package = "google.golang.org/genproto/googleapis/bigtable/v2;bigtable"; +option java_multiple_files = true; +option java_outer_classname = "RequestStatsProto"; +option java_package = "com.google.bigtable.v2"; +option php_namespace = "Google\\Cloud\\Bigtable\\V2"; +option ruby_package = "Google::Cloud::Bigtable::V2"; + +// +// Messages related to RequestStats, part of the Slow Queries feature, that can +// help understand the performance of requests. + +// ReadIteratorStats captures information about the iteration of rows or cells +// over the course of a read, e.g. how many results were scanned in a read +// operation versus the results returned. +message ReadIteratorStats { + // The rows seen (scanned) as part of the request. This includes the count of + // rows returned, as captured below. + int64 rows_seen_count = 1; + + // The rows returned as part of the request. + int64 rows_returned_count = 2; + + // The cells seen (scanned) as part of the request. This includes the count of + // cells returned, as captured below. + int64 cells_seen_count = 3; + + // The cells returned as part of the request. + int64 cells_returned_count = 4; + + // The deletes seen as part of the request. + int64 deletes_seen_count = 5; +} + +// RequestLatencyStats provides a measurement of the latency of the request as +// it interacts with different systems over its lifetime, e.g. how long the +// request took to execute within a frontend server. +message RequestLatencyStats { + // The latency measured by the frontend server handling this request, from + // when the request was received, to when this value is sent back in the + // response. For more context on the component that is measuring this latency, + // see: https://cloud.google.com/bigtable/docs/overview + // + // Note: This value may be slightly shorter than the value reported into + // aggregate latency metrics in Monitoring for this request + // (https://cloud.google.com/bigtable/docs/monitoring-instance) as this value + // needs to be sent in the response before the latency measurement including + // that transmission is finalized. + google.protobuf.Duration frontend_server_latency = 1; +} + +// ReadEfficiencyStats captures information about the efficiency of a read. +message ReadEfficiencyStats { + // Iteration stats describe how efficient the read is, e.g. comparing + // rows seen vs. rows returned or cells seen vs cells returned can provide an + // indication of read efficiency (the higher the ratio of seen to retuned the + // better). + ReadIteratorStats read_iterator_stats = 1; + + // Request latency stats describe the time taken to complete a request, from + // the server side. + RequestLatencyStats request_latency_stats = 2; +} + +// AllReadStats captures all known information about a read. +message AllReadStats { + // Iteration stats describe how efficient the read is, e.g. comparing + // rows seen vs. rows returned or cells seen vs cells returned can provide an + // indication of read efficiency (the higher the ratio of seen to retuned the + // better). + ReadIteratorStats read_iterator_stats = 1; + + // Request latency stats describe the time taken to complete a request, from + // the server side. + RequestLatencyStats request_latency_stats = 2; +} + +// RequestStats is the container for additional information pertaining to a +// single request, helpful for evaluating the performance of the sent request. +// Currently, there are the following supported methods: +// * google.bigtable.v2.ReadRows +message RequestStats { + // Information pertaining to each request type received. The type is chosen + // based on the requested view. + // + // See the messages above for additional context. + oneof stats { + // Available with the + // ReadRowsRequest.RequestStatsView.REQUEST_STATS_EFFICIENCY view, see + // package google.bigtable.v2. + ReadEfficiencyStats read_efficiency_stats = 1; + + // Available with the ReadRowsRequest.RequestStatsView.REQUEST_STATS_FULL + // view, see package google.bigtable.v2. + AllReadStats all_read_stats = 2; + } +}