Class PartitionAssignmentRequest.Builder (1.13.7)

public static final class PartitionAssignmentRequest.Builder extends GeneratedMessageV3.Builder<PartitionAssignmentRequest.Builder> implements PartitionAssignmentRequestOrBuilder

A request on the PartitionAssignment stream.

Protobuf type google.cloud.pubsublite.v1.PartitionAssignmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PartitionAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

build()

public PartitionAssignmentRequest build()
Returns
Type Description
PartitionAssignmentRequest

buildPartial()

public PartitionAssignmentRequest buildPartial()
Returns
Type Description
PartitionAssignmentRequest

clear()

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

clearAck()

public PartitionAssignmentRequest.Builder clearAck()

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Returns
Type Description
PartitionAssignmentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public PartitionAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

clearInitial()

public PartitionAssignmentRequest.Builder clearInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Returns
Type Description
PartitionAssignmentRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public PartitionAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

clearRequest()

public PartitionAssignmentRequest.Builder clearRequest()
Returns
Type Description
PartitionAssignmentRequest.Builder

clone()

public PartitionAssignmentRequest.Builder clone()
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

getAck()

public PartitionAssignmentAck getAck()

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Returns
Type Description
PartitionAssignmentAck

The ack.

getAckBuilder()

public PartitionAssignmentAck.Builder getAckBuilder()

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Returns
Type Description
PartitionAssignmentAck.Builder

getAckOrBuilder()

public PartitionAssignmentAckOrBuilder getAckOrBuilder()

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Returns
Type Description
PartitionAssignmentAckOrBuilder

getDefaultInstanceForType()

public PartitionAssignmentRequest getDefaultInstanceForType()
Returns
Type Description
PartitionAssignmentRequest

getDescriptorForType()

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

getInitial()

public InitialPartitionAssignmentRequest getInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Returns
Type Description
InitialPartitionAssignmentRequest

The initial.

getInitialBuilder()

public InitialPartitionAssignmentRequest.Builder getInitialBuilder()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Returns
Type Description
InitialPartitionAssignmentRequest.Builder

getInitialOrBuilder()

public InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Returns
Type Description
InitialPartitionAssignmentRequestOrBuilder

getRequestCase()

public PartitionAssignmentRequest.RequestCase getRequestCase()
Returns
Type Description
PartitionAssignmentRequest.RequestCase

hasAck()

public boolean hasAck()

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Returns
Type Description
boolean

Whether the ack field is set.

hasInitial()

public boolean hasInitial()

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Returns
Type Description
boolean

Whether the initial field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAck(PartitionAssignmentAck value)

public PartitionAssignmentRequest.Builder mergeAck(PartitionAssignmentAck value)

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Parameter
Name Description
value PartitionAssignmentAck
Returns
Type Description
PartitionAssignmentRequest.Builder

mergeFrom(PartitionAssignmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInitial(InitialPartitionAssignmentRequest value)

public PartitionAssignmentRequest.Builder mergeInitial(InitialPartitionAssignmentRequest value)

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Parameter
Name Description
value InitialPartitionAssignmentRequest
Returns
Type Description
PartitionAssignmentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

setAck(PartitionAssignmentAck value)

public PartitionAssignmentRequest.Builder setAck(PartitionAssignmentAck value)

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Parameter
Name Description
value PartitionAssignmentAck
Returns
Type Description
PartitionAssignmentRequest.Builder

setAck(PartitionAssignmentAck.Builder builderForValue)

public PartitionAssignmentRequest.Builder setAck(PartitionAssignmentAck.Builder builderForValue)

Acknowledgement of a partition assignment.

.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;

Parameter
Name Description
builderForValue PartitionAssignmentAck.Builder
Returns
Type Description
PartitionAssignmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

setInitial(InitialPartitionAssignmentRequest value)

public PartitionAssignmentRequest.Builder setInitial(InitialPartitionAssignmentRequest value)

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Parameter
Name Description
value InitialPartitionAssignmentRequest
Returns
Type Description
PartitionAssignmentRequest.Builder

setInitial(InitialPartitionAssignmentRequest.Builder builderForValue)

public PartitionAssignmentRequest.Builder setInitial(InitialPartitionAssignmentRequest.Builder builderForValue)

Initial request on the stream.

.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;

Parameter
Name Description
builderForValue InitialPartitionAssignmentRequest.Builder
Returns
Type Description
PartitionAssignmentRequest.Builder

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

public PartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PartitionAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PartitionAssignmentRequest.Builder
Overrides