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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PartitionAssignmentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PartitionAssignmentRequest build()
Returns
buildPartial()
public PartitionAssignmentRequest buildPartial()
Returns
clear()
public PartitionAssignmentRequest.Builder clear()
Returns
Overrides
clearAck()
public PartitionAssignmentRequest.Builder clearAck()
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public PartitionAssignmentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInitial()
public PartitionAssignmentRequest.Builder clearInitial()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PartitionAssignmentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRequest()
public PartitionAssignmentRequest.Builder clearRequest()
Returns
clone()
public PartitionAssignmentRequest.Builder clone()
Returns
Overrides
getAck()
public PartitionAssignmentAck getAck()
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Returns
getAckBuilder()
public PartitionAssignmentAck.Builder getAckBuilder()
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Returns
getAckOrBuilder()
public PartitionAssignmentAckOrBuilder getAckOrBuilder()
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Returns
getDefaultInstanceForType()
public PartitionAssignmentRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInitial()
public InitialPartitionAssignmentRequest getInitial()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Returns
getInitialBuilder()
public InitialPartitionAssignmentRequest.Builder getInitialBuilder()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Returns
getInitialOrBuilder()
public InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder()
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Returns
getRequestCase()
public PartitionAssignmentRequest.RequestCase getRequestCase()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAck(PartitionAssignmentAck value)
public PartitionAssignmentRequest.Builder mergeAck(PartitionAssignmentAck value)
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Parameter
Returns
mergeFrom(PartitionAssignmentRequest other)
public PartitionAssignmentRequest.Builder mergeFrom(PartitionAssignmentRequest other)
Parameter
Returns
public PartitionAssignmentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PartitionAssignmentRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInitial(InitialPartitionAssignmentRequest value)
public PartitionAssignmentRequest.Builder mergeInitial(InitialPartitionAssignmentRequest value)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PartitionAssignmentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAck(PartitionAssignmentAck value)
public PartitionAssignmentRequest.Builder setAck(PartitionAssignmentAck value)
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Parameter
Returns
setAck(PartitionAssignmentAck.Builder builderForValue)
public PartitionAssignmentRequest.Builder setAck(PartitionAssignmentAck.Builder builderForValue)
Acknowledgement of a partition assignment.
.google.cloud.pubsublite.v1.PartitionAssignmentAck ack = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PartitionAssignmentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInitial(InitialPartitionAssignmentRequest value)
public PartitionAssignmentRequest.Builder setInitial(InitialPartitionAssignmentRequest value)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Parameter
Returns
setInitial(InitialPartitionAssignmentRequest.Builder builderForValue)
public PartitionAssignmentRequest.Builder setInitial(InitialPartitionAssignmentRequest.Builder builderForValue)
Initial request on the stream.
.google.cloud.pubsublite.v1.InitialPartitionAssignmentRequest initial = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PartitionAssignmentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PartitionAssignmentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides