Class ComputeMessageStatsResponse (1.9.4)

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

MESSAGE_COUNT_FIELD_NUMBER

public static final int MESSAGE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MINIMUM_EVENT_TIME_FIELD_NUMBER

public static final int MINIMUM_EVENT_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

MINIMUM_PUBLISH_TIME_FIELD_NUMBER

public static final int MINIMUM_PUBLISH_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeMessageStatsResponse getDefaultInstance()
Returns
TypeDescription
ComputeMessageStatsResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ComputeMessageStatsResponse.Builder newBuilder()
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

newBuilder(ComputeMessageStatsResponse prototype)

public static ComputeMessageStatsResponse.Builder newBuilder(ComputeMessageStatsResponse prototype)
Parameter
NameDescription
prototypeComputeMessageStatsResponse
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

parseDelimitedFrom(InputStream input)

public static ComputeMessageStatsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ComputeMessageStatsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeMessageStatsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeMessageStatsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ComputeMessageStatsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ComputeMessageStatsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeMessageStatsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ComputeMessageStatsResponse> parser()
Returns
TypeDescription
Parser<ComputeMessageStatsResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ComputeMessageStatsResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeMessageStatsResponse

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.

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.

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

getParserForType()

public Parser<ComputeMessageStatsResponse> getParserForType()
Returns
TypeDescription
Parser<ComputeMessageStatsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ComputeMessageStatsResponse.Builder newBuilderForType()
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeMessageStatsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ComputeMessageStatsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ComputeMessageStatsResponse.Builder toBuilder()
Returns
TypeDescription
ComputeMessageStatsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException