Send feedback
Class ComputeMessageStatsRequest (1.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.0 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
PARTITION_FIELD_NUMBER
public static final int PARTITION_FIELD_NUMBER
Field Value
START_CURSOR_FIELD_NUMBER
public static final int START_CURSOR_FIELD_NUMBER
Field Value
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ComputeMessageStatsRequest getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static ComputeMessageStatsRequest . Builder newBuilder ()
Returns
newBuilder(ComputeMessageStatsRequest prototype)
public static ComputeMessageStatsRequest . Builder newBuilder ( ComputeMessageStatsRequest prototype )
Parameter
Returns
public static ComputeMessageStatsRequest parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ComputeMessageStatsRequest parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ComputeMessageStatsRequest parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ComputeMessageStatsRequest parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ComputeMessageStatsRequest parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static ComputeMessageStatsRequest parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static ComputeMessageStatsRequest parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static ComputeMessageStatsRequest parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ComputeMessageStatsRequest parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<ComputeMessageStatsRequest> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ComputeMessageStatsRequest getDefaultInstanceForType ()
Returns
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;
Returns
getParserForType()
public Parser<ComputeMessageStatsRequest> getParserForType ()
Returns
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
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;
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public ComputeMessageStatsRequest . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeMessageStatsRequest . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public ComputeMessageStatsRequest . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-01-27 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-01-27 UTC."],[],[]]