Send feedback
Class ComputeMessageStatsRequest (1.12.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.12.4 keyboard_arrow_down
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 Type Description int
PARTITION_FIELD_NUMBER
public static final int PARTITION_FIELD_NUMBER
Field Value Type Description int
START_CURSOR_FIELD_NUMBER
public static final int START_CURSOR_FIELD_NUMBER
Field Value Type Description int
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Field Value Type Description int
Static Methods
getDefaultInstance()
public static ComputeMessageStatsRequest getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static ComputeMessageStatsRequest . Builder newBuilder ()
newBuilder(ComputeMessageStatsRequest prototype)
public static ComputeMessageStatsRequest . Builder newBuilder ( ComputeMessageStatsRequest prototype )
public static ComputeMessageStatsRequest parseDelimitedFrom ( InputStream input )
public static ComputeMessageStatsRequest parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static ComputeMessageStatsRequest parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static ComputeMessageStatsRequest parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static ComputeMessageStatsRequest parseFrom ( CodedInputStream input )
public static ComputeMessageStatsRequest parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static ComputeMessageStatsRequest parseFrom ( InputStream input )
public static ComputeMessageStatsRequest parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static ComputeMessageStatsRequest parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<ComputeMessageStatsRequest> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDefaultInstanceForType()
public ComputeMessageStatsRequest getDefaultInstanceForType ()
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 Type Description 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;
getParserForType()
public Parser<ComputeMessageStatsRequest> getParserForType ()
Overrides
getPartition()
public long getPartition ()
Required. The partition for which we should compute message stats.
int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
Returns Type Description long
The partition.
getSerializedSize()
public int getSerializedSize ()
Returns Type Description int
Overrides
getStartCursor()
public Cursor getStartCursor ()
The inclusive start of the range.
.google.cloud.pubsublite.v1.Cursor start_cursor = 3;
Returns Type Description Cursor
The startCursor.
getStartCursorOrBuilder()
public CursorOrBuilder getStartCursorOrBuilder ()
The inclusive start of the range.
.google.cloud.pubsublite.v1.Cursor start_cursor = 3;
getTopic()
Required. The topic for which we should compute message stats.
string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns Type Description 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 Type Description ByteString
The bytes for topic.
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
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 Type Description 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 Type Description boolean
Whether the startCursor field is set.
hashCode()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public ComputeMessageStatsRequest . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeMessageStatsRequest . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public ComputeMessageStatsRequest . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[],[]]