Class ComputeMessageStatsResponse.Builder (1.12.22)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeMessageStatsResponse build()
Returns
TypeDescription
ComputeMessageStatsResponse

buildPartial()

public ComputeMessageStatsResponse buildPartial()
Returns
TypeDescription
ComputeMessageStatsResponse

clear()

public ComputeMessageStatsResponse.Builder clear()
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeMessageStatsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

clearMessageBytes()

public ComputeMessageStatsResponse.Builder clearMessageBytes()

The number of quota bytes accounted to these messages.

int64 message_bytes = 2;

Returns
TypeDescription
ComputeMessageStatsResponse.Builder

This builder for chaining.

clearMessageCount()

public ComputeMessageStatsResponse.Builder clearMessageCount()

The count of messages.

int64 message_count = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeMessageStatsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeMessageStatsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

clone()

public ComputeMessageStatsResponse.Builder clone()
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

getDefaultInstanceForType()

public ComputeMessageStatsResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeMessageStatsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessageBytes()

public long getMessageBytes()

The number of quota bytes accounted to these messages.

int64 message_bytes = 2;

Returns
TypeDescription
long

The messageBytes.

getMessageCount()

public long getMessageCount()

The count of messages.

int64 message_count = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the minimumPublishTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComputeMessageStatsResponse other)

public ComputeMessageStatsResponse.Builder mergeFrom(ComputeMessageStatsResponse other)
Parameter
NameDescription
otherComputeMessageStatsResponse
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ComputeMessageStatsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeMessageStatsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeMessageStatsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The messageBytes to set.

Returns
TypeDescription
ComputeMessageStatsResponse.Builder

This builder for chaining.

setMessageCount(long value)

public ComputeMessageStatsResponse.Builder setMessageCount(long value)

The count of messages.

int64 message_count = 1;

Parameter
NameDescription
valuelong

The messageCount to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

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

public ComputeMessageStatsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeMessageStatsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides