Class PartitionAssignmentRequest.Builder (1.6.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PartitionAssignmentRequest build()
Returns
TypeDescription
PartitionAssignmentRequest

buildPartial()

public PartitionAssignmentRequest buildPartial()
Returns
TypeDescription
PartitionAssignmentRequest

clear()

public PartitionAssignmentRequest.Builder clear()
Returns
TypeDescription
PartitionAssignmentRequest.Builder
Overrides

clearAck()

public PartitionAssignmentRequest.Builder clearAck()

Acknowledgement of a partition assignment.

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

Returns
TypeDescription
PartitionAssignmentRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInitial()

public PartitionAssignmentRequest.Builder clearInitial()

Initial request on the stream.

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

Returns
TypeDescription
PartitionAssignmentRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequest()

public PartitionAssignmentRequest.Builder clearRequest()
Returns
TypeDescription
PartitionAssignmentRequest.Builder

clone()

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

getAck()

public PartitionAssignmentAck getAck()

Acknowledgement of a partition assignment.

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

Returns
TypeDescription
PartitionAssignmentAck

The ack.

getAckBuilder()

public PartitionAssignmentAck.Builder getAckBuilder()

Acknowledgement of a partition assignment.

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

Returns
TypeDescription
PartitionAssignmentAck.Builder

getAckOrBuilder()

public PartitionAssignmentAckOrBuilder getAckOrBuilder()

Acknowledgement of a partition assignment.

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

Returns
TypeDescription
PartitionAssignmentAckOrBuilder

getDefaultInstanceForType()

public PartitionAssignmentRequest getDefaultInstanceForType()
Returns
TypeDescription
PartitionAssignmentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInitial()

public InitialPartitionAssignmentRequest getInitial()

Initial request on the stream.

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

Returns
TypeDescription
InitialPartitionAssignmentRequest

The initial.

getInitialBuilder()

public InitialPartitionAssignmentRequest.Builder getInitialBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialPartitionAssignmentRequest.Builder

getInitialOrBuilder()

public InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialPartitionAssignmentRequestOrBuilder

getRequestCase()

public PartitionAssignmentRequest.RequestCase getRequestCase()
Returns
TypeDescription
PartitionAssignmentRequest.RequestCase

hasAck()

public boolean hasAck()

Acknowledgement of a partition assignment.

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

Returns
TypeDescription
boolean

Whether the ack field is set.

hasInitial()

public boolean hasInitial()

Initial request on the stream.

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

Returns
TypeDescription
boolean

Whether the initial field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAck(PartitionAssignmentAck value)

public PartitionAssignmentRequest.Builder mergeAck(PartitionAssignmentAck value)

Acknowledgement of a partition assignment.

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

Parameter
NameDescription
valuePartitionAssignmentAck
Returns
TypeDescription
PartitionAssignmentRequest.Builder

mergeFrom(PartitionAssignmentRequest other)

public PartitionAssignmentRequest.Builder mergeFrom(PartitionAssignmentRequest other)
Parameter
NameDescription
otherPartitionAssignmentRequest
Returns
TypeDescription
PartitionAssignmentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuePartitionAssignmentAck
Returns
TypeDescription
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
NameDescription
builderForValuePartitionAssignmentAck.Builder
Returns
TypeDescription
PartitionAssignmentRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInitialPartitionAssignmentRequest
Returns
TypeDescription
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
NameDescription
builderForValueInitialPartitionAssignmentRequest.Builder
Returns
TypeDescription
PartitionAssignmentRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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