com.google.bigtable.v2.FullReadStatsView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-bigtable-v2 Show documentation
Show all versions of proto-google-cloud-bigtable-v2 Show documentation
PROTO library for proto-google-cloud-bigtable-v2
/*
* Copyright 2024 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
// Protobuf Java Version: 3.25.4
package com.google.bigtable.v2;
/**
*
*
*
* FullReadStatsView captures all known information about a read.
*
*
* Protobuf type {@code google.bigtable.v2.FullReadStatsView}
*/
public final class FullReadStatsView extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.bigtable.v2.FullReadStatsView)
FullReadStatsViewOrBuilder {
private static final long serialVersionUID = 0L;
// Use FullReadStatsView.newBuilder() to construct.
private FullReadStatsView(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FullReadStatsView() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new FullReadStatsView();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.RequestStatsProto
.internal_static_google_bigtable_v2_FullReadStatsView_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.RequestStatsProto
.internal_static_google_bigtable_v2_FullReadStatsView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.FullReadStatsView.class,
com.google.bigtable.v2.FullReadStatsView.Builder.class);
}
private int bitField0_;
public static final int READ_ITERATION_STATS_FIELD_NUMBER = 1;
private com.google.bigtable.v2.ReadIterationStats readIterationStats_;
/**
*
*
*
* 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.ReadIterationStats read_iteration_stats = 1;
*
* @return Whether the readIterationStats field is set.
*/
@java.lang.Override
public boolean hasReadIterationStats() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* 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.ReadIterationStats read_iteration_stats = 1;
*
* @return The readIterationStats.
*/
@java.lang.Override
public com.google.bigtable.v2.ReadIterationStats getReadIterationStats() {
return readIterationStats_ == null
? com.google.bigtable.v2.ReadIterationStats.getDefaultInstance()
: readIterationStats_;
}
/**
*
*
*
* 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.ReadIterationStats read_iteration_stats = 1;
*/
@java.lang.Override
public com.google.bigtable.v2.ReadIterationStatsOrBuilder getReadIterationStatsOrBuilder() {
return readIterationStats_ == null
? com.google.bigtable.v2.ReadIterationStats.getDefaultInstance()
: readIterationStats_;
}
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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* 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 requestLatencyStats_ == null
? com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance()
: requestLatencyStats_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getReadIterationStats());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRequestLatencyStats());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadIterationStats());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestLatencyStats());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.bigtable.v2.FullReadStatsView)) {
return super.equals(obj);
}
com.google.bigtable.v2.FullReadStatsView other = (com.google.bigtable.v2.FullReadStatsView) obj;
if (hasReadIterationStats() != other.hasReadIterationStats()) return false;
if (hasReadIterationStats()) {
if (!getReadIterationStats().equals(other.getReadIterationStats())) return false;
}
if (hasRequestLatencyStats() != other.hasRequestLatencyStats()) return false;
if (hasRequestLatencyStats()) {
if (!getRequestLatencyStats().equals(other.getRequestLatencyStats())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasReadIterationStats()) {
hash = (37 * hash) + READ_ITERATION_STATS_FIELD_NUMBER;
hash = (53 * hash) + getReadIterationStats().hashCode();
}
if (hasRequestLatencyStats()) {
hash = (37 * hash) + REQUEST_LATENCY_STATS_FIELD_NUMBER;
hash = (53 * hash) + getRequestLatencyStats().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.bigtable.v2.FullReadStatsView parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.FullReadStatsView 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.FullReadStatsView parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.FullReadStatsView 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.FullReadStatsView parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.bigtable.v2.FullReadStatsView parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.bigtable.v2.FullReadStatsView parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.FullReadStatsView 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.FullReadStatsView parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.FullReadStatsView 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.FullReadStatsView parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.bigtable.v2.FullReadStatsView 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.FullReadStatsView 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;
}
/**
*
*
*
* FullReadStatsView captures all known information about a read.
*
*
* Protobuf type {@code google.bigtable.v2.FullReadStatsView}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.bigtable.v2.FullReadStatsView)
com.google.bigtable.v2.FullReadStatsViewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.bigtable.v2.RequestStatsProto
.internal_static_google_bigtable_v2_FullReadStatsView_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.bigtable.v2.RequestStatsProto
.internal_static_google_bigtable_v2_FullReadStatsView_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.bigtable.v2.FullReadStatsView.class,
com.google.bigtable.v2.FullReadStatsView.Builder.class);
}
// Construct using com.google.bigtable.v2.FullReadStatsView.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getReadIterationStatsFieldBuilder();
getRequestLatencyStatsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
readIterationStats_ = null;
if (readIterationStatsBuilder_ != null) {
readIterationStatsBuilder_.dispose();
readIterationStatsBuilder_ = null;
}
requestLatencyStats_ = null;
if (requestLatencyStatsBuilder_ != null) {
requestLatencyStatsBuilder_.dispose();
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_FullReadStatsView_descriptor;
}
@java.lang.Override
public com.google.bigtable.v2.FullReadStatsView getDefaultInstanceForType() {
return com.google.bigtable.v2.FullReadStatsView.getDefaultInstance();
}
@java.lang.Override
public com.google.bigtable.v2.FullReadStatsView build() {
com.google.bigtable.v2.FullReadStatsView result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.bigtable.v2.FullReadStatsView buildPartial() {
com.google.bigtable.v2.FullReadStatsView result =
new com.google.bigtable.v2.FullReadStatsView(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.bigtable.v2.FullReadStatsView result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.readIterationStats_ =
readIterationStatsBuilder_ == null
? readIterationStats_
: readIterationStatsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.requestLatencyStats_ =
requestLatencyStatsBuilder_ == null
? requestLatencyStats_
: requestLatencyStatsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.bigtable.v2.FullReadStatsView) {
return mergeFrom((com.google.bigtable.v2.FullReadStatsView) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.bigtable.v2.FullReadStatsView other) {
if (other == com.google.bigtable.v2.FullReadStatsView.getDefaultInstance()) return this;
if (other.hasReadIterationStats()) {
mergeReadIterationStats(other.getReadIterationStats());
}
if (other.hasRequestLatencyStats()) {
mergeRequestLatencyStats(other.getRequestLatencyStats());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(
getReadIterationStatsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getRequestLatencyStatsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.bigtable.v2.ReadIterationStats readIterationStats_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.ReadIterationStats,
com.google.bigtable.v2.ReadIterationStats.Builder,
com.google.bigtable.v2.ReadIterationStatsOrBuilder>
readIterationStatsBuilder_;
/**
*
*
*
* 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.ReadIterationStats read_iteration_stats = 1;
*
* @return Whether the readIterationStats field is set.
*/
public boolean hasReadIterationStats() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* 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.ReadIterationStats read_iteration_stats = 1;
*
* @return The readIterationStats.
*/
public com.google.bigtable.v2.ReadIterationStats getReadIterationStats() {
if (readIterationStatsBuilder_ == null) {
return readIterationStats_ == null
? com.google.bigtable.v2.ReadIterationStats.getDefaultInstance()
: readIterationStats_;
} else {
return readIterationStatsBuilder_.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.ReadIterationStats read_iteration_stats = 1;
*/
public Builder setReadIterationStats(com.google.bigtable.v2.ReadIterationStats value) {
if (readIterationStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
readIterationStats_ = value;
} else {
readIterationStatsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
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.ReadIterationStats read_iteration_stats = 1;
*/
public Builder setReadIterationStats(
com.google.bigtable.v2.ReadIterationStats.Builder builderForValue) {
if (readIterationStatsBuilder_ == null) {
readIterationStats_ = builderForValue.build();
} else {
readIterationStatsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
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.ReadIterationStats read_iteration_stats = 1;
*/
public Builder mergeReadIterationStats(com.google.bigtable.v2.ReadIterationStats value) {
if (readIterationStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& readIterationStats_ != null
&& readIterationStats_
!= com.google.bigtable.v2.ReadIterationStats.getDefaultInstance()) {
getReadIterationStatsBuilder().mergeFrom(value);
} else {
readIterationStats_ = value;
}
} else {
readIterationStatsBuilder_.mergeFrom(value);
}
if (readIterationStats_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
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.ReadIterationStats read_iteration_stats = 1;
*/
public Builder clearReadIterationStats() {
bitField0_ = (bitField0_ & ~0x00000001);
readIterationStats_ = null;
if (readIterationStatsBuilder_ != null) {
readIterationStatsBuilder_.dispose();
readIterationStatsBuilder_ = null;
}
onChanged();
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.ReadIterationStats read_iteration_stats = 1;
*/
public com.google.bigtable.v2.ReadIterationStats.Builder getReadIterationStatsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getReadIterationStatsFieldBuilder().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.ReadIterationStats read_iteration_stats = 1;
*/
public com.google.bigtable.v2.ReadIterationStatsOrBuilder getReadIterationStatsOrBuilder() {
if (readIterationStatsBuilder_ != null) {
return readIterationStatsBuilder_.getMessageOrBuilder();
} else {
return readIterationStats_ == null
? com.google.bigtable.v2.ReadIterationStats.getDefaultInstance()
: readIterationStats_;
}
}
/**
*
*
*
* 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.ReadIterationStats read_iteration_stats = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.ReadIterationStats,
com.google.bigtable.v2.ReadIterationStats.Builder,
com.google.bigtable.v2.ReadIterationStatsOrBuilder>
getReadIterationStatsFieldBuilder() {
if (readIterationStatsBuilder_ == null) {
readIterationStatsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.bigtable.v2.ReadIterationStats,
com.google.bigtable.v2.ReadIterationStats.Builder,
com.google.bigtable.v2.ReadIterationStatsOrBuilder>(
getReadIterationStats(), getParentForChildren(), isClean());
readIterationStats_ = null;
}
return readIterationStatsBuilder_;
}
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 ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* 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;
} else {
requestLatencyStatsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
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();
} else {
requestLatencyStatsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
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 (((bitField0_ & 0x00000002) != 0)
&& requestLatencyStats_ != null
&& requestLatencyStats_
!= com.google.bigtable.v2.RequestLatencyStats.getDefaultInstance()) {
getRequestLatencyStatsBuilder().mergeFrom(value);
} else {
requestLatencyStats_ = value;
}
} else {
requestLatencyStatsBuilder_.mergeFrom(value);
}
if (requestLatencyStats_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
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() {
bitField0_ = (bitField0_ & ~0x00000002);
requestLatencyStats_ = null;
if (requestLatencyStatsBuilder_ != null) {
requestLatencyStatsBuilder_.dispose();
requestLatencyStatsBuilder_ = null;
}
onChanged();
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() {
bitField0_ |= 0x00000002;
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.FullReadStatsView)
}
// @@protoc_insertion_point(class_scope:google.bigtable.v2.FullReadStatsView)
private static final com.google.bigtable.v2.FullReadStatsView DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.bigtable.v2.FullReadStatsView();
}
public static com.google.bigtable.v2.FullReadStatsView getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FullReadStatsView parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.bigtable.v2.FullReadStatsView getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}