public final class ComputeMessageStatsResponse extends GeneratedMessageV3 implements ComputeMessageStatsResponseOrBuilder
Response containing stats for messages in the requested topic and partition.
Protobuf type google.cloud.pubsublite.v1.ComputeMessageStatsResponse
Static Fields
MESSAGE_BYTES_FIELD_NUMBER
public static final int MESSAGE_BYTES_FIELD_NUMBER
Field Value
MESSAGE_COUNT_FIELD_NUMBER
public static final int MESSAGE_COUNT_FIELD_NUMBER
Field Value
MINIMUM_EVENT_TIME_FIELD_NUMBER
public static final int MINIMUM_EVENT_TIME_FIELD_NUMBER
Field Value
MINIMUM_PUBLISH_TIME_FIELD_NUMBER
public static final int MINIMUM_PUBLISH_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ComputeMessageStatsResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ComputeMessageStatsResponse.Builder newBuilder()
Returns
newBuilder(ComputeMessageStatsResponse prototype)
public static ComputeMessageStatsResponse.Builder newBuilder(ComputeMessageStatsResponse prototype)
Parameter
Returns
public static ComputeMessageStatsResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ComputeMessageStatsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ComputeMessageStatsResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ComputeMessageStatsResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ComputeMessageStatsResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ComputeMessageStatsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ComputeMessageStatsResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ComputeMessageStatsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ComputeMessageStatsResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ComputeMessageStatsResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ComputeMessageStatsResponse getDefaultInstanceForType()
Returns
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.
|
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.
|
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
getParserForType()
public Parser<ComputeMessageStatsResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ComputeMessageStatsResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeMessageStatsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ComputeMessageStatsResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions