Class Span.TimeEvent.MessageEvent.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Span.TimeEvent.MessageEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder
Overrides

build()

public Span.TimeEvent.MessageEvent build()
Returns
TypeDescription
Span.TimeEvent.MessageEvent

buildPartial()

public Span.TimeEvent.MessageEvent buildPartial()
Returns
TypeDescription
Span.TimeEvent.MessageEvent

clear()

public Span.TimeEvent.MessageEvent.Builder clear()
Returns
TypeDescription
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
TypeDescription
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Span.TimeEvent.MessageEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Span.TimeEvent.MessageEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

clone()

public Span.TimeEvent.MessageEvent.Builder clone()
Returns
TypeDescription
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
TypeDescription
long

The compressedSizeBytes.

getDefaultInstanceForType()

public Span.TimeEvent.MessageEvent getDefaultInstanceForType()
Returns
TypeDescription
Span.TimeEvent.MessageEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The uncompressedSizeBytes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Span.TimeEvent.MessageEvent other)

public Span.TimeEvent.MessageEvent.Builder mergeFrom(Span.TimeEvent.MessageEvent other)
Parameter
NameDescription
otherSpan.TimeEvent.MessageEvent
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Span.TimeEvent.MessageEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Span.TimeEvent.MessageEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.MessageEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The compressedSizeBytes to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSpan.TimeEvent.MessageEvent.Type

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuelong

The uncompressedSizeBytes to set.

Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Span.TimeEvent.MessageEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Span.TimeEvent.MessageEvent.Builder
Overrides