Class Span.TimeEvent.MessageEvent.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Span.TimeEvent.MessageEvent.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.GeneratedMessageV3.Builder<Span.TimeEvent.MessageEvent.Builder>
      • getDefaultInstanceForType

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

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

        public Span.TimeEvent.MessageEvent buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Span.TimeEvent.MessageEvent.Builder>
      • mergeFrom

        public Span.TimeEvent.MessageEvent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws 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<Span.TimeEvent.MessageEvent.Builder>
        Throws:
        IOException
      • getTypeValue

        public int getTypeValue()
         The type of MessageEvent. Indicates whether the message was sent or
         received.
         
        .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
        Specified by:
        getTypeValue in interface Span.TimeEvent.MessageEventOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public Span.TimeEvent.MessageEvent.Builder setTypeValue​(int value)
         The type of MessageEvent. Indicates whether the message was sent or
         received.
         
        .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Span.TimeEvent.MessageEvent.Builder clearType()
         The type of MessageEvent. Indicates whether the message was sent or
         received.
         
        .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
        Returns:
        This builder for chaining.
      • getId

        public long getId()
         An identifier for the MessageEvent's message that can be used to match
         SENT and RECEIVED MessageEvents. For example, this field could
         represent a sequence ID for a streaming RPC. It is recommended to be
         unique within a Span.
         
        uint64 id = 2;
        Specified by:
        getId in interface Span.TimeEvent.MessageEventOrBuilder
        Returns:
        The id.
      • setId

        public Span.TimeEvent.MessageEvent.Builder setId​(long value)
         An identifier for the MessageEvent's message that can be used to match
         SENT and RECEIVED MessageEvents. For example, this field could
         represent a sequence ID for a streaming RPC. It is recommended to be
         unique within a Span.
         
        uint64 id = 2;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Span.TimeEvent.MessageEvent.Builder clearId()
         An identifier for the MessageEvent's message that can be used to match
         SENT and RECEIVED MessageEvents. For example, this field could
         represent a sequence ID for a streaming RPC. It is recommended to be
         unique within a Span.
         
        uint64 id = 2;
        Returns:
        This builder for chaining.
      • setUncompressedSize

        public Span.TimeEvent.MessageEvent.Builder setUncompressedSize​(long value)
         The number of uncompressed bytes sent or received.
         
        uint64 uncompressed_size = 3;
        Parameters:
        value - The uncompressedSize to set.
        Returns:
        This builder for chaining.
      • clearUncompressedSize

        public Span.TimeEvent.MessageEvent.Builder clearUncompressedSize()
         The number of uncompressed bytes sent or received.
         
        uint64 uncompressed_size = 3;
        Returns:
        This builder for chaining.
      • getCompressedSize

        public long getCompressedSize()
         The number of compressed bytes sent or received. If zero, assumed to
         be the same size as uncompressed.
         
        uint64 compressed_size = 4;
        Specified by:
        getCompressedSize in interface Span.TimeEvent.MessageEventOrBuilder
        Returns:
        The compressedSize.
      • setCompressedSize

        public Span.TimeEvent.MessageEvent.Builder setCompressedSize​(long value)
         The number of compressed bytes sent or received. If zero, assumed to
         be the same size as uncompressed.
         
        uint64 compressed_size = 4;
        Parameters:
        value - The compressedSize to set.
        Returns:
        This builder for chaining.
      • clearCompressedSize

        public Span.TimeEvent.MessageEvent.Builder clearCompressedSize()
         The number of compressed bytes sent or received. If zero, assumed to
         be the same size as uncompressed.
         
        uint64 compressed_size = 4;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final Span.TimeEvent.MessageEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Span.TimeEvent.MessageEvent.Builder>