Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.2
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).
*
* 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.
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*
* 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).
*