Class ExportConfig.PartitionStatus (1.9.0)

public static final class ExportConfig.PartitionStatus extends GeneratedMessageV3 implements ExportConfig.PartitionStatusOrBuilder

The export status of a partition.

Protobuf type google.cloud.pubsublite.v1.ExportConfig.PartitionStatus

Static Fields

PARTITION_FIELD_NUMBER

public static final int PARTITION_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExportConfig.PartitionStatus getDefaultInstance()
Returns
TypeDescription
ExportConfig.PartitionStatus

getDescriptor()

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

newBuilder()

public static ExportConfig.PartitionStatus.Builder newBuilder()
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

newBuilder(ExportConfig.PartitionStatus prototype)

public static ExportConfig.PartitionStatus.Builder newBuilder(ExportConfig.PartitionStatus prototype)
Parameter
NameDescription
prototypeExportConfig.PartitionStatus
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

parseDelimitedFrom(InputStream input)

public static ExportConfig.PartitionStatus parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExportConfig.PartitionStatus
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ExportConfig.PartitionStatus parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExportConfig.PartitionStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ExportConfig.PartitionStatus parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExportConfig.PartitionStatus
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ExportConfig.PartitionStatus parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExportConfig.PartitionStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ExportConfig.PartitionStatus parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExportConfig.PartitionStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ExportConfig.PartitionStatus> parser()
Returns
TypeDescription
Parser<PartitionStatus>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ExportConfig.PartitionStatus getDefaultInstanceForType()
Returns
TypeDescription
ExportConfig.PartitionStatus

getParserForType()

public Parser<ExportConfig.PartitionStatus> getParserForType()
Returns
TypeDescription
Parser<PartitionStatus>
Overrides

getPartition()

public long getPartition()

The partition number.

int64 partition = 1;

Returns
TypeDescription
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStatus()

public Status getStatus()

If the export for a partition is healthy and the desired state is ACTIVE, the status code will be OK (zero). If the desired state of the export is PAUSED, the status code will be CANCELLED. If the export has been suspended due to an error, the status will be populated with an error code and details. The service will automatically retry after a period of time, and will update the status code to OK if export subsequently succeeds.

.google.rpc.Status status = 2;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

If the export for a partition is healthy and the desired state is ACTIVE, the status code will be OK (zero). If the desired state of the export is PAUSED, the status code will be CANCELLED. If the export has been suspended due to an error, the status will be populated with an error code and details. The service will automatically retry after a period of time, and will update the status code to OK if export subsequently succeeds.

.google.rpc.Status status = 2;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasStatus()

public boolean hasStatus()

If the export for a partition is healthy and the desired state is ACTIVE, the status code will be OK (zero). If the desired state of the export is PAUSED, the status code will be CANCELLED. If the export has been suspended due to an error, the status will be populated with an error code and details. The service will automatically retry after a period of time, and will update the status code to OK if export subsequently succeeds.

.google.rpc.Status status = 2;

Returns
TypeDescription
boolean

Whether the status 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 ExportConfig.PartitionStatus.Builder newBuilderForType()
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ExportConfig.PartitionStatus.Builder toBuilder()
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

writeTo(CodedOutputStream output)

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