Class ExportConfig.PartitionStatus.Builder (1.7.1)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PartitionStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ExportConfig.PartitionStatus.Builder clear()
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExportConfig.PartitionStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportConfig.PartitionStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

clearPartition()

public ExportConfig.PartitionStatus.Builder clearPartition()

The partition number.

int64 partition = 1;

Returns
Type Description
ExportConfig.PartitionStatus.Builder

This builder for chaining.

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
Type Description
ExportConfig.PartitionStatus.Builder

clone()

public ExportConfig.PartitionStatus.Builder clone()
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportConfig.PartitionStatus other)

public ExportConfig.PartitionStatus.Builder mergeFrom(ExportConfig.PartitionStatus other)
Parameter
Name Description
other ExportConfig.PartitionStatus
Returns
Type Description
ExportConfig.PartitionStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportConfig.PartitionStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExportConfig.PartitionStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExportConfig.PartitionStatus.Builder
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
Type Description
ExportConfig.PartitionStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.PartitionStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PartitionStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExportConfig.PartitionStatus.Builder
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
Type Description
ExportConfig.PartitionStatus.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExportConfig.PartitionStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExportConfig.PartitionStatus.Builder
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
Type Description
ExportConfig.PartitionStatus.Builder

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
Type Description
ExportConfig.PartitionStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.PartitionStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExportConfig.PartitionStatus.Builder
Overrides