Package io.grpc.channelz.v1
Class ServerData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServerData.Builder>
-
- io.grpc.channelz.v1.ServerData.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ServerDataOrBuilder
,Cloneable
- Enclosing class:
- ServerData
public static final class ServerData.Builder extends GeneratedMessageV3.Builder<ServerData.Builder> implements ServerDataOrBuilder
ServerData is data for a specific Server.
Protobuf typegrpc.channelz.v1.ServerData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerData.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ServerData
build()
ServerData
buildPartial()
ServerData.Builder
clear()
ServerData.Builder
clearCallsFailed()
The number of incoming calls that have a completed with a non-OK statusServerData.Builder
clearCallsStarted()
The number of incoming calls started on the serverServerData.Builder
clearCallsSucceeded()
The number of incoming calls that have completed with an OK statusServerData.Builder
clearField(Descriptors.FieldDescriptor field)
ServerData.Builder
clearLastCallStartedTimestamp()
The last time a call was started on the server.ServerData.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
ServerData.Builder
clearTrace()
A trace of recent events on the server.ServerData.Builder
clone()
long
getCallsFailed()
The number of incoming calls that have a completed with a non-OK statuslong
getCallsStarted()
The number of incoming calls started on the serverlong
getCallsSucceeded()
The number of incoming calls that have completed with an OK statusServerData
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Timestamp
getLastCallStartedTimestamp()
The last time a call was started on the server.Timestamp.Builder
getLastCallStartedTimestampBuilder()
The last time a call was started on the server.TimestampOrBuilder
getLastCallStartedTimestampOrBuilder()
The last time a call was started on the server.ChannelTrace
getTrace()
A trace of recent events on the server.ChannelTrace.Builder
getTraceBuilder()
A trace of recent events on the server.ChannelTraceOrBuilder
getTraceOrBuilder()
A trace of recent events on the server.boolean
hasLastCallStartedTimestamp()
The last time a call was started on the server.boolean
hasTrace()
A trace of recent events on the server.protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ServerData.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ServerData.Builder
mergeFrom(Message other)
ServerData.Builder
mergeFrom(ServerData other)
ServerData.Builder
mergeLastCallStartedTimestamp(Timestamp value)
The last time a call was started on the server.ServerData.Builder
mergeTrace(ChannelTrace value)
A trace of recent events on the server.ServerData.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
ServerData.Builder
setCallsFailed(long value)
The number of incoming calls that have a completed with a non-OK statusServerData.Builder
setCallsStarted(long value)
The number of incoming calls started on the serverServerData.Builder
setCallsSucceeded(long value)
The number of incoming calls that have completed with an OK statusServerData.Builder
setField(Descriptors.FieldDescriptor field, Object value)
ServerData.Builder
setLastCallStartedTimestamp(Timestamp value)
The last time a call was started on the server.ServerData.Builder
setLastCallStartedTimestamp(Timestamp.Builder builderForValue)
The last time a call was started on the server.ServerData.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ServerData.Builder
setTrace(ChannelTrace value)
A trace of recent events on the server.ServerData.Builder
setTrace(ChannelTrace.Builder builderForValue)
A trace of recent events on the server.ServerData.Builder
setUnknownFields(UnknownFieldSet unknownFields)
-
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<ServerData.Builder>
-
clear
public ServerData.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
getDefaultInstanceForType
public ServerData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ServerData build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ServerData buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ServerData.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
setField
public ServerData.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
clearField
public ServerData.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
clearOneof
public ServerData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
setRepeatedField
public ServerData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
addRepeatedField
public ServerData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
mergeFrom
public ServerData.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ServerData.Builder>
-
mergeFrom
public ServerData.Builder mergeFrom(ServerData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
mergeFrom
public ServerData.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<ServerData.Builder>
- Throws:
IOException
-
hasTrace
public boolean hasTrace()
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
- Specified by:
hasTrace
in interfaceServerDataOrBuilder
- Returns:
- Whether the trace field is set.
-
getTrace
public ChannelTrace getTrace()
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
- Specified by:
getTrace
in interfaceServerDataOrBuilder
- Returns:
- The trace.
-
setTrace
public ServerData.Builder setTrace(ChannelTrace value)
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
-
setTrace
public ServerData.Builder setTrace(ChannelTrace.Builder builderForValue)
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
-
mergeTrace
public ServerData.Builder mergeTrace(ChannelTrace value)
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
-
clearTrace
public ServerData.Builder clearTrace()
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
-
getTraceBuilder
public ChannelTrace.Builder getTraceBuilder()
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
-
getTraceOrBuilder
public ChannelTraceOrBuilder getTraceOrBuilder()
A trace of recent events on the server. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 1;
- Specified by:
getTraceOrBuilder
in interfaceServerDataOrBuilder
-
getCallsStarted
public long getCallsStarted()
The number of incoming calls started on the server
int64 calls_started = 2;
- Specified by:
getCallsStarted
in interfaceServerDataOrBuilder
- Returns:
- The callsStarted.
-
setCallsStarted
public ServerData.Builder setCallsStarted(long value)
The number of incoming calls started on the server
int64 calls_started = 2;
- Parameters:
value
- The callsStarted to set.- Returns:
- This builder for chaining.
-
clearCallsStarted
public ServerData.Builder clearCallsStarted()
The number of incoming calls started on the server
int64 calls_started = 2;
- Returns:
- This builder for chaining.
-
getCallsSucceeded
public long getCallsSucceeded()
The number of incoming calls that have completed with an OK status
int64 calls_succeeded = 3;
- Specified by:
getCallsSucceeded
in interfaceServerDataOrBuilder
- Returns:
- The callsSucceeded.
-
setCallsSucceeded
public ServerData.Builder setCallsSucceeded(long value)
The number of incoming calls that have completed with an OK status
int64 calls_succeeded = 3;
- Parameters:
value
- The callsSucceeded to set.- Returns:
- This builder for chaining.
-
clearCallsSucceeded
public ServerData.Builder clearCallsSucceeded()
The number of incoming calls that have completed with an OK status
int64 calls_succeeded = 3;
- Returns:
- This builder for chaining.
-
getCallsFailed
public long getCallsFailed()
The number of incoming calls that have a completed with a non-OK status
int64 calls_failed = 4;
- Specified by:
getCallsFailed
in interfaceServerDataOrBuilder
- Returns:
- The callsFailed.
-
setCallsFailed
public ServerData.Builder setCallsFailed(long value)
The number of incoming calls that have a completed with a non-OK status
int64 calls_failed = 4;
- Parameters:
value
- The callsFailed to set.- Returns:
- This builder for chaining.
-
clearCallsFailed
public ServerData.Builder clearCallsFailed()
The number of incoming calls that have a completed with a non-OK status
int64 calls_failed = 4;
- Returns:
- This builder for chaining.
-
hasLastCallStartedTimestamp
public boolean hasLastCallStartedTimestamp()
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
- Specified by:
hasLastCallStartedTimestamp
in interfaceServerDataOrBuilder
- Returns:
- Whether the lastCallStartedTimestamp field is set.
-
getLastCallStartedTimestamp
public Timestamp getLastCallStartedTimestamp()
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
- Specified by:
getLastCallStartedTimestamp
in interfaceServerDataOrBuilder
- Returns:
- The lastCallStartedTimestamp.
-
setLastCallStartedTimestamp
public ServerData.Builder setLastCallStartedTimestamp(Timestamp value)
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
-
setLastCallStartedTimestamp
public ServerData.Builder setLastCallStartedTimestamp(Timestamp.Builder builderForValue)
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
-
mergeLastCallStartedTimestamp
public ServerData.Builder mergeLastCallStartedTimestamp(Timestamp value)
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
-
clearLastCallStartedTimestamp
public ServerData.Builder clearLastCallStartedTimestamp()
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
-
getLastCallStartedTimestampBuilder
public Timestamp.Builder getLastCallStartedTimestampBuilder()
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
-
getLastCallStartedTimestampOrBuilder
public TimestampOrBuilder getLastCallStartedTimestampOrBuilder()
The last time a call was started on the server.
.google.protobuf.Timestamp last_call_started_timestamp = 5;
- Specified by:
getLastCallStartedTimestampOrBuilder
in interfaceServerDataOrBuilder
-
setUnknownFields
public final ServerData.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
mergeUnknownFields
public final ServerData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ServerData.Builder>
-
-