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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComputeMessageStatsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ComputeMessageStatsResponse build()
Returns
buildPartial()
public ComputeMessageStatsResponse buildPartial()
Returns
clear()
public ComputeMessageStatsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ComputeMessageStatsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMessageBytes()
public ComputeMessageStatsResponse.Builder clearMessageBytes()
The number of quota bytes accounted to these messages.
int64 message_bytes = 2;
Returns
clearMessageCount()
public ComputeMessageStatsResponse.Builder clearMessageCount()
The count of messages.
int64 message_count = 1;
Returns
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ComputeMessageStatsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ComputeMessageStatsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ComputeMessageStatsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ComputeMessageStatsResponse other)
public ComputeMessageStatsResponse.Builder mergeFrom(ComputeMessageStatsResponse other)
Parameter
Returns
public ComputeMessageStatsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ComputeMessageStatsResponse.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComputeMessageStatsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ComputeMessageStatsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
Returns
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
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComputeMessageStatsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComputeMessageStatsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides