Class ComputeMessageStatsResponse (1.13.6)

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
Type Description
int

MESSAGE_COUNT_FIELD_NUMBER

public static final int MESSAGE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

MINIMUM_EVENT_TIME_FIELD_NUMBER

public static final int MINIMUM_EVENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

MINIMUM_PUBLISH_TIME_FIELD_NUMBER

public static final int MINIMUM_PUBLISH_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ComputeMessageStatsResponse getDefaultInstance()
Returns
Type Description
ComputeMessageStatsResponse

getDescriptor()

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

newBuilder()

public static ComputeMessageStatsResponse.Builder newBuilder()
Returns
Type Description
ComputeMessageStatsResponse.Builder

newBuilder(ComputeMessageStatsResponse prototype)

public static ComputeMessageStatsResponse.Builder newBuilder(ComputeMessageStatsResponse prototype)
Parameter
Name Description
prototype ComputeMessageStatsResponse
Returns
Type Description
ComputeMessageStatsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ComputeMessageStatsResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ComputeMessageStatsResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeMessageStatsResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeMessageStatsResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ComputeMessageStatsResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ComputeMessageStatsResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ComputeMessageStatsResponse> parser()
Returns
Type Description
Parser<ComputeMessageStatsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ComputeMessageStatsResponse getDefaultInstanceForType()
Returns
Type Description
ComputeMessageStatsResponse

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
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.

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

getParserForType()

public Parser<ComputeMessageStatsResponse> getParserForType()
Returns
Type Description
Parser<ComputeMessageStatsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ComputeMessageStatsResponse.Builder newBuilderForType()
Returns
Type Description
ComputeMessageStatsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeMessageStatsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ComputeMessageStatsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ComputeMessageStatsResponse.Builder toBuilder()
Returns
Type Description
ComputeMessageStatsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException