public static final class ComputeMessageStatsResponse.Builder extends GeneratedMessage.Builder<ComputeMessageStatsResponse.Builder> implements ComputeMessageStatsResponseOrBuilderResponse containing stats for messages in the requested topic and partition.
Protobuf type google.cloud.pubsublite.v1.ComputeMessageStatsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ComputeMessageStatsResponse.BuilderImplements
ComputeMessageStatsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
getDefaultInstanceForType()
public ComputeMessageStatsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ComputeMessageStatsResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ComputeMessageStatsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ComputeMessageStatsResponse.Builder |
|
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 |
|
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 |
longThe 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 |
longThe 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 |
|