Class ExportConfig.PartitionStatus.Builder (1.9.0)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PartitionStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ExportConfig.PartitionStatus.Builder clear()
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExportConfig.PartitionStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportConfig.PartitionStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

clearPartition()

public ExportConfig.PartitionStatus.Builder clearPartition()

The partition number.

int64 partition = 1;

Returns
TypeDescription
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
TypeDescription
ExportConfig.PartitionStatus.Builder

clone()

public ExportConfig.PartitionStatus.Builder clone()
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPartition()

public long getPartition()

The partition number.

int64 partition = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportConfig.PartitionStatus other)

public ExportConfig.PartitionStatus.Builder mergeFrom(ExportConfig.PartitionStatus other)
Parameter
NameDescription
otherExportConfig.PartitionStatus
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportConfig.PartitionStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExportConfig.PartitionStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.PartitionStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PartitionStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides

setPartition(long value)

public ExportConfig.PartitionStatus.Builder setPartition(long value)

The partition number.

int64 partition = 1;

Parameter
NameDescription
valuelong

The partition to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportConfig.PartitionStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportConfig.PartitionStatus.Builder
Overrides