Class PartitionAssignmentRequest (1.7.1)

public final class PartitionAssignmentRequest extends GeneratedMessageV3 implements PartitionAssignmentRequestOrBuilder

A request on the PartitionAssignment stream.

Protobuf type google.cloud.pubsublite.v1.PartitionAssignmentRequest

Static Fields

ACK_FIELD_NUMBER

public static final int ACK_FIELD_NUMBER
Field Value
TypeDescription
int

INITIAL_FIELD_NUMBER

public static final int INITIAL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PartitionAssignmentRequest getDefaultInstance()
Returns
TypeDescription
PartitionAssignmentRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static PartitionAssignmentRequest.Builder newBuilder()
Returns
TypeDescription
PartitionAssignmentRequest.Builder

newBuilder(PartitionAssignmentRequest prototype)

public static PartitionAssignmentRequest.Builder newBuilder(PartitionAssignmentRequest prototype)
Parameter
NameDescription
prototypePartitionAssignmentRequest
Returns
TypeDescription
PartitionAssignmentRequest.Builder

parseDelimitedFrom(InputStream input)

public static PartitionAssignmentRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartitionAssignmentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PartitionAssignmentRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PartitionAssignmentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PartitionAssignmentRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PartitionAssignmentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PartitionAssignmentRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PartitionAssignmentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PartitionAssignmentRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PartitionAssignmentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PartitionAssignmentRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PartitionAssignmentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PartitionAssignmentRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PartitionAssignmentRequest> parser()
Returns
TypeDescription
Parser<PartitionAssignmentRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAck()

public PartitionAssignmentAck getAck()

Acknowledgement of a partition assignment.

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

Returns
TypeDescription
PartitionAssignmentAck

The ack.

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

getInitial()

public InitialPartitionAssignmentRequest getInitial()

Initial request on the stream.

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

Returns
TypeDescription
InitialPartitionAssignmentRequest

The initial.

getInitialOrBuilder()

public InitialPartitionAssignmentRequestOrBuilder getInitialOrBuilder()

Initial request on the stream.

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

Returns
TypeDescription
InitialPartitionAssignmentRequestOrBuilder

getParserForType()

public Parser<PartitionAssignmentRequest> getParserForType()
Returns
TypeDescription
Parser<PartitionAssignmentRequest>
Overrides

getRequestCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PartitionAssignmentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PartitionAssignmentRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException