Class ComputeMessageStatsRequest.Builder (1.6.3)

public static final class ComputeMessageStatsRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeMessageStatsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

build()

public ComputeMessageStatsRequest build()
Returns
TypeDescription
ComputeMessageStatsRequest

buildPartial()

public ComputeMessageStatsRequest buildPartial()
Returns
TypeDescription
ComputeMessageStatsRequest

clear()

public ComputeMessageStatsRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
ComputeMessageStatsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ComputeMessageStatsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeMessageStatsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

clearPartition()

public ComputeMessageStatsRequest.Builder clearPartition()

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

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

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

This builder for chaining.

clone()

public ComputeMessageStatsRequest.Builder clone()
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

getDefaultInstanceForType()

public ComputeMessageStatsRequest getDefaultInstanceForType()
Returns
TypeDescription
ComputeMessageStatsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CursorOrBuilder

getPartition()

public long getPartition()

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

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

Returns
TypeDescription
long

The partition.

getStartCursor()

public Cursor getStartCursor()

The inclusive start of the range.

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

Returns
TypeDescription
Cursor

The startCursor.

getStartCursorBuilder()

public Cursor.Builder getStartCursorBuilder()

The inclusive start of the range.

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

Returns
TypeDescription
Cursor.Builder

getStartCursorOrBuilder()

public CursorOrBuilder getStartCursorOrBuilder()

The inclusive start of the range.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startCursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
ComputeMessageStatsRequest.Builder

mergeFrom(ComputeMessageStatsRequest other)

public ComputeMessageStatsRequest.Builder mergeFrom(ComputeMessageStatsRequest other)
Parameter
NameDescription
otherComputeMessageStatsRequest
Returns
TypeDescription
ComputeMessageStatsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeMessageStatsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ComputeMessageStatsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
ComputeMessageStatsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeMessageStatsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

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
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
ComputeMessageStatsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeMessageStatsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

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
NameDescription
valuelong

The partition to set.

Returns
TypeDescription
ComputeMessageStatsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeMessageStatsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides

setStartCursor(Cursor value)

public ComputeMessageStatsRequest.Builder setStartCursor(Cursor value)

The inclusive start of the range.

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

Parameter
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
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
NameDescription
valueString

The topic to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
ComputeMessageStatsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeMessageStatsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeMessageStatsRequest.Builder
Overrides