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.GeneratedMessageV3.Builder<ChannelData.Builder>
-
- io.grpc.channelz.v1.ChannelData.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ChannelDataOrBuilder
,Cloneable
- Enclosing class:
- ChannelData
public static final class ChannelData.Builder extends GeneratedMessageV3.Builder<ChannelData.Builder> implements ChannelDataOrBuilder
Channel data is data related to a specific Channel or Subchannel.
Protobuf typegrpc.channelz.v1.ChannelData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelData.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ChannelData
build()
ChannelData
buildPartial()
ChannelData.Builder
clear()
ChannelData.Builder
clearCallsFailed()
The number of calls that have completed with a non-OK statusChannelData.Builder
clearCallsStarted()
The number of calls started on the channelChannelData.Builder
clearCallsSucceeded()
The number of calls that have completed with an OK statusChannelData.Builder
clearField(Descriptors.FieldDescriptor field)
ChannelData.Builder
clearLastCallStartedTimestamp()
The last time a call was started on the channel.ChannelData.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
ChannelData.Builder
clearState()
The connectivity state of the channel or subchannel.ChannelData.Builder
clearTarget()
The target this channel originally tried to connect to.ChannelData.Builder
clearTrace()
A trace of recent events on the channel.ChannelData.Builder
clone()
long
getCallsFailed()
The number of calls that have completed with a non-OK statuslong
getCallsStarted()
The number of calls started on the channellong
getCallsSucceeded()
The number of calls that have completed with an OK statusChannelData
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Timestamp
getLastCallStartedTimestamp()
The last time a call was started on the channel.Timestamp.Builder
getLastCallStartedTimestampBuilder()
The last time a call was started on the channel.TimestampOrBuilder
getLastCallStartedTimestampOrBuilder()
The last time a call was started on the channel.ChannelConnectivityState
getState()
The connectivity state of the channel or subchannel.ChannelConnectivityState.Builder
getStateBuilder()
The connectivity state of the channel or subchannel.ChannelConnectivityStateOrBuilder
getStateOrBuilder()
The connectivity state of the channel or subchannel.String
getTarget()
The target this channel originally tried to connect to.ByteString
getTargetBytes()
The target this channel originally tried to connect to.ChannelTrace
getTrace()
A trace of recent events on the channel.ChannelTrace.Builder
getTraceBuilder()
A trace of recent events on the channel.ChannelTraceOrBuilder
getTraceOrBuilder()
A trace of recent events on the channel.boolean
hasLastCallStartedTimestamp()
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 GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ChannelData.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ChannelData.Builder
mergeFrom(Message other)
ChannelData.Builder
mergeFrom(ChannelData other)
ChannelData.Builder
mergeLastCallStartedTimestamp(Timestamp value)
The last time a call was started on the channel.ChannelData.Builder
mergeState(ChannelConnectivityState value)
The connectivity state of the channel or subchannel.ChannelData.Builder
mergeTrace(ChannelTrace value)
A trace of recent events on the channel.ChannelData.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
ChannelData.Builder
setCallsFailed(long value)
The number of calls that have completed with a non-OK statusChannelData.Builder
setCallsStarted(long value)
The number of calls started on the channelChannelData.Builder
setCallsSucceeded(long value)
The number of calls that have completed with an OK statusChannelData.Builder
setField(Descriptors.FieldDescriptor field, Object value)
ChannelData.Builder
setLastCallStartedTimestamp(Timestamp value)
The last time a call was started on the channel.ChannelData.Builder
setLastCallStartedTimestamp(Timestamp.Builder builderForValue)
The last time a call was started on the channel.ChannelData.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ChannelData.Builder
setState(ChannelConnectivityState value)
The connectivity state of the channel or subchannel.ChannelData.Builder
setState(ChannelConnectivityState.Builder builderForValue)
The connectivity state of the channel or subchannel.ChannelData.Builder
setTarget(String value)
The target this channel originally tried to connect to.ChannelData.Builder
setTargetBytes(ByteString value)
The target this channel originally tried to connect to.ChannelData.Builder
setTrace(ChannelTrace value)
A trace of recent events on the channel.ChannelData.Builder
setTrace(ChannelTrace.Builder builderForValue)
A trace of recent events on the channel.ChannelData.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<ChannelData.Builder>
-
clear
public ChannelData.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
getDefaultInstanceForType
public ChannelData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ChannelData build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ChannelData buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ChannelData.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
setField
public ChannelData.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
clearField
public ChannelData.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
clearOneof
public ChannelData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
setRepeatedField
public ChannelData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
addRepeatedField
public ChannelData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
mergeFrom
public ChannelData.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ChannelData.Builder>
-
mergeFrom
public ChannelData.Builder mergeFrom(ChannelData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
mergeFrom
public ChannelData.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<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
public ChannelConnectivityState 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
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:
getStateOrBuilder
in interfaceChannelDataOrBuilder
-
getTarget
public String 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 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
public ChannelData.Builder setTarget(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(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:
hasTrace
in 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:
getTrace
in 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:
getTraceOrBuilder
in interfaceChannelDataOrBuilder
-
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
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:
getCallsSucceeded
in 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:
getCallsFailed
in 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:
hasLastCallStartedTimestamp
in interfaceChannelDataOrBuilder
- Returns:
- Whether the lastCallStartedTimestamp field is set.
-
getLastCallStartedTimestamp
public 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
public ChannelData.Builder setLastCallStartedTimestamp(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(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(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 Timestamp.Builder getLastCallStartedTimestampBuilder()
The last time a call was started on the channel.
.google.protobuf.Timestamp last_call_started_timestamp = 7;
-
getLastCallStartedTimestampOrBuilder
public 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
-
setUnknownFields
public final ChannelData.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
mergeUnknownFields
public final ChannelData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ChannelData.Builder>
-
-