Class PartitionAssignmentRequest.Builder (1.12.22)

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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public PartitionAssignmentRequest build()
Returns
TypeDescription
PartitionAssignmentRequest

buildPartial()

public PartitionAssignmentRequest buildPartial()
Returns
TypeDescription
PartitionAssignmentRequest

clear()

public PartitionAssignmentRequest.Builder clear()
Overrides

clearAck()

public PartitionAssignmentRequest.Builder clearAck()

Acknowledgement of a partition assignment.

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

clearField(Descriptors.FieldDescriptor field)

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

clearInitial()

public PartitionAssignmentRequest.Builder clearInitial()

Initial request on the stream.

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequest()

public PartitionAssignmentRequest.Builder clearRequest()

clone()

public PartitionAssignmentRequest.Builder clone()
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;

getInitialOrBuilder()

public InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

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

getRequestCase()

public PartitionAssignmentRequest.RequestCase getRequestCase()

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

mergeFrom(PartitionAssignmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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