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
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()
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static ComputeMessageStatsRequest.Builder newBuilder()
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest.Builder |
newBuilder(ComputeMessageStatsRequest prototype)
public static ComputeMessageStatsRequest.Builder newBuilder(ComputeMessageStatsRequest prototype)
Parameter | |
---|---|
Name | Description |
prototype | ComputeMessageStatsRequest |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest.Builder |
parseDelimitedFrom(InputStream input)
public static ComputeMessageStatsRequest parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static ComputeMessageStatsRequest parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data | byte[] |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ComputeMessageStatsRequest parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data | ByteString |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ComputeMessageStatsRequest parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input | CodedInputStream |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static ComputeMessageStatsRequest parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input | InputStream |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ComputeMessageStatsRequest parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data | ByteBuffer |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeMessageStatsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ComputeMessageStatsRequest> parser()
Returns | |
---|---|
Type | Description |
Parser<ComputeMessageStatsRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj | Object |
Returns | |
---|---|
Type | Description |
boolean |
getDefaultInstanceForType()
public ComputeMessageStatsRequest getDefaultInstanceForType()
Returns | |
---|---|
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;
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 | |
---|---|
Type | Description |
CursorOrBuilder |
getParserForType()
public Parser<ComputeMessageStatsRequest> getParserForType()
Returns | |
---|---|
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];
Returns | |
---|---|
Type | Description |
long | The partition. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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 | |
---|---|
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) = { ... }
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()
Returns | |
---|---|
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;
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()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public ComputeMessageStatsRequest.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeMessageStatsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent | BuilderParent |
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused | UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public ComputeMessageStatsRequest.Builder toBuilder()
Returns | |
---|---|
Type | Description |
ComputeMessageStatsRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output | CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |