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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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.
|
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)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public ComputeMessageStatsRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides