Class ComputeMessageStatsRequest (1.4.12)

public final class ComputeMessageStatsRequest extends GeneratedMessageV3 implements ComputeMessageStatsRequestOrBuilder

Compute statistics about a range of messages in a given topic and partition.

Protobuf type google.cloud.pubsublite.v1.ComputeMessageStatsRequest

Static Fields

END_CURSOR_FIELD_NUMBER

public static final int END_CURSOR_FIELD_NUMBER
Field Value
TypeDescription
int

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

START_CURSOR_FIELD_NUMBER

public static final int START_CURSOR_FIELD_NUMBER
Field Value
TypeDescription
int

TOPIC_FIELD_NUMBER

public static final int TOPIC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeMessageStatsRequest getDefaultInstance()
Returns
TypeDescription
ComputeMessageStatsRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ComputeMessageStatsRequest prototype)

public static ComputeMessageStatsRequest.Builder newBuilder(ComputeMessageStatsRequest prototype)
Parameter
NameDescription
prototypeComputeMessageStatsRequest
Returns
TypeDescription
ComputeMessageStatsRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ComputeMessageStatsRequest getDefaultInstanceForType()
Returns
TypeDescription
ComputeMessageStatsRequest

getEndCursor()

public Cursor getEndCursor()

The exclusive end of the range. The range is empty if end_cursor <= start_cursor. Specifying a start_cursor before the first message and an end_cursor after the last message will retrieve all messages.

.google.cloud.pubsublite.v1.Cursor end_cursor = 4;

Returns
TypeDescription
Cursor

The endCursor.

getEndCursorOrBuilder()

public CursorOrBuilder getEndCursorOrBuilder()

The exclusive end of the range. The range is empty if end_cursor <= start_cursor. Specifying a start_cursor before the first message and an end_cursor after the last message will retrieve all messages.

.google.cloud.pubsublite.v1.Cursor end_cursor = 4;

Returns
TypeDescription
CursorOrBuilder

getParserForType()

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

getPartition()

public long getPartition()

Required. The partition for which we should compute message stats.

int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartCursor()

public Cursor getStartCursor()

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Returns
TypeDescription
Cursor

The startCursor.

getStartCursorOrBuilder()

public CursorOrBuilder getStartCursorOrBuilder()

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Returns
TypeDescription
CursorOrBuilder

getTopic()

public String getTopic()

Required. The topic for which we should compute message stats.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Required. The topic for which we should compute message stats.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEndCursor()

public boolean hasEndCursor()

The exclusive end of the range. The range is empty if end_cursor <= start_cursor. Specifying a start_cursor before the first message and an end_cursor after the last message will retrieve all messages.

.google.cloud.pubsublite.v1.Cursor end_cursor = 4;

Returns
TypeDescription
boolean

Whether the endCursor field is set.

hasStartCursor()

public boolean hasStartCursor()

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Returns
TypeDescription
boolean

Whether the startCursor 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 ComputeMessageStatsRequest.Builder newBuilderForType()
Returns
TypeDescription
ComputeMessageStatsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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