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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ComputeMessageStatsRequestImplements
ComputeMessageStatsRequestOrBuilderStatic Fields
END_CURSOR_FIELD_NUMBER
public static final int END_CURSOR_FIELD_NUMBER
Type | Description |
int |
PARTITION_FIELD_NUMBER
public static final int PARTITION_FIELD_NUMBER
Type | Description |
int |
START_CURSOR_FIELD_NUMBER
public static final int START_CURSOR_FIELD_NUMBER
Type | Description |
int |
TOPIC_FIELD_NUMBER
public static final int TOPIC_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ComputeMessageStatsRequest getDefaultInstance()
Type | Description |
ComputeMessageStatsRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static ComputeMessageStatsRequest.Builder newBuilder()
Type | Description |
ComputeMessageStatsRequest.Builder |
newBuilder(ComputeMessageStatsRequest prototype)
public static ComputeMessageStatsRequest.Builder newBuilder(ComputeMessageStatsRequest prototype)
Name | Description |
prototype | ComputeMessageStatsRequest |
Type | Description |
ComputeMessageStatsRequest.Builder |
parseDelimitedFrom(InputStream input)
public static ComputeMessageStatsRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static ComputeMessageStatsRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ComputeMessageStatsRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ComputeMessageStatsRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static ComputeMessageStatsRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ComputeMessageStatsRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ComputeMessageStatsRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ComputeMessageStatsRequest> parser()
Type | Description |
Parser<ComputeMessageStatsRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public ComputeMessageStatsRequest getDefaultInstanceForType()
Type | Description |
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;
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;
Type | Description |
CursorOrBuilder |
getParserForType()
public Parser<ComputeMessageStatsRequest> getParserForType()
Type | Description |
Parser<ComputeMessageStatsRequest> |
getPartition()
public long getPartition()
Required. The partition for which we should compute message stats.
int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
long | The partition. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getStartCursor()
public Cursor getStartCursor()
The inclusive start of the range.
.google.cloud.pubsublite.v1.Cursor start_cursor = 3;
Type | Description |
Cursor | The startCursor. |
getStartCursorOrBuilder()
public CursorOrBuilder getStartCursorOrBuilder()
The inclusive start of the range.
.google.cloud.pubsublite.v1.Cursor start_cursor = 3;
Type | Description |
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) = { ... }
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) = { ... }
Type | Description |
ByteString | The bytes for topic. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
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;
Type | Description |
boolean | Whether the startCursor field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public ComputeMessageStatsRequest.Builder newBuilderForType()
Type | Description |
ComputeMessageStatsRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeMessageStatsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
ComputeMessageStatsRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public ComputeMessageStatsRequest.Builder toBuilder()
Type | Description |
ComputeMessageStatsRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |