Class Span.TimeEvent.MessageEvent.Builder (2.48.0)

public static final class Span.TimeEvent.MessageEvent.Builder extends GeneratedMessageV3.Builder<Span.TimeEvent.MessageEvent.Builder> implements Span.TimeEvent.MessageEventOrBuilder

An event describing a message sent/received between Spans.

Protobuf type google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.MessageEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

build()

public Span.TimeEvent.MessageEvent build()
Returns
Type Description
Span.TimeEvent.MessageEvent

buildPartial()

public Span.TimeEvent.MessageEvent buildPartial()
Returns
Type Description
Span.TimeEvent.MessageEvent

clear()

public Span.TimeEvent.MessageEvent.Builder clear()
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

clearCompressedSizeBytes()

public Span.TimeEvent.MessageEvent.Builder clearCompressedSizeBytes()

The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.

int64 compressed_size_bytes = 4;

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Span.TimeEvent.MessageEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

clearId()

public Span.TimeEvent.MessageEvent.Builder clearId()

An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents.

int64 id = 2;

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Span.TimeEvent.MessageEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

clearType()

public Span.TimeEvent.MessageEvent.Builder clearType()

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clearUncompressedSizeBytes()

public Span.TimeEvent.MessageEvent.Builder clearUncompressedSizeBytes()

The number of uncompressed bytes sent or received.

int64 uncompressed_size_bytes = 3;

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clone()

public Span.TimeEvent.MessageEvent.Builder clone()
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

getCompressedSizeBytes()

public long getCompressedSizeBytes()

The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.

int64 compressed_size_bytes = 4;

Returns
Type Description
long

The compressedSizeBytes.

getDefaultInstanceForType()

public Span.TimeEvent.MessageEvent getDefaultInstanceForType()
Returns
Type Description
Span.TimeEvent.MessageEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public long getId()

An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents.

int64 id = 2;

Returns
Type Description
long

The id.

getType()

public Span.TimeEvent.MessageEvent.Type getType()

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Returns
Type Description
Span.TimeEvent.MessageEvent.Type

The type.

getTypeValue()

public int getTypeValue()

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUncompressedSizeBytes()

public long getUncompressedSizeBytes()

The number of uncompressed bytes sent or received.

int64 uncompressed_size_bytes = 3;

Returns
Type Description
long

The uncompressedSizeBytes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Span.TimeEvent.MessageEvent other)

public Span.TimeEvent.MessageEvent.Builder mergeFrom(Span.TimeEvent.MessageEvent other)
Parameter
Name Description
other Span.TimeEvent.MessageEvent
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Span.TimeEvent.MessageEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Span.TimeEvent.MessageEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.MessageEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

setCompressedSizeBytes(long value)

public Span.TimeEvent.MessageEvent.Builder setCompressedSizeBytes(long value)

The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size.

int64 compressed_size_bytes = 4;

Parameter
Name Description
value long

The compressedSizeBytes to set.

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.MessageEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

setId(long value)

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.

int64 id = 2;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Span.TimeEvent.MessageEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides

setType(Span.TimeEvent.MessageEvent.Type value)

public Span.TimeEvent.MessageEvent.Builder setType(Span.TimeEvent.MessageEvent.Type value)

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Parameter
Name Description
value Span.TimeEvent.MessageEvent.Type

The type to set.

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

setTypeValue(int value)

public Span.TimeEvent.MessageEvent.Builder setTypeValue(int value)

Type of MessageEvent. Indicates whether the message was sent or received.

.google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

setUncompressedSizeBytes(long value)

public Span.TimeEvent.MessageEvent.Builder setUncompressedSizeBytes(long value)

The number of uncompressed bytes sent or received.

int64 uncompressed_size_bytes = 3;

Parameter
Name Description
value long

The uncompressedSizeBytes to set.

Returns
Type Description
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.MessageEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Span.TimeEvent.MessageEvent.Builder
Overrides