Package io.grpc.lb.v1
Class ClientStatsPerToken.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
- io.grpc.lb.v1.ClientStatsPerToken.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ClientStatsPerTokenOrBuilder
,Cloneable
- Enclosing class:
- ClientStatsPerToken
public static final class ClientStatsPerToken.Builder extends GeneratedMessageV3.Builder<ClientStatsPerToken.Builder> implements ClientStatsPerTokenOrBuilder
Contains the number of calls finished for a particular load balance token.
Protobuf typegrpc.lb.v1.ClientStatsPerToken
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
clear
public ClientStatsPerToken.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
getDefaultInstanceForType
public ClientStatsPerToken getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ClientStatsPerToken build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ClientStatsPerToken buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ClientStatsPerToken.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
setField
public ClientStatsPerToken.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
clearField
public ClientStatsPerToken.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
clearOneof
public ClientStatsPerToken.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
setRepeatedField
public ClientStatsPerToken.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
addRepeatedField
public ClientStatsPerToken.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
mergeFrom
public ClientStatsPerToken.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ClientStatsPerToken.Builder>
-
mergeFrom
public ClientStatsPerToken.Builder mergeFrom(ClientStatsPerToken other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
mergeFrom
public ClientStatsPerToken.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ClientStatsPerToken.Builder>
- Throws:
IOException
-
getLoadBalanceToken
public String getLoadBalanceToken()
See Server.load_balance_token.
string load_balance_token = 1;
- Specified by:
getLoadBalanceToken
in interfaceClientStatsPerTokenOrBuilder
- Returns:
- The loadBalanceToken.
-
getLoadBalanceTokenBytes
public ByteString getLoadBalanceTokenBytes()
See Server.load_balance_token.
string load_balance_token = 1;
- Specified by:
getLoadBalanceTokenBytes
in interfaceClientStatsPerTokenOrBuilder
- Returns:
- The bytes for loadBalanceToken.
-
setLoadBalanceToken
public ClientStatsPerToken.Builder setLoadBalanceToken(String value)
See Server.load_balance_token.
string load_balance_token = 1;
- Parameters:
value
- The loadBalanceToken to set.- Returns:
- This builder for chaining.
-
clearLoadBalanceToken
public ClientStatsPerToken.Builder clearLoadBalanceToken()
See Server.load_balance_token.
string load_balance_token = 1;
- Returns:
- This builder for chaining.
-
setLoadBalanceTokenBytes
public ClientStatsPerToken.Builder setLoadBalanceTokenBytes(ByteString value)
See Server.load_balance_token.
string load_balance_token = 1;
- Parameters:
value
- The bytes for loadBalanceToken to set.- Returns:
- This builder for chaining.
-
getNumCalls
public long getNumCalls()
The total number of RPCs that finished associated with the token.
int64 num_calls = 2;
- Specified by:
getNumCalls
in interfaceClientStatsPerTokenOrBuilder
- Returns:
- The numCalls.
-
setNumCalls
public ClientStatsPerToken.Builder setNumCalls(long value)
The total number of RPCs that finished associated with the token.
int64 num_calls = 2;
- Parameters:
value
- The numCalls to set.- Returns:
- This builder for chaining.
-
clearNumCalls
public ClientStatsPerToken.Builder clearNumCalls()
The total number of RPCs that finished associated with the token.
int64 num_calls = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ClientStatsPerToken.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
mergeUnknownFields
public final ClientStatsPerToken.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ClientStatsPerToken.Builder>
-
-