Package io.grpc.channelz.v1
Class ChannelData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ChannelData.Builder>
com.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
io.grpc.channelz.v1.ChannelData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ChannelDataOrBuilder
,Cloneable
- Enclosing class:
ChannelData
public static final class ChannelData.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
implements ChannelDataOrBuilder
Channel data is data related to a specific Channel or Subchannel.Protobuf type
grpc.channelz.v1.ChannelData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private long
private long
private long
private com.google.protobuf.Timestamp
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> private ChannelConnectivityState
private com.google.protobuf.SingleFieldBuilder
<ChannelConnectivityState, ChannelConnectivityState.Builder, ChannelConnectivityStateOrBuilder> private Object
private ChannelTrace
private com.google.protobuf.SingleFieldBuilder
<ChannelTrace, ChannelTrace.Builder, ChannelTraceOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(ChannelData result) clear()
The number of calls that have completed with a non-OK statusThe number of calls started on the channelThe number of calls that have completed with an OK statusThe last time a call was started on the channel.The connectivity state of the channel or subchannel.The target this channel originally tried to connect to.A trace of recent events on the channel.long
The number of calls that have completed with a non-OK statuslong
The number of calls started on the channellong
The number of calls that have completed with an OK statusstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Timestamp
The last time a call was started on the channel.com.google.protobuf.Timestamp.Builder
The last time a call was started on the channel.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> The last time a call was started on the channel.com.google.protobuf.TimestampOrBuilder
The last time a call was started on the channel.getState()
The connectivity state of the channel or subchannel.The connectivity state of the channel or subchannel.private com.google.protobuf.SingleFieldBuilder
<ChannelConnectivityState, ChannelConnectivityState.Builder, ChannelConnectivityStateOrBuilder> The connectivity state of the channel or subchannel.The connectivity state of the channel or subchannel.The target this channel originally tried to connect to.com.google.protobuf.ByteString
The target this channel originally tried to connect to.getTrace()
A trace of recent events on the channel.A trace of recent events on the channel.private com.google.protobuf.SingleFieldBuilder
<ChannelTrace, ChannelTrace.Builder, ChannelTraceOrBuilder> A trace of recent events on the channel.A trace of recent events on the channel.boolean
The last time a call was started on the channel.boolean
hasState()
The connectivity state of the channel or subchannel.boolean
hasTrace()
A trace of recent events on the channel.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ChannelData other) mergeLastCallStartedTimestamp
(com.google.protobuf.Timestamp value) The last time a call was started on the channel.The connectivity state of the channel or subchannel.mergeTrace
(ChannelTrace value) A trace of recent events on the channel.setCallsFailed
(long value) The number of calls that have completed with a non-OK statussetCallsStarted
(long value) The number of calls started on the channelsetCallsSucceeded
(long value) The number of calls that have completed with an OK statussetLastCallStartedTimestamp
(com.google.protobuf.Timestamp value) The last time a call was started on the channel.setLastCallStartedTimestamp
(com.google.protobuf.Timestamp.Builder builderForValue) The last time a call was started on the channel.setState
(ChannelConnectivityState value) The connectivity state of the channel or subchannel.setState
(ChannelConnectivityState.Builder builderForValue) The connectivity state of the channel or subchannel.The target this channel originally tried to connect to.setTargetBytes
(com.google.protobuf.ByteString value) The target this channel originally tried to connect to.setTrace
(ChannelTrace value) A trace of recent events on the channel.setTrace
(ChannelTrace.Builder builderForValue) A trace of recent events on the channel.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
bitField0_
private int bitField0_ -
state_
-
stateBuilder_
private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder, stateBuilder_ChannelConnectivityStateOrBuilder> -
target_
-
trace_
-
traceBuilder_
private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder, traceBuilder_ChannelTraceOrBuilder> -
callsStarted_
private long callsStarted_ -
callsSucceeded_
private long callsSucceeded_ -
callsFailed_
private long callsFailed_ -
lastCallStartedTimestamp_
private com.google.protobuf.Timestamp lastCallStartedTimestamp_ -
lastCallStartedTimestampBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder, lastCallStartedTimestampBuilder_com.google.protobuf.TimestampOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ChannelData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
mergeFrom
public ChannelData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ChannelData.Builder>
- Throws:
IOException
-
hasState
public boolean hasState()The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
- Specified by:
hasState
in interfaceChannelDataOrBuilder
- Returns:
- Whether the state field is set.
-
getState
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
- Specified by:
getState
in interfaceChannelDataOrBuilder
- Returns:
- The state.
-
setState
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
setState
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
mergeState
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
clearState
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getStateBuilder
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getStateOrBuilder
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
- Specified by:
getStateOrBuilder
in interfaceChannelDataOrBuilder
-
getStateFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder, getStateFieldBuilder()ChannelConnectivityStateOrBuilder> The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getTarget
The target this channel originally tried to connect to. May be absent
string target = 2;
- Specified by:
getTarget
in interfaceChannelDataOrBuilder
- Returns:
- The target.
-
getTargetBytes
public com.google.protobuf.ByteString getTargetBytes()The target this channel originally tried to connect to. May be absent
string target = 2;
- Specified by:
getTargetBytes
in interfaceChannelDataOrBuilder
- Returns:
- The bytes for target.
-
setTarget
The target this channel originally tried to connect to. May be absent
string target = 2;
- Parameters:
value
- The target to set.- Returns:
- This builder for chaining.
-
clearTarget
The target this channel originally tried to connect to. May be absent
string target = 2;
- Returns:
- This builder for chaining.
-
setTargetBytes
The target this channel originally tried to connect to. May be absent
string target = 2;
- Parameters:
value
- The bytes for target to set.- Returns:
- This builder for chaining.
-
hasTrace
public boolean hasTrace()A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
- Specified by:
hasTrace
in interfaceChannelDataOrBuilder
- Returns:
- Whether the trace field is set.
-
getTrace
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
- Specified by:
getTrace
in interfaceChannelDataOrBuilder
- Returns:
- The trace.
-
setTrace
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
setTrace
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
mergeTrace
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
clearTrace
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
getTraceBuilder
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
getTraceOrBuilder
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
- Specified by:
getTraceOrBuilder
in interfaceChannelDataOrBuilder
-
getTraceFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder, getTraceFieldBuilder()ChannelTraceOrBuilder> A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
getCallsStarted
public long getCallsStarted()The number of calls started on the channel
int64 calls_started = 4;
- Specified by:
getCallsStarted
in interfaceChannelDataOrBuilder
- Returns:
- The callsStarted.
-
setCallsStarted
The number of calls started on the channel
int64 calls_started = 4;
- Parameters:
value
- The callsStarted to set.- Returns:
- This builder for chaining.
-
clearCallsStarted
The number of calls started on the channel
int64 calls_started = 4;
- Returns:
- This builder for chaining.
-
getCallsSucceeded
public long getCallsSucceeded()The number of calls that have completed with an OK status
int64 calls_succeeded = 5;
- Specified by:
getCallsSucceeded
in interfaceChannelDataOrBuilder
- Returns:
- The callsSucceeded.
-
setCallsSucceeded
The number of calls that have completed with an OK status
int64 calls_succeeded = 5;
- Parameters:
value
- The callsSucceeded to set.- Returns:
- This builder for chaining.
-
clearCallsSucceeded
The number of calls that have completed with an OK status
int64 calls_succeeded = 5;
- Returns:
- This builder for chaining.
-
getCallsFailed
public long getCallsFailed()The number of calls that have completed with a non-OK status
int64 calls_failed = 6;
- Specified by:
getCallsFailed
in interfaceChannelDataOrBuilder
- Returns:
- The callsFailed.
-
setCallsFailed
The number of calls that have completed with a non-OK status
int64 calls_failed = 6;
- Parameters:
value
- The callsFailed to set.- Returns:
- This builder for chaining.
-
clearCallsFailed
The number of calls that have completed with a non-OK status
int64 calls_failed = 6;
- Returns:
- This builder for chaining.
-
hasLastCallStartedTimestamp
public boolean hasLastCallStartedTimestamp()The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
- Specified by:
hasLastCallStartedTimestamp
in interfaceChannelDataOrBuilder
- Returns:
- Whether the lastCallStartedTimestamp field is set.
-
getLastCallStartedTimestamp
public com.google.protobuf.Timestamp getLastCallStartedTimestamp()The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
- Specified by:
getLastCallStartedTimestamp
in interfaceChannelDataOrBuilder
- Returns:
- The lastCallStartedTimestamp.
-
setLastCallStartedTimestamp
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
setLastCallStartedTimestamp
public ChannelData.Builder setLastCallStartedTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
mergeLastCallStartedTimestamp
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
clearLastCallStartedTimestamp
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
getLastCallStartedTimestampBuilder
public com.google.protobuf.Timestamp.Builder getLastCallStartedTimestampBuilder()The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
getLastCallStartedTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastCallStartedTimestampOrBuilder()The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
- Specified by:
getLastCallStartedTimestampOrBuilder
in interfaceChannelDataOrBuilder
-
getLastCallStartedTimestampFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder, getLastCallStartedTimestampFieldBuilder()com.google.protobuf.TimestampOrBuilder> The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-