All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.grpc.lb.v1.ClientStats Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: grpc/lb/v1/load_balancer.proto

// Protobuf Java Version: 3.25.1
package io.grpc.lb.v1;

/**
 * 
 * Contains client level statistics that are useful to load balancing. Each
 * count except the timestamp should be reset to zero after reporting the stats.
 * 
* * Protobuf type {@code grpc.lb.v1.ClientStats} */ public final class ClientStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.lb.v1.ClientStats) ClientStatsOrBuilder { private static final long serialVersionUID = 0L; // Use ClientStats.newBuilder() to construct. private ClientStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientStats() { callsFinishedWithDrop_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lb.v1.ClientStats.class, io.grpc.lb.v1.ClientStats.Builder.class); } private int bitField0_; public static final int TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp timestamp_; /** *
   * The timestamp of generating the report.
   * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The timestamp of generating the report.
   * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
   * The timestamp of generating the report.
   * 
* * .google.protobuf.Timestamp timestamp = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } public static final int NUM_CALLS_STARTED_FIELD_NUMBER = 2; private long numCallsStarted_ = 0L; /** *
   * The total number of RPCs that started.
   * 
* * int64 num_calls_started = 2; * @return The numCallsStarted. */ @java.lang.Override public long getNumCallsStarted() { return numCallsStarted_; } public static final int NUM_CALLS_FINISHED_FIELD_NUMBER = 3; private long numCallsFinished_ = 0L; /** *
   * The total number of RPCs that finished.
   * 
* * int64 num_calls_finished = 3; * @return The numCallsFinished. */ @java.lang.Override public long getNumCallsFinished() { return numCallsFinished_; } public static final int NUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBER = 6; private long numCallsFinishedWithClientFailedToSend_ = 0L; /** *
   * The total number of RPCs that failed to reach a server except dropped RPCs.
   * 
* * int64 num_calls_finished_with_client_failed_to_send = 6; * @return The numCallsFinishedWithClientFailedToSend. */ @java.lang.Override public long getNumCallsFinishedWithClientFailedToSend() { return numCallsFinishedWithClientFailedToSend_; } public static final int NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER = 7; private long numCallsFinishedKnownReceived_ = 0L; /** *
   * The total number of RPCs that finished and are known to have been received
   * by a server.
   * 
* * int64 num_calls_finished_known_received = 7; * @return The numCallsFinishedKnownReceived. */ @java.lang.Override public long getNumCallsFinishedKnownReceived() { return numCallsFinishedKnownReceived_; } public static final int CALLS_FINISHED_WITH_DROP_FIELD_NUMBER = 8; @SuppressWarnings("serial") private java.util.List callsFinishedWithDrop_; /** *
   * The list of dropped calls.
   * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ @java.lang.Override public java.util.List getCallsFinishedWithDropList() { return callsFinishedWithDrop_; } /** *
   * The list of dropped calls.
   * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ @java.lang.Override public java.util.List getCallsFinishedWithDropOrBuilderList() { return callsFinishedWithDrop_; } /** *
   * The list of dropped calls.
   * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ @java.lang.Override public int getCallsFinishedWithDropCount() { return callsFinishedWithDrop_.size(); } /** *
   * The list of dropped calls.
   * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ @java.lang.Override public io.grpc.lb.v1.ClientStatsPerToken getCallsFinishedWithDrop(int index) { return callsFinishedWithDrop_.get(index); } /** *
   * The list of dropped calls.
   * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ @java.lang.Override public io.grpc.lb.v1.ClientStatsPerTokenOrBuilder getCallsFinishedWithDropOrBuilder( int index) { return callsFinishedWithDrop_.get(index); } 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, getTimestamp()); } if (numCallsStarted_ != 0L) { output.writeInt64(2, numCallsStarted_); } if (numCallsFinished_ != 0L) { output.writeInt64(3, numCallsFinished_); } if (numCallsFinishedWithClientFailedToSend_ != 0L) { output.writeInt64(6, numCallsFinishedWithClientFailedToSend_); } if (numCallsFinishedKnownReceived_ != 0L) { output.writeInt64(7, numCallsFinishedKnownReceived_); } for (int i = 0; i < callsFinishedWithDrop_.size(); i++) { output.writeMessage(8, callsFinishedWithDrop_.get(i)); } 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, getTimestamp()); } if (numCallsStarted_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, numCallsStarted_); } if (numCallsFinished_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, numCallsFinished_); } if (numCallsFinishedWithClientFailedToSend_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, numCallsFinishedWithClientFailedToSend_); } if (numCallsFinishedKnownReceived_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, numCallsFinishedKnownReceived_); } for (int i = 0; i < callsFinishedWithDrop_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, callsFinishedWithDrop_.get(i)); } 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 io.grpc.lb.v1.ClientStats)) { return super.equals(obj); } io.grpc.lb.v1.ClientStats other = (io.grpc.lb.v1.ClientStats) obj; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (getNumCallsStarted() != other.getNumCallsStarted()) return false; if (getNumCallsFinished() != other.getNumCallsFinished()) return false; if (getNumCallsFinishedWithClientFailedToSend() != other.getNumCallsFinishedWithClientFailedToSend()) return false; if (getNumCallsFinishedKnownReceived() != other.getNumCallsFinishedKnownReceived()) return false; if (!getCallsFinishedWithDropList() .equals(other.getCallsFinishedWithDropList())) 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 (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + NUM_CALLS_STARTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumCallsStarted()); hash = (37 * hash) + NUM_CALLS_FINISHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumCallsFinished()); hash = (37 * hash) + NUM_CALLS_FINISHED_WITH_CLIENT_FAILED_TO_SEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumCallsFinishedWithClientFailedToSend()); hash = (37 * hash) + NUM_CALLS_FINISHED_KNOWN_RECEIVED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumCallsFinishedKnownReceived()); if (getCallsFinishedWithDropCount() > 0) { hash = (37 * hash) + CALLS_FINISHED_WITH_DROP_FIELD_NUMBER; hash = (53 * hash) + getCallsFinishedWithDropList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.lb.v1.ClientStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lb.v1.ClientStats parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lb.v1.ClientStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lb.v1.ClientStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lb.v1.ClientStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lb.v1.ClientStats parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lb.v1.ClientStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lb.v1.ClientStats 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 io.grpc.lb.v1.ClientStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.lb.v1.ClientStats 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 io.grpc.lb.v1.ClientStats parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lb.v1.ClientStats 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(io.grpc.lb.v1.ClientStats 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; } /** *
   * Contains client level statistics that are useful to load balancing. Each
   * count except the timestamp should be reset to zero after reporting the stats.
   * 
* * Protobuf type {@code grpc.lb.v1.ClientStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.lb.v1.ClientStats) io.grpc.lb.v1.ClientStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lb.v1.ClientStats.class, io.grpc.lb.v1.ClientStats.Builder.class); } // Construct using io.grpc.lb.v1.ClientStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTimestampFieldBuilder(); getCallsFinishedWithDropFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } numCallsStarted_ = 0L; numCallsFinished_ = 0L; numCallsFinishedWithClientFailedToSend_ = 0L; numCallsFinishedKnownReceived_ = 0L; if (callsFinishedWithDropBuilder_ == null) { callsFinishedWithDrop_ = java.util.Collections.emptyList(); } else { callsFinishedWithDrop_ = null; callsFinishedWithDropBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_descriptor; } @java.lang.Override public io.grpc.lb.v1.ClientStats getDefaultInstanceForType() { return io.grpc.lb.v1.ClientStats.getDefaultInstance(); } @java.lang.Override public io.grpc.lb.v1.ClientStats build() { io.grpc.lb.v1.ClientStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.lb.v1.ClientStats buildPartial() { io.grpc.lb.v1.ClientStats result = new io.grpc.lb.v1.ClientStats(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.grpc.lb.v1.ClientStats result) { if (callsFinishedWithDropBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { callsFinishedWithDrop_ = java.util.Collections.unmodifiableList(callsFinishedWithDrop_); bitField0_ = (bitField0_ & ~0x00000020); } result.callsFinishedWithDrop_ = callsFinishedWithDrop_; } else { result.callsFinishedWithDrop_ = callsFinishedWithDropBuilder_.build(); } } private void buildPartial0(io.grpc.lb.v1.ClientStats result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.numCallsStarted_ = numCallsStarted_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.numCallsFinished_ = numCallsFinished_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.numCallsFinishedWithClientFailedToSend_ = numCallsFinishedWithClientFailedToSend_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.numCallsFinishedKnownReceived_ = numCallsFinishedKnownReceived_; } 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 io.grpc.lb.v1.ClientStats) { return mergeFrom((io.grpc.lb.v1.ClientStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.lb.v1.ClientStats other) { if (other == io.grpc.lb.v1.ClientStats.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (other.getNumCallsStarted() != 0L) { setNumCallsStarted(other.getNumCallsStarted()); } if (other.getNumCallsFinished() != 0L) { setNumCallsFinished(other.getNumCallsFinished()); } if (other.getNumCallsFinishedWithClientFailedToSend() != 0L) { setNumCallsFinishedWithClientFailedToSend(other.getNumCallsFinishedWithClientFailedToSend()); } if (other.getNumCallsFinishedKnownReceived() != 0L) { setNumCallsFinishedKnownReceived(other.getNumCallsFinishedKnownReceived()); } if (callsFinishedWithDropBuilder_ == null) { if (!other.callsFinishedWithDrop_.isEmpty()) { if (callsFinishedWithDrop_.isEmpty()) { callsFinishedWithDrop_ = other.callsFinishedWithDrop_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.addAll(other.callsFinishedWithDrop_); } onChanged(); } } else { if (!other.callsFinishedWithDrop_.isEmpty()) { if (callsFinishedWithDropBuilder_.isEmpty()) { callsFinishedWithDropBuilder_.dispose(); callsFinishedWithDropBuilder_ = null; callsFinishedWithDrop_ = other.callsFinishedWithDrop_; bitField0_ = (bitField0_ & ~0x00000020); callsFinishedWithDropBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCallsFinishedWithDropFieldBuilder() : null; } else { callsFinishedWithDropBuilder_.addAllMessages(other.callsFinishedWithDrop_); } } } 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( getTimestampFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { numCallsStarted_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { numCallsFinished_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 48: { numCallsFinishedWithClientFailedToSend_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 48 case 56: { numCallsFinishedKnownReceived_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 56 case 66: { io.grpc.lb.v1.ClientStatsPerToken m = input.readMessage( io.grpc.lb.v1.ClientStatsPerToken.parser(), extensionRegistry); if (callsFinishedWithDropBuilder_ == null) { ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.add(m); } else { callsFinishedWithDropBuilder_.addMessage(m); } break; } // case 66 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.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && timestamp_ != null && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } } else { timestampBuilder_.mergeFrom(value); } if (timestamp_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } onChanged(); return this; } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
     * The timestamp of generating the report.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private long numCallsStarted_ ; /** *
     * The total number of RPCs that started.
     * 
* * int64 num_calls_started = 2; * @return The numCallsStarted. */ @java.lang.Override public long getNumCallsStarted() { return numCallsStarted_; } /** *
     * The total number of RPCs that started.
     * 
* * int64 num_calls_started = 2; * @param value The numCallsStarted to set. * @return This builder for chaining. */ public Builder setNumCallsStarted(long value) { numCallsStarted_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The total number of RPCs that started.
     * 
* * int64 num_calls_started = 2; * @return This builder for chaining. */ public Builder clearNumCallsStarted() { bitField0_ = (bitField0_ & ~0x00000002); numCallsStarted_ = 0L; onChanged(); return this; } private long numCallsFinished_ ; /** *
     * The total number of RPCs that finished.
     * 
* * int64 num_calls_finished = 3; * @return The numCallsFinished. */ @java.lang.Override public long getNumCallsFinished() { return numCallsFinished_; } /** *
     * The total number of RPCs that finished.
     * 
* * int64 num_calls_finished = 3; * @param value The numCallsFinished to set. * @return This builder for chaining. */ public Builder setNumCallsFinished(long value) { numCallsFinished_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The total number of RPCs that finished.
     * 
* * int64 num_calls_finished = 3; * @return This builder for chaining. */ public Builder clearNumCallsFinished() { bitField0_ = (bitField0_ & ~0x00000004); numCallsFinished_ = 0L; onChanged(); return this; } private long numCallsFinishedWithClientFailedToSend_ ; /** *
     * The total number of RPCs that failed to reach a server except dropped RPCs.
     * 
* * int64 num_calls_finished_with_client_failed_to_send = 6; * @return The numCallsFinishedWithClientFailedToSend. */ @java.lang.Override public long getNumCallsFinishedWithClientFailedToSend() { return numCallsFinishedWithClientFailedToSend_; } /** *
     * The total number of RPCs that failed to reach a server except dropped RPCs.
     * 
* * int64 num_calls_finished_with_client_failed_to_send = 6; * @param value The numCallsFinishedWithClientFailedToSend to set. * @return This builder for chaining. */ public Builder setNumCallsFinishedWithClientFailedToSend(long value) { numCallsFinishedWithClientFailedToSend_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The total number of RPCs that failed to reach a server except dropped RPCs.
     * 
* * int64 num_calls_finished_with_client_failed_to_send = 6; * @return This builder for chaining. */ public Builder clearNumCallsFinishedWithClientFailedToSend() { bitField0_ = (bitField0_ & ~0x00000008); numCallsFinishedWithClientFailedToSend_ = 0L; onChanged(); return this; } private long numCallsFinishedKnownReceived_ ; /** *
     * The total number of RPCs that finished and are known to have been received
     * by a server.
     * 
* * int64 num_calls_finished_known_received = 7; * @return The numCallsFinishedKnownReceived. */ @java.lang.Override public long getNumCallsFinishedKnownReceived() { return numCallsFinishedKnownReceived_; } /** *
     * The total number of RPCs that finished and are known to have been received
     * by a server.
     * 
* * int64 num_calls_finished_known_received = 7; * @param value The numCallsFinishedKnownReceived to set. * @return This builder for chaining. */ public Builder setNumCallsFinishedKnownReceived(long value) { numCallsFinishedKnownReceived_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The total number of RPCs that finished and are known to have been received
     * by a server.
     * 
* * int64 num_calls_finished_known_received = 7; * @return This builder for chaining. */ public Builder clearNumCallsFinishedKnownReceived() { bitField0_ = (bitField0_ & ~0x00000010); numCallsFinishedKnownReceived_ = 0L; onChanged(); return this; } private java.util.List callsFinishedWithDrop_ = java.util.Collections.emptyList(); private void ensureCallsFinishedWithDropIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { callsFinishedWithDrop_ = new java.util.ArrayList(callsFinishedWithDrop_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lb.v1.ClientStatsPerToken, io.grpc.lb.v1.ClientStatsPerToken.Builder, io.grpc.lb.v1.ClientStatsPerTokenOrBuilder> callsFinishedWithDropBuilder_; /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public java.util.List getCallsFinishedWithDropList() { if (callsFinishedWithDropBuilder_ == null) { return java.util.Collections.unmodifiableList(callsFinishedWithDrop_); } else { return callsFinishedWithDropBuilder_.getMessageList(); } } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public int getCallsFinishedWithDropCount() { if (callsFinishedWithDropBuilder_ == null) { return callsFinishedWithDrop_.size(); } else { return callsFinishedWithDropBuilder_.getCount(); } } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public io.grpc.lb.v1.ClientStatsPerToken getCallsFinishedWithDrop(int index) { if (callsFinishedWithDropBuilder_ == null) { return callsFinishedWithDrop_.get(index); } else { return callsFinishedWithDropBuilder_.getMessage(index); } } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder setCallsFinishedWithDrop( int index, io.grpc.lb.v1.ClientStatsPerToken value) { if (callsFinishedWithDropBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.set(index, value); onChanged(); } else { callsFinishedWithDropBuilder_.setMessage(index, value); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder setCallsFinishedWithDrop( int index, io.grpc.lb.v1.ClientStatsPerToken.Builder builderForValue) { if (callsFinishedWithDropBuilder_ == null) { ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.set(index, builderForValue.build()); onChanged(); } else { callsFinishedWithDropBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder addCallsFinishedWithDrop(io.grpc.lb.v1.ClientStatsPerToken value) { if (callsFinishedWithDropBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.add(value); onChanged(); } else { callsFinishedWithDropBuilder_.addMessage(value); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder addCallsFinishedWithDrop( int index, io.grpc.lb.v1.ClientStatsPerToken value) { if (callsFinishedWithDropBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.add(index, value); onChanged(); } else { callsFinishedWithDropBuilder_.addMessage(index, value); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder addCallsFinishedWithDrop( io.grpc.lb.v1.ClientStatsPerToken.Builder builderForValue) { if (callsFinishedWithDropBuilder_ == null) { ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.add(builderForValue.build()); onChanged(); } else { callsFinishedWithDropBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder addCallsFinishedWithDrop( int index, io.grpc.lb.v1.ClientStatsPerToken.Builder builderForValue) { if (callsFinishedWithDropBuilder_ == null) { ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.add(index, builderForValue.build()); onChanged(); } else { callsFinishedWithDropBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder addAllCallsFinishedWithDrop( java.lang.Iterable values) { if (callsFinishedWithDropBuilder_ == null) { ensureCallsFinishedWithDropIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, callsFinishedWithDrop_); onChanged(); } else { callsFinishedWithDropBuilder_.addAllMessages(values); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder clearCallsFinishedWithDrop() { if (callsFinishedWithDropBuilder_ == null) { callsFinishedWithDrop_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { callsFinishedWithDropBuilder_.clear(); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public Builder removeCallsFinishedWithDrop(int index) { if (callsFinishedWithDropBuilder_ == null) { ensureCallsFinishedWithDropIsMutable(); callsFinishedWithDrop_.remove(index); onChanged(); } else { callsFinishedWithDropBuilder_.remove(index); } return this; } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public io.grpc.lb.v1.ClientStatsPerToken.Builder getCallsFinishedWithDropBuilder( int index) { return getCallsFinishedWithDropFieldBuilder().getBuilder(index); } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public io.grpc.lb.v1.ClientStatsPerTokenOrBuilder getCallsFinishedWithDropOrBuilder( int index) { if (callsFinishedWithDropBuilder_ == null) { return callsFinishedWithDrop_.get(index); } else { return callsFinishedWithDropBuilder_.getMessageOrBuilder(index); } } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public java.util.List getCallsFinishedWithDropOrBuilderList() { if (callsFinishedWithDropBuilder_ != null) { return callsFinishedWithDropBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(callsFinishedWithDrop_); } } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public io.grpc.lb.v1.ClientStatsPerToken.Builder addCallsFinishedWithDropBuilder() { return getCallsFinishedWithDropFieldBuilder().addBuilder( io.grpc.lb.v1.ClientStatsPerToken.getDefaultInstance()); } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public io.grpc.lb.v1.ClientStatsPerToken.Builder addCallsFinishedWithDropBuilder( int index) { return getCallsFinishedWithDropFieldBuilder().addBuilder( index, io.grpc.lb.v1.ClientStatsPerToken.getDefaultInstance()); } /** *
     * The list of dropped calls.
     * 
* * repeated .grpc.lb.v1.ClientStatsPerToken calls_finished_with_drop = 8; */ public java.util.List getCallsFinishedWithDropBuilderList() { return getCallsFinishedWithDropFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lb.v1.ClientStatsPerToken, io.grpc.lb.v1.ClientStatsPerToken.Builder, io.grpc.lb.v1.ClientStatsPerTokenOrBuilder> getCallsFinishedWithDropFieldBuilder() { if (callsFinishedWithDropBuilder_ == null) { callsFinishedWithDropBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.grpc.lb.v1.ClientStatsPerToken, io.grpc.lb.v1.ClientStatsPerToken.Builder, io.grpc.lb.v1.ClientStatsPerTokenOrBuilder>( callsFinishedWithDrop_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); callsFinishedWithDrop_ = null; } return callsFinishedWithDropBuilder_; } @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:grpc.lb.v1.ClientStats) } // @@protoc_insertion_point(class_scope:grpc.lb.v1.ClientStats) private static final io.grpc.lb.v1.ClientStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.lb.v1.ClientStats(); } public static io.grpc.lb.v1.ClientStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientStats 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 io.grpc.lb.v1.ClientStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy