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

shade.polaris.io.grpc.lb.v1.ClientStatsPerToken Maven / Gradle / Ivy

The newest version!
// 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 the number of calls finished for a particular load balance token.
 * 
* * Protobuf type {@code grpc.lb.v1.ClientStatsPerToken} */ public final class ClientStatsPerToken extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:grpc.lb.v1.ClientStatsPerToken) ClientStatsPerTokenOrBuilder { private static final long serialVersionUID = 0L; // Use ClientStatsPerToken.newBuilder() to construct. private ClientStatsPerToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClientStatsPerToken() { loadBalanceToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClientStatsPerToken(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStatsPerToken_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStatsPerToken_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lb.v1.ClientStatsPerToken.class, io.grpc.lb.v1.ClientStatsPerToken.Builder.class); } public static final int LOAD_BALANCE_TOKEN_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object loadBalanceToken_ = ""; /** *
   * See Server.load_balance_token.
   * 
* * string load_balance_token = 1; * @return The loadBalanceToken. */ @java.lang.Override public java.lang.String getLoadBalanceToken() { java.lang.Object ref = loadBalanceToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loadBalanceToken_ = s; return s; } } /** *
   * See Server.load_balance_token.
   * 
* * string load_balance_token = 1; * @return The bytes for loadBalanceToken. */ @java.lang.Override public com.google.protobuf.ByteString getLoadBalanceTokenBytes() { java.lang.Object ref = loadBalanceToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); loadBalanceToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NUM_CALLS_FIELD_NUMBER = 2; private long numCalls_ = 0L; /** *
   * The total number of RPCs that finished associated with the token.
   * 
* * int64 num_calls = 2; * @return The numCalls. */ @java.lang.Override public long getNumCalls() { return numCalls_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loadBalanceToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, loadBalanceToken_); } if (numCalls_ != 0L) { output.writeInt64(2, numCalls_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loadBalanceToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, loadBalanceToken_); } if (numCalls_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, numCalls_); } 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.ClientStatsPerToken)) { return super.equals(obj); } io.grpc.lb.v1.ClientStatsPerToken other = (io.grpc.lb.v1.ClientStatsPerToken) obj; if (!getLoadBalanceToken() .equals(other.getLoadBalanceToken())) return false; if (getNumCalls() != other.getNumCalls()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOAD_BALANCE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getLoadBalanceToken().hashCode(); hash = (37 * hash) + NUM_CALLS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumCalls()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.grpc.lb.v1.ClientStatsPerToken parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lb.v1.ClientStatsPerToken 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.ClientStatsPerToken parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lb.v1.ClientStatsPerToken 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.ClientStatsPerToken parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.grpc.lb.v1.ClientStatsPerToken parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.grpc.lb.v1.ClientStatsPerToken parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lb.v1.ClientStatsPerToken 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.ClientStatsPerToken parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.grpc.lb.v1.ClientStatsPerToken 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.ClientStatsPerToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.grpc.lb.v1.ClientStatsPerToken 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.ClientStatsPerToken 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 the number of calls finished for a particular load balance token.
   * 
* * Protobuf type {@code grpc.lb.v1.ClientStatsPerToken} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:grpc.lb.v1.ClientStatsPerToken) io.grpc.lb.v1.ClientStatsPerTokenOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStatsPerToken_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStatsPerToken_fieldAccessorTable .ensureFieldAccessorsInitialized( io.grpc.lb.v1.ClientStatsPerToken.class, io.grpc.lb.v1.ClientStatsPerToken.Builder.class); } // Construct using io.grpc.lb.v1.ClientStatsPerToken.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; loadBalanceToken_ = ""; numCalls_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.grpc.lb.v1.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStatsPerToken_descriptor; } @java.lang.Override public io.grpc.lb.v1.ClientStatsPerToken getDefaultInstanceForType() { return io.grpc.lb.v1.ClientStatsPerToken.getDefaultInstance(); } @java.lang.Override public io.grpc.lb.v1.ClientStatsPerToken build() { io.grpc.lb.v1.ClientStatsPerToken result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.grpc.lb.v1.ClientStatsPerToken buildPartial() { io.grpc.lb.v1.ClientStatsPerToken result = new io.grpc.lb.v1.ClientStatsPerToken(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.grpc.lb.v1.ClientStatsPerToken result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.loadBalanceToken_ = loadBalanceToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.numCalls_ = numCalls_; } } @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.ClientStatsPerToken) { return mergeFrom((io.grpc.lb.v1.ClientStatsPerToken)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.grpc.lb.v1.ClientStatsPerToken other) { if (other == io.grpc.lb.v1.ClientStatsPerToken.getDefaultInstance()) return this; if (!other.getLoadBalanceToken().isEmpty()) { loadBalanceToken_ = other.loadBalanceToken_; bitField0_ |= 0x00000001; onChanged(); } if (other.getNumCalls() != 0L) { setNumCalls(other.getNumCalls()); } 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: { loadBalanceToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { numCalls_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 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 java.lang.Object loadBalanceToken_ = ""; /** *
     * See Server.load_balance_token.
     * 
* * string load_balance_token = 1; * @return The loadBalanceToken. */ public java.lang.String getLoadBalanceToken() { java.lang.Object ref = loadBalanceToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loadBalanceToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * See Server.load_balance_token.
     * 
* * string load_balance_token = 1; * @return The bytes for loadBalanceToken. */ public com.google.protobuf.ByteString getLoadBalanceTokenBytes() { java.lang.Object ref = loadBalanceToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); loadBalanceToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * See Server.load_balance_token.
     * 
* * string load_balance_token = 1; * @param value The loadBalanceToken to set. * @return This builder for chaining. */ public Builder setLoadBalanceToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } loadBalanceToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * See Server.load_balance_token.
     * 
* * string load_balance_token = 1; * @return This builder for chaining. */ public Builder clearLoadBalanceToken() { loadBalanceToken_ = getDefaultInstance().getLoadBalanceToken(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * See Server.load_balance_token.
     * 
* * string load_balance_token = 1; * @param value The bytes for loadBalanceToken to set. * @return This builder for chaining. */ public Builder setLoadBalanceTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); loadBalanceToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private long numCalls_ ; /** *
     * The total number of RPCs that finished associated with the token.
     * 
* * int64 num_calls = 2; * @return The numCalls. */ @java.lang.Override public long getNumCalls() { return numCalls_; } /** *
     * The total number of RPCs that finished associated with the token.
     * 
* * int64 num_calls = 2; * @param value The numCalls to set. * @return This builder for chaining. */ public Builder setNumCalls(long value) { numCalls_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The total number of RPCs that finished associated with the token.
     * 
* * int64 num_calls = 2; * @return This builder for chaining. */ public Builder clearNumCalls() { bitField0_ = (bitField0_ & ~0x00000002); numCalls_ = 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:grpc.lb.v1.ClientStatsPerToken) } // @@protoc_insertion_point(class_scope:grpc.lb.v1.ClientStatsPerToken) private static final io.grpc.lb.v1.ClientStatsPerToken DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.grpc.lb.v1.ClientStatsPerToken(); } public static io.grpc.lb.v1.ClientStatsPerToken getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClientStatsPerToken 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.ClientStatsPerToken getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy