Class ExportConfig.PartitionStatus.Builder (1.8.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

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportConfig.PartitionStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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
NameDescription
fieldFieldDescriptor
Returns Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportConfig.PartitionStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns 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

clone()

public ExportConfig.PartitionStatus.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public ExportConfig.PartitionStatus getDefaultInstanceForType()
Returns

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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