public static final class ExportConfig.PartitionStatus.Builder extends GeneratedMessageV3.Builder<ExportConfig.PartitionStatus.Builder> implements ExportConfig.PartitionStatusOrBuilder
The export status of a partition.
Protobuf type google.cloud.pubsublite.v1.ExportConfig.PartitionStatus
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExportConfig.PartitionStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ExportConfig.PartitionStatus build()
Returns
buildPartial()
public ExportConfig.PartitionStatus buildPartial()
Returns
clear()
public ExportConfig.PartitionStatus.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ExportConfig.PartitionStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ExportConfig.PartitionStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPartition()
public ExportConfig.PartitionStatus.Builder clearPartition()
The partition number.
int64 partition = 1;
Returns
clearStatus()
public ExportConfig.PartitionStatus.Builder clearStatus()
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
clone()
public ExportConfig.PartitionStatus.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ExportConfig.PartitionStatus getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getPartition()
public long getPartition()
The partition number.
int64 partition = 1;
Returns
Type | Description |
long | The partition.
|
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.
|
getStatusBuilder()
public Status.Builder getStatusBuilder()
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.Builder | |
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 | |
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ExportConfig.PartitionStatus other)
public ExportConfig.PartitionStatus.Builder mergeFrom(ExportConfig.PartitionStatus other)
Parameter
Returns
public ExportConfig.PartitionStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ExportConfig.PartitionStatus.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeStatus(Status value)
public ExportConfig.PartitionStatus.Builder mergeStatus(Status value)
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;
Parameter
Name | Description |
value | com.google.rpc.Status
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExportConfig.PartitionStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ExportConfig.PartitionStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setPartition(long value)
public ExportConfig.PartitionStatus.Builder setPartition(long value)
The partition number.
int64 partition = 1;
Parameter
Name | Description |
value | long
The partition to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExportConfig.PartitionStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStatus(Status value)
public ExportConfig.PartitionStatus.Builder setStatus(Status value)
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;
Parameter
Name | Description |
value | com.google.rpc.Status
|
Returns
setStatus(Status.Builder builderForValue)
public ExportConfig.PartitionStatus.Builder setStatus(Status.Builder builderForValue)
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;
Parameter
Name | Description |
builderForValue | com.google.rpc.Status.Builder
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportConfig.PartitionStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides