Class ChannelTrace.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ChannelTraceOrBuilder, java.lang.Cloneable
    Enclosing class:
    ChannelTrace

    public static final class ChannelTrace.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ChannelTrace.Builder>
    implements ChannelTraceOrBuilder
     ChannelTrace represents the recent events that have occurred on the channel.
     
    Protobuf type grpc.channelz.v1.ChannelTrace
    • Field Detail

      • bitField0_

        private int bitField0_
      • numEventsLogged_

        private long numEventsLogged_
      • creationTimestamp_

        private com.google.protobuf.Timestamp creationTimestamp_
      • creationTimestampBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> creationTimestampBuilder_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ChannelTrace.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public ChannelTrace.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<ChannelTrace.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ChannelTrace.Builder>
      • getDefaultInstanceForType

        public ChannelTrace getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ChannelTrace build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ChannelTrace buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(ChannelTrace result)
      • buildPartial0

        private void buildPartial0​(ChannelTrace result)
      • mergeFrom

        public ChannelTrace.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelTrace.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ChannelTrace.Builder>
      • mergeFrom

        public ChannelTrace.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelTrace.Builder>
        Throws:
        java.io.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 interface ChannelTraceOrBuilder
        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 interface ChannelTraceOrBuilder
        Returns:
        Whether the creationTimestamp field is set.
      • getCreationTimestamp

        public com.google.protobuf.Timestamp getCreationTimestamp()
         Time that this channel was created.
         
        .google.protobuf.Timestamp creation_timestamp = 2;
        Specified by:
        getCreationTimestamp in interface ChannelTraceOrBuilder
        Returns:
        The creationTimestamp.
      • setCreationTimestamp

        public ChannelTrace.Builder setCreationTimestamp​(com.google.protobuf.Timestamp value)
         Time that this channel was created.
         
        .google.protobuf.Timestamp creation_timestamp = 2;
      • setCreationTimestamp

        public ChannelTrace.Builder setCreationTimestamp​(com.google.protobuf.Timestamp.Builder builderForValue)
         Time that this channel was created.
         
        .google.protobuf.Timestamp creation_timestamp = 2;
      • mergeCreationTimestamp

        public ChannelTrace.Builder mergeCreationTimestamp​(com.google.protobuf.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 com.google.protobuf.Timestamp.Builder getCreationTimestampBuilder()
         Time that this channel was created.
         
        .google.protobuf.Timestamp creation_timestamp = 2;
      • getCreationTimestampOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreationTimestampOrBuilder()
         Time that this channel was created.
         
        .google.protobuf.Timestamp creation_timestamp = 2;
        Specified by:
        getCreationTimestampOrBuilder in interface ChannelTraceOrBuilder
      • getCreationTimestampFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> getCreationTimestampFieldBuilder()
         Time that this channel was created.
         
        .google.protobuf.Timestamp creation_timestamp = 2;
      • ensureEventsIsMutable

        private void ensureEventsIsMutable()
      • getEventsCount

        public int getEventsCount()
         List of events that have occurred on this channel.
         
        repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;
        Specified by:
        getEventsCount in interface ChannelTraceOrBuilder
      • 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;
      • 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;
      • addAllEvents

        public ChannelTrace.Builder addAllEvents​(java.lang.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;
      • 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 java.util.List<ChannelTraceEvent.Builder> getEventsBuilderList()
         List of events that have occurred on this channel.
         
        repeated .grpc.channelz.v1.ChannelTraceEvent events = 3;