Class ExportConfig.PartitionStatus (1.7.1)

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
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExportConfig.PartitionStatus getDefaultInstance()
Returns
Type Description
ExportConfig.PartitionStatus

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ExportConfig.PartitionStatus.Builder newBuilder()
Returns
Type Description
ExportConfig.PartitionStatus.Builder

newBuilder(ExportConfig.PartitionStatus prototype)

public static ExportConfig.PartitionStatus.Builder newBuilder(ExportConfig.PartitionStatus prototype)
Parameter
Name Description
prototype ExportConfig.PartitionStatus
Returns
Type Description
ExportConfig.PartitionStatus.Builder

parseDelimitedFrom(InputStream input)

public static ExportConfig.PartitionStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportConfig.PartitionStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExportConfig.PartitionStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExportConfig.PartitionStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExportConfig.PartitionStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExportConfig.PartitionStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExportConfig.PartitionStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportConfig.PartitionStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExportConfig.PartitionStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportConfig.PartitionStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExportConfig.PartitionStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExportConfig.PartitionStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ExportConfig.PartitionStatus getDefaultInstanceForType()
Returns
Type Description
ExportConfig.PartitionStatus

getParserForType()

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

getPartition()

public long getPartition()

The partition number.

int64 partition = 1;

Returns
Type Description
long

The partition.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Type Description
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
Type Description
com.google.rpc.StatusOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
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
Type Description
boolean

Whether the status field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ExportConfig.PartitionStatus.Builder newBuilderForType()
Returns
Type Description
ExportConfig.PartitionStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExportConfig.PartitionStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ExportConfig.PartitionStatus.Builder toBuilder()
Returns
Type Description
ExportConfig.PartitionStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException