Package io.grpc.channelz.v1
Class ChannelTraceEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
- io.grpc.channelz.v1.ChannelTraceEvent.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ChannelTraceEventOrBuilder
,Cloneable
- Enclosing class:
- ChannelTraceEvent
public static final class ChannelTraceEvent.Builder extends GeneratedMessageV3.Builder<ChannelTraceEvent.Builder> implements ChannelTraceEventOrBuilder
A trace event is an interesting thing that happened to a channel or subchannel, such as creation, address resolution, subchannel creation, etc.
Protobuf typegrpc.channelz.v1.ChannelTraceEvent
-
-
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<ChannelTraceEvent.Builder>
-
clear
public ChannelTraceEvent.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
getDefaultInstanceForType
public ChannelTraceEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ChannelTraceEvent build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ChannelTraceEvent buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ChannelTraceEvent.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
setField
public ChannelTraceEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
clearField
public ChannelTraceEvent.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
clearOneof
public ChannelTraceEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
setRepeatedField
public ChannelTraceEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
addRepeatedField
public ChannelTraceEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
mergeFrom
public ChannelTraceEvent.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ChannelTraceEvent.Builder>
-
mergeFrom
public ChannelTraceEvent.Builder mergeFrom(ChannelTraceEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
mergeFrom
public ChannelTraceEvent.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<ChannelTraceEvent.Builder>
- Throws:
IOException
-
getChildRefCase
public ChannelTraceEvent.ChildRefCase getChildRefCase()
- Specified by:
getChildRefCase
in interfaceChannelTraceEventOrBuilder
-
clearChildRef
public ChannelTraceEvent.Builder clearChildRef()
-
getDescription
public String getDescription()
High level description of the event.
string description = 1;
- Specified by:
getDescription
in interfaceChannelTraceEventOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public ByteString getDescriptionBytes()
High level description of the event.
string description = 1;
- Specified by:
getDescriptionBytes
in interfaceChannelTraceEventOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public ChannelTraceEvent.Builder setDescription(String value)
High level description of the event.
string description = 1;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public ChannelTraceEvent.Builder clearDescription()
High level description of the event.
string description = 1;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public ChannelTraceEvent.Builder setDescriptionBytes(ByteString value)
High level description of the event.
string description = 1;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getSeverityValue
public int getSeverityValue()
the severity of the trace event
.grpc.channelz.v1.ChannelTraceEvent.Severity severity = 2;
- Specified by:
getSeverityValue
in interfaceChannelTraceEventOrBuilder
- Returns:
- The enum numeric value on the wire for severity.
-
setSeverityValue
public ChannelTraceEvent.Builder setSeverityValue(int value)
the severity of the trace event
.grpc.channelz.v1.ChannelTraceEvent.Severity severity = 2;
- Parameters:
value
- The enum numeric value on the wire for severity to set.- Returns:
- This builder for chaining.
-
getSeverity
public ChannelTraceEvent.Severity getSeverity()
the severity of the trace event
.grpc.channelz.v1.ChannelTraceEvent.Severity severity = 2;
- Specified by:
getSeverity
in interfaceChannelTraceEventOrBuilder
- Returns:
- The severity.
-
setSeverity
public ChannelTraceEvent.Builder setSeverity(ChannelTraceEvent.Severity value)
the severity of the trace event
.grpc.channelz.v1.ChannelTraceEvent.Severity severity = 2;
- Parameters:
value
- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
public ChannelTraceEvent.Builder clearSeverity()
the severity of the trace event
.grpc.channelz.v1.ChannelTraceEvent.Severity severity = 2;
- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
- Specified by:
hasTimestamp
in interfaceChannelTraceEventOrBuilder
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public Timestamp getTimestamp()
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
- Specified by:
getTimestamp
in interfaceChannelTraceEventOrBuilder
- Returns:
- The timestamp.
-
setTimestamp
public ChannelTraceEvent.Builder setTimestamp(Timestamp value)
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
-
setTimestamp
public ChannelTraceEvent.Builder setTimestamp(Timestamp.Builder builderForValue)
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
-
mergeTimestamp
public ChannelTraceEvent.Builder mergeTimestamp(Timestamp value)
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
-
clearTimestamp
public ChannelTraceEvent.Builder clearTimestamp()
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
-
getTimestampBuilder
public Timestamp.Builder getTimestampBuilder()
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
-
getTimestampOrBuilder
public TimestampOrBuilder getTimestampOrBuilder()
When this event occurred.
.google.protobuf.Timestamp timestamp = 3;
- Specified by:
getTimestampOrBuilder
in interfaceChannelTraceEventOrBuilder
-
hasChannelRef
public boolean hasChannelRef()
.grpc.channelz.v1.ChannelRef channel_ref = 4;
- Specified by:
hasChannelRef
in interfaceChannelTraceEventOrBuilder
- Returns:
- Whether the channelRef field is set.
-
getChannelRef
public ChannelRef getChannelRef()
.grpc.channelz.v1.ChannelRef channel_ref = 4;
- Specified by:
getChannelRef
in interfaceChannelTraceEventOrBuilder
- Returns:
- The channelRef.
-
setChannelRef
public ChannelTraceEvent.Builder setChannelRef(ChannelRef value)
.grpc.channelz.v1.ChannelRef channel_ref = 4;
-
setChannelRef
public ChannelTraceEvent.Builder setChannelRef(ChannelRef.Builder builderForValue)
.grpc.channelz.v1.ChannelRef channel_ref = 4;
-
mergeChannelRef
public ChannelTraceEvent.Builder mergeChannelRef(ChannelRef value)
.grpc.channelz.v1.ChannelRef channel_ref = 4;
-
clearChannelRef
public ChannelTraceEvent.Builder clearChannelRef()
.grpc.channelz.v1.ChannelRef channel_ref = 4;
-
getChannelRefBuilder
public ChannelRef.Builder getChannelRefBuilder()
.grpc.channelz.v1.ChannelRef channel_ref = 4;
-
getChannelRefOrBuilder
public ChannelRefOrBuilder getChannelRefOrBuilder()
.grpc.channelz.v1.ChannelRef channel_ref = 4;
- Specified by:
getChannelRefOrBuilder
in interfaceChannelTraceEventOrBuilder
-
hasSubchannelRef
public boolean hasSubchannelRef()
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
- Specified by:
hasSubchannelRef
in interfaceChannelTraceEventOrBuilder
- Returns:
- Whether the subchannelRef field is set.
-
getSubchannelRef
public SubchannelRef getSubchannelRef()
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
- Specified by:
getSubchannelRef
in interfaceChannelTraceEventOrBuilder
- Returns:
- The subchannelRef.
-
setSubchannelRef
public ChannelTraceEvent.Builder setSubchannelRef(SubchannelRef value)
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
-
setSubchannelRef
public ChannelTraceEvent.Builder setSubchannelRef(SubchannelRef.Builder builderForValue)
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
-
mergeSubchannelRef
public ChannelTraceEvent.Builder mergeSubchannelRef(SubchannelRef value)
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
-
clearSubchannelRef
public ChannelTraceEvent.Builder clearSubchannelRef()
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
-
getSubchannelRefBuilder
public SubchannelRef.Builder getSubchannelRefBuilder()
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
-
getSubchannelRefOrBuilder
public SubchannelRefOrBuilder getSubchannelRefOrBuilder()
.grpc.channelz.v1.SubchannelRef subchannel_ref = 5;
- Specified by:
getSubchannelRefOrBuilder
in interfaceChannelTraceEventOrBuilder
-
setUnknownFields
public final ChannelTraceEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
mergeUnknownFields
public final ChannelTraceEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ChannelTraceEvent.Builder>
-
-