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
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ExportConfig.PartitionStatus getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ExportConfig.PartitionStatus.Builder newBuilder()
Returns
newBuilder(ExportConfig.PartitionStatus prototype)
public static ExportConfig.PartitionStatus.Builder newBuilder(ExportConfig.PartitionStatus prototype)
Parameter
Returns
public static ExportConfig.PartitionStatus parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExportConfig.PartitionStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ExportConfig.PartitionStatus parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExportConfig.PartitionStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ExportConfig.PartitionStatus parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExportConfig.PartitionStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExportConfig.PartitionStatus parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ExportConfig.PartitionStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExportConfig.PartitionStatus parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExportConfig.PartitionStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ExportConfig.PartitionStatus parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExportConfig.PartitionStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ExportConfig.PartitionStatus> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ExportConfig.PartitionStatus getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ExportConfig.PartitionStatus> getParserForType()
Returns
Overrides
getPartition()
public long getPartition()
The partition number.
int64 partition = 1;
Returns
Type | Description |
long | The partition.
|
getSerializedSize()
public int getSerializedSize()
Returns
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
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ExportConfig.PartitionStatus.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ExportConfig.PartitionStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ExportConfig.PartitionStatus.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions