Package io.grpc.channelz.v1
Class ChannelData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.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 typegrpc.channelz.v1.ChannelData
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private longcallsFailed_private longcallsStarted_private longcallsSucceeded_private com.google.protobuf.TimestamplastCallStartedTimestamp_private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder>lastCallStartedTimestampBuilder_private ChannelConnectivityStatestate_private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder,ChannelConnectivityStateOrBuilder>stateBuilder_private java.lang.Objecttarget_private ChannelTracetrace_private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder,ChannelTraceOrBuilder>traceBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelDatabuild()ChannelDatabuildPartial()private voidbuildPartial0(ChannelData result)ChannelData.Builderclear()ChannelData.BuilderclearCallsFailed()The number of calls that have completed with a non-OK statusChannelData.BuilderclearCallsStarted()The number of calls started on the channelChannelData.BuilderclearCallsSucceeded()The number of calls that have completed with an OK statusChannelData.BuilderclearLastCallStartedTimestamp()The last time a call was started on the channel.ChannelData.BuilderclearState()The connectivity state of the channel or subchannel.ChannelData.BuilderclearTarget()The target this channel originally tried to connect to.ChannelData.BuilderclearTrace()A trace of recent events on the channel.longgetCallsFailed()The number of calls that have completed with a non-OK statuslonggetCallsStarted()The number of calls started on the channellonggetCallsSucceeded()The number of calls that have completed with an OK statusChannelDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetLastCallStartedTimestamp()The last time a call was started on the channel.com.google.protobuf.Timestamp.BuildergetLastCallStartedTimestampBuilder()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>getLastCallStartedTimestampFieldBuilder()The last time a call was started on the channel.com.google.protobuf.TimestampOrBuildergetLastCallStartedTimestampOrBuilder()The last time a call was started on the channel.ChannelConnectivityStategetState()The connectivity state of the channel or subchannel.ChannelConnectivityState.BuildergetStateBuilder()The connectivity state of the channel or subchannel.private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder,ChannelConnectivityStateOrBuilder>getStateFieldBuilder()The connectivity state of the channel or subchannel.ChannelConnectivityStateOrBuildergetStateOrBuilder()The connectivity state of the channel or subchannel.java.lang.StringgetTarget()The target this channel originally tried to connect to.com.google.protobuf.ByteStringgetTargetBytes()The target this channel originally tried to connect to.ChannelTracegetTrace()A trace of recent events on the channel.ChannelTrace.BuildergetTraceBuilder()A trace of recent events on the channel.private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder,ChannelTraceOrBuilder>getTraceFieldBuilder()A trace of recent events on the channel.ChannelTraceOrBuildergetTraceOrBuilder()A trace of recent events on the channel.booleanhasLastCallStartedTimestamp()The last time a call was started on the channel.booleanhasState()The connectivity state of the channel or subchannel.booleanhasTrace()A trace of recent events on the channel.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()private voidmaybeForceBuilderInitialization()ChannelData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ChannelData.BuildermergeFrom(com.google.protobuf.Message other)ChannelData.BuildermergeFrom(ChannelData other)ChannelData.BuildermergeLastCallStartedTimestamp(com.google.protobuf.Timestamp value)The last time a call was started on the channel.ChannelData.BuildermergeState(ChannelConnectivityState value)The connectivity state of the channel or subchannel.ChannelData.BuildermergeTrace(ChannelTrace value)A trace of recent events on the channel.ChannelData.BuildersetCallsFailed(long value)The number of calls that have completed with a non-OK statusChannelData.BuildersetCallsStarted(long value)The number of calls started on the channelChannelData.BuildersetCallsSucceeded(long value)The number of calls that have completed with an OK statusChannelData.BuildersetLastCallStartedTimestamp(com.google.protobuf.Timestamp value)The last time a call was started on the channel.ChannelData.BuildersetLastCallStartedTimestamp(com.google.protobuf.Timestamp.Builder builderForValue)The last time a call was started on the channel.ChannelData.BuildersetState(ChannelConnectivityState value)The connectivity state of the channel or subchannel.ChannelData.BuildersetState(ChannelConnectivityState.Builder builderForValue)The connectivity state of the channel or subchannel.ChannelData.BuildersetTarget(java.lang.String value)The target this channel originally tried to connect to.ChannelData.BuildersetTargetBytes(com.google.protobuf.ByteString value)The target this channel originally tried to connect to.ChannelData.BuildersetTrace(ChannelTrace value)A trace of recent events on the channel.ChannelData.BuildersetTrace(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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
state_
private ChannelConnectivityState state_
-
stateBuilder_
private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder,ChannelConnectivityStateOrBuilder> stateBuilder_
-
target_
private java.lang.Object target_
-
trace_
private ChannelTrace trace_
-
traceBuilder_
private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder,ChannelTraceOrBuilder> traceBuilder_
-
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,com.google.protobuf.TimestampOrBuilder> lastCallStartedTimestampBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public ChannelData.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
getDefaultInstanceForType
public ChannelData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ChannelData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ChannelData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(ChannelData result)
-
mergeFrom
public ChannelData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChannelData.Builder>
-
mergeFrom
public ChannelData.Builder mergeFrom(ChannelData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ChannelData.Builder>
-
mergeFrom
public ChannelData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChannelData.Builder>- Throws:
java.io.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:
hasStatein interfaceChannelDataOrBuilder- Returns:
- Whether the state field is set.
-
getState
public ChannelConnectivityState getState()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;- Specified by:
getStatein interfaceChannelDataOrBuilder- Returns:
- The state.
-
setState
public ChannelData.Builder setState(ChannelConnectivityState value)
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
setState
public ChannelData.Builder setState(ChannelConnectivityState.Builder builderForValue)
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
mergeState
public ChannelData.Builder mergeState(ChannelConnectivityState value)
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
clearState
public ChannelData.Builder clearState()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getStateBuilder
public ChannelConnectivityState.Builder getStateBuilder()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getStateOrBuilder
public ChannelConnectivityStateOrBuilder getStateOrBuilder()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;- Specified by:
getStateOrBuilderin interfaceChannelDataOrBuilder
-
getStateFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ChannelConnectivityState,ChannelConnectivityState.Builder,ChannelConnectivityStateOrBuilder> getStateFieldBuilder()
The connectivity state of the channel or subchannel. Implementations should always set this.
.grpc.channelz.v1.ChannelConnectivityState state = 1;
-
getTarget
public java.lang.String getTarget()
The target this channel originally tried to connect to. May be absent
string target = 2;- Specified by:
getTargetin 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:
getTargetBytesin interfaceChannelDataOrBuilder- Returns:
- The bytes for target.
-
setTarget
public ChannelData.Builder setTarget(java.lang.String value)
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
public ChannelData.Builder clearTarget()
The target this channel originally tried to connect to. May be absent
string target = 2;- Returns:
- This builder for chaining.
-
setTargetBytes
public ChannelData.Builder setTargetBytes(com.google.protobuf.ByteString value)
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:
hasTracein interfaceChannelDataOrBuilder- Returns:
- Whether the trace field is set.
-
getTrace
public ChannelTrace getTrace()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;- Specified by:
getTracein interfaceChannelDataOrBuilder- Returns:
- The trace.
-
setTrace
public ChannelData.Builder setTrace(ChannelTrace value)
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
setTrace
public ChannelData.Builder setTrace(ChannelTrace.Builder builderForValue)
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
mergeTrace
public ChannelData.Builder mergeTrace(ChannelTrace value)
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
clearTrace
public ChannelData.Builder clearTrace()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
getTraceBuilder
public ChannelTrace.Builder getTraceBuilder()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;
-
getTraceOrBuilder
public ChannelTraceOrBuilder getTraceOrBuilder()
A trace of recent events on the channel. May be absent.
.grpc.channelz.v1.ChannelTrace trace = 3;- Specified by:
getTraceOrBuilderin interfaceChannelDataOrBuilder
-
getTraceFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ChannelTrace,ChannelTrace.Builder,ChannelTraceOrBuilder> getTraceFieldBuilder()
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:
getCallsStartedin interfaceChannelDataOrBuilder- Returns:
- The callsStarted.
-
setCallsStarted
public ChannelData.Builder setCallsStarted(long value)
The number of calls started on the channel
int64 calls_started = 4;- Parameters:
value- The callsStarted to set.- Returns:
- This builder for chaining.
-
clearCallsStarted
public ChannelData.Builder 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:
getCallsSucceededin interfaceChannelDataOrBuilder- Returns:
- The callsSucceeded.
-
setCallsSucceeded
public ChannelData.Builder setCallsSucceeded(long value)
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
public ChannelData.Builder 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:
getCallsFailedin interfaceChannelDataOrBuilder- Returns:
- The callsFailed.
-
setCallsFailed
public ChannelData.Builder setCallsFailed(long value)
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
public ChannelData.Builder 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:
hasLastCallStartedTimestampin 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:
getLastCallStartedTimestampin interfaceChannelDataOrBuilder- Returns:
- The lastCallStartedTimestamp.
-
setLastCallStartedTimestamp
public ChannelData.Builder setLastCallStartedTimestamp(com.google.protobuf.Timestamp value)
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
public ChannelData.Builder mergeLastCallStartedTimestamp(com.google.protobuf.Timestamp value)
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
clearLastCallStartedTimestamp
public ChannelData.Builder 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:
getLastCallStartedTimestampOrBuilderin interfaceChannelDataOrBuilder
-
getLastCallStartedTimestampFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> getLastCallStartedTimestampFieldBuilder()
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
-