Class ComputeMessageStatsRequest.Builder (1.16.5)

public static final class ComputeMessageStatsRequest.Builder extends GeneratedMessage.Builder<ComputeMessageStatsRequest.Builder> implements ComputeMessageStatsRequestOrBuilder

Compute statistics about a range of messages in a given topic and partition.

Protobuf type google.cloud.pubsublite.v1.ComputeMessageStatsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ComputeMessageStatsRequest build()
Returns
Type Description
ComputeMessageStatsRequest

buildPartial()

public ComputeMessageStatsRequest buildPartial()
Returns
Type Description
ComputeMessageStatsRequest

clear()

public ComputeMessageStatsRequest.Builder clear()
Returns
Type Description
ComputeMessageStatsRequest.Builder
Overrides

clearEndCursor()

public ComputeMessageStatsRequest.Builder clearEndCursor()

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
ComputeMessageStatsRequest.Builder

clearPartition()

public ComputeMessageStatsRequest.Builder clearPartition()

Required. The partition for which we should compute message stats.

int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ComputeMessageStatsRequest.Builder

This builder for chaining.

clearStartCursor()

public ComputeMessageStatsRequest.Builder clearStartCursor()

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Returns
Type Description
ComputeMessageStatsRequest.Builder

clearTopic()

public ComputeMessageStatsRequest.Builder clearTopic()

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
ComputeMessageStatsRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ComputeMessageStatsRequest getDefaultInstanceForType()
Returns
Type Description
ComputeMessageStatsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getEndCursorBuilder()

public Cursor.Builder getEndCursorBuilder()

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.Builder

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

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.

getStartCursor()

public Cursor getStartCursor()

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Returns
Type Description
Cursor

The startCursor.

getStartCursorBuilder()

public Cursor.Builder getStartCursorBuilder()

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Returns
Type Description
Cursor.Builder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndCursor(Cursor value)

public ComputeMessageStatsRequest.Builder mergeEndCursor(Cursor value)

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;

Parameter
Name Description
value Cursor
Returns
Type Description
ComputeMessageStatsRequest.Builder

mergeFrom(ComputeMessageStatsRequest other)

public ComputeMessageStatsRequest.Builder mergeFrom(ComputeMessageStatsRequest other)
Parameter
Name Description
other ComputeMessageStatsRequest
Returns
Type Description
ComputeMessageStatsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeMessageStatsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeMessageStatsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeMessageStatsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeMessageStatsRequest.Builder
Overrides

mergeStartCursor(Cursor value)

public ComputeMessageStatsRequest.Builder mergeStartCursor(Cursor value)

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Parameter
Name Description
value Cursor
Returns
Type Description
ComputeMessageStatsRequest.Builder

setEndCursor(Cursor value)

public ComputeMessageStatsRequest.Builder setEndCursor(Cursor value)

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;

Parameter
Name Description
value Cursor
Returns
Type Description
ComputeMessageStatsRequest.Builder

setEndCursor(Cursor.Builder builderForValue)

public ComputeMessageStatsRequest.Builder setEndCursor(Cursor.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Cursor.Builder
Returns
Type Description
ComputeMessageStatsRequest.Builder

setPartition(long value)

public ComputeMessageStatsRequest.Builder setPartition(long value)

Required. The partition for which we should compute message stats.

int64 partition = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The partition to set.

Returns
Type Description
ComputeMessageStatsRequest.Builder

This builder for chaining.

setStartCursor(Cursor value)

public ComputeMessageStatsRequest.Builder setStartCursor(Cursor value)

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Parameter
Name Description
value Cursor
Returns
Type Description
ComputeMessageStatsRequest.Builder

setStartCursor(Cursor.Builder builderForValue)

public ComputeMessageStatsRequest.Builder setStartCursor(Cursor.Builder builderForValue)

The inclusive start of the range.

.google.cloud.pubsublite.v1.Cursor start_cursor = 3;

Parameter
Name Description
builderForValue Cursor.Builder
Returns
Type Description
ComputeMessageStatsRequest.Builder

setTopic(String value)

public ComputeMessageStatsRequest.Builder setTopic(String value)

Required. The topic for which we should compute message stats.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
ComputeMessageStatsRequest.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public ComputeMessageStatsRequest.Builder setTopicBytes(ByteString value)

Required. The topic for which we should compute message stats.

string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
ComputeMessageStatsRequest.Builder

This builder for chaining.