Class ComputeMessageStatsResponse.Builder (1.14.8)

public static final class ComputeMessageStatsResponse.Builder extends GeneratedMessageV3.Builder<ComputeMessageStatsResponse.Builder> implements ComputeMessageStatsResponseOrBuilder

Response containing stats for messages in the requested topic and partition.

Protobuf type google.cloud.pubsublite.v1.ComputeMessageStatsResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeMessageStatsResponse build()
Returns
Type Description
ComputeMessageStatsResponse

buildPartial()

public ComputeMessageStatsResponse buildPartial()
Returns
Type Description
ComputeMessageStatsResponse

clear()

public ComputeMessageStatsResponse.Builder clear()
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeMessageStatsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

clearMessageBytes()

public ComputeMessageStatsResponse.Builder clearMessageBytes()

The number of quota bytes accounted to these messages.

int64 message_bytes = 2;

Returns
Type Description
ComputeMessageStatsResponse.Builder

This builder for chaining.

clearMessageCount()

public ComputeMessageStatsResponse.Builder clearMessageCount()

The count of messages.

int64 message_count = 1;

Returns
Type Description
ComputeMessageStatsResponse.Builder

This builder for chaining.

clearMinimumEventTime()

public ComputeMessageStatsResponse.Builder clearMinimumEventTime()

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Returns
Type Description
ComputeMessageStatsResponse.Builder

clearMinimumPublishTime()

public ComputeMessageStatsResponse.Builder clearMinimumPublishTime()

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Returns
Type Description
ComputeMessageStatsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeMessageStatsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

clone()

public ComputeMessageStatsResponse.Builder clone()
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

getDefaultInstanceForType()

public ComputeMessageStatsResponse getDefaultInstanceForType()
Returns
Type Description
ComputeMessageStatsResponse

getDescriptorForType()

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

getMessageBytes()

public long getMessageBytes()

The number of quota bytes accounted to these messages.

int64 message_bytes = 2;

Returns
Type Description
long

The messageBytes.

getMessageCount()

public long getMessageCount()

The count of messages.

int64 message_count = 1;

Returns
Type Description
long

The messageCount.

getMinimumEventTime()

public Timestamp getMinimumEventTime()

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Returns
Type Description
Timestamp

The minimumEventTime.

getMinimumEventTimeBuilder()

public Timestamp.Builder getMinimumEventTimeBuilder()

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Returns
Type Description
Builder

getMinimumEventTimeOrBuilder()

public TimestampOrBuilder getMinimumEventTimeOrBuilder()

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Returns
Type Description
TimestampOrBuilder

getMinimumPublishTime()

public Timestamp getMinimumPublishTime()

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Returns
Type Description
Timestamp

The minimumPublishTime.

getMinimumPublishTimeBuilder()

public Timestamp.Builder getMinimumPublishTimeBuilder()

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Returns
Type Description
Builder

getMinimumPublishTimeOrBuilder()

public TimestampOrBuilder getMinimumPublishTimeOrBuilder()

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Returns
Type Description
TimestampOrBuilder

hasMinimumEventTime()

public boolean hasMinimumEventTime()

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Returns
Type Description
boolean

Whether the minimumEventTime field is set.

hasMinimumPublishTime()

public boolean hasMinimumPublishTime()

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Returns
Type Description
boolean

Whether the minimumPublishTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeMessageStatsResponse other)

public ComputeMessageStatsResponse.Builder mergeFrom(ComputeMessageStatsResponse other)
Parameter
Name Description
other ComputeMessageStatsResponse
Returns
Type Description
ComputeMessageStatsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ComputeMessageStatsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

mergeMinimumEventTime(Timestamp value)

public ComputeMessageStatsResponse.Builder mergeMinimumEventTime(Timestamp value)

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ComputeMessageStatsResponse.Builder

mergeMinimumPublishTime(Timestamp value)

public ComputeMessageStatsResponse.Builder mergeMinimumPublishTime(Timestamp value)

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
ComputeMessageStatsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeMessageStatsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessageBytes(long value)

public ComputeMessageStatsResponse.Builder setMessageBytes(long value)

The number of quota bytes accounted to these messages.

int64 message_bytes = 2;

Parameter
Name Description
value long

The messageBytes to set.

Returns
Type Description
ComputeMessageStatsResponse.Builder

This builder for chaining.

setMessageCount(long value)

public ComputeMessageStatsResponse.Builder setMessageCount(long value)

The count of messages.

int64 message_count = 1;

Parameter
Name Description
value long

The messageCount to set.

Returns
Type Description
ComputeMessageStatsResponse.Builder

This builder for chaining.

setMinimumEventTime(Timestamp value)

public ComputeMessageStatsResponse.Builder setMinimumEventTime(Timestamp value)

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ComputeMessageStatsResponse.Builder

setMinimumEventTime(Timestamp.Builder builderForValue)

public ComputeMessageStatsResponse.Builder setMinimumEventTime(Timestamp.Builder builderForValue)

The minimum event timestamp across these messages. For the purposes of this computation, if a message does not have an event time, we use the publish time. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_event_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ComputeMessageStatsResponse.Builder

setMinimumPublishTime(Timestamp value)

public ComputeMessageStatsResponse.Builder setMinimumPublishTime(Timestamp value)

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
ComputeMessageStatsResponse.Builder

setMinimumPublishTime(Timestamp.Builder builderForValue)

public ComputeMessageStatsResponse.Builder setMinimumPublishTime(Timestamp.Builder builderForValue)

The minimum publish timestamp across these messages. Note that publish timestamps within a partition are not guaranteed to be non-decreasing. The timestamp will be unset if there are no messages.

.google.protobuf.Timestamp minimum_publish_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ComputeMessageStatsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeMessageStatsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides