Package io.grpc.channelz.v1
Class ChannelTrace.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ChannelTrace.Builder>
-
- io.grpc.channelz.v1.ChannelTrace.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ChannelTraceOrBuilder
,Cloneable
- Enclosing class:
- ChannelTrace
public static final class ChannelTrace.Builder extends GeneratedMessageV3.Builder<ChannelTrace.Builder> implements ChannelTraceOrBuilder
ChannelTrace represents the recent events that have occurred on the channel.
Protobuf typegrpc.channelz.v1.ChannelTrace
-
-
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<ChannelTrace.Builder>
-
clear
public ChannelTrace.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
getDefaultInstanceForType
public ChannelTrace getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ChannelTrace build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ChannelTrace buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ChannelTrace.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
setField
public ChannelTrace.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
clearField
public ChannelTrace.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
clearOneof
public ChannelTrace.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
setRepeatedField
public ChannelTrace.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
addRepeatedField
public ChannelTrace.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
mergeFrom
public ChannelTrace.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ChannelTrace.Builder>
-
mergeFrom
public ChannelTrace.Builder mergeFrom(ChannelTrace other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
mergeFrom
public ChannelTrace.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<ChannelTrace.Builder>
- Throws:
IOException
-
getNumEventsLogged
public long getNumEventsLogged()
Number of events ever logged in this tracing object. This can differ from events.size() because events can be overwritten or garbage collected by implementations.
int64 num_events_logged = 1;
- Specified by:
getNumEventsLogged
in interfaceChannelTraceOrBuilder
- Returns:
- The numEventsLogged.
-
setNumEventsLogged
public ChannelTrace.Builder setNumEventsLogged(long value)
Number of events ever logged in this tracing object. This can differ from events.size() because events can be overwritten or garbage collected by implementations.
int64 num_events_logged = 1;
- Parameters:
value
- The numEventsLogged to set.- Returns:
- This builder for chaining.
-
clearNumEventsLogged
public ChannelTrace.Builder clearNumEventsLogged()
Number of events ever logged in this tracing object. This can differ from events.size() because events can be overwritten or garbage collected by implementations.
int64 num_events_logged = 1;
- Returns:
- This builder for chaining.
-
hasCreationTimestamp
public boolean hasCreationTimestamp()
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
- Specified by:
hasCreationTimestamp
in interfaceChannelTraceOrBuilder
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
public Timestamp getCreationTimestamp()
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
- Specified by:
getCreationTimestamp
in interfaceChannelTraceOrBuilder
- Returns:
- The creationTimestamp.
-
setCreationTimestamp
public ChannelTrace.Builder setCreationTimestamp(Timestamp value)
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
-
setCreationTimestamp
public ChannelTrace.Builder setCreationTimestamp(Timestamp.Builder builderForValue)
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
-
mergeCreationTimestamp
public ChannelTrace.Builder mergeCreationTimestamp(Timestamp value)
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
-
clearCreationTimestamp
public ChannelTrace.Builder clearCreationTimestamp()
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
-
getCreationTimestampBuilder
public Timestamp.Builder getCreationTimestampBuilder()
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
-
getCreationTimestampOrBuilder
public TimestampOrBuilder getCreationTimestampOrBuilder()
Time that this channel was created.
.google.protobuf.Timestamp creation_timestamp = 2;
- Specified by:
getCreationTimestampOrBuilder
in interfaceChannelTraceOrBuilder
-
getEventsList
public List<ChannelTraceEvent> getEventsList()
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
- Specified by:
getEventsList
in interfaceChannelTraceOrBuilder
-
getEventsCount
public int getEventsCount()
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
- Specified by:
getEventsCount
in interfaceChannelTraceOrBuilder
-
getEvents
public ChannelTraceEvent getEvents(int index)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
- Specified by:
getEvents
in interfaceChannelTraceOrBuilder
-
setEvents
public ChannelTrace.Builder setEvents(int index, ChannelTraceEvent value)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
setEvents
public ChannelTrace.Builder setEvents(int index, ChannelTraceEvent.Builder builderForValue)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
addEvents
public ChannelTrace.Builder addEvents(ChannelTraceEvent value)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
addEvents
public ChannelTrace.Builder addEvents(int index, ChannelTraceEvent value)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
addEvents
public ChannelTrace.Builder addEvents(ChannelTraceEvent.Builder builderForValue)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
addEvents
public ChannelTrace.Builder addEvents(int index, ChannelTraceEvent.Builder builderForValue)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
addAllEvents
public ChannelTrace.Builder addAllEvents(Iterable<? extends ChannelTraceEvent> values)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
clearEvents
public ChannelTrace.Builder clearEvents()
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
removeEvents
public ChannelTrace.Builder removeEvents(int index)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
getEventsBuilder
public ChannelTraceEvent.Builder getEventsBuilder(int index)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
getEventsOrBuilder
public ChannelTraceEventOrBuilder getEventsOrBuilder(int index)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
- Specified by:
getEventsOrBuilder
in interfaceChannelTraceOrBuilder
-
getEventsOrBuilderList
public List<? extends ChannelTraceEventOrBuilder> getEventsOrBuilderList()
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
- Specified by:
getEventsOrBuilderList
in interfaceChannelTraceOrBuilder
-
addEventsBuilder
public ChannelTraceEvent.Builder addEventsBuilder()
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
addEventsBuilder
public ChannelTraceEvent.Builder addEventsBuilder(int index)
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
getEventsBuilderList
public List<ChannelTraceEvent.Builder> getEventsBuilderList()
List of events that have occurred on this channel.
repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
-
setUnknownFields
public final ChannelTrace.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
mergeUnknownFields
public final ChannelTrace.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ChannelTrace.Builder>
-
-