Class IngestionFailureEvent.CloudStorageFailure.Builder (1.134.1)

public static final class IngestionFailureEvent.CloudStorageFailure.Builder extends GeneratedMessageV3.Builder<IngestionFailureEvent.CloudStorageFailure.Builder> implements IngestionFailureEvent.CloudStorageFailureOrBuilder

Failure when ingesting from a Cloud Storage source.

Protobuf type google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IngestionFailureEvent.CloudStorageFailure build()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure

buildPartial()

public IngestionFailureEvent.CloudStorageFailure buildPartial()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure

clear()

public IngestionFailureEvent.CloudStorageFailure.Builder clear()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

clearApiViolationReason()

public IngestionFailureEvent.CloudStorageFailure.Builder clearApiViolationReason()

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

clearAvroFailureReason()

public IngestionFailureEvent.CloudStorageFailure.Builder clearAvroFailureReason()

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

clearBucket()

public IngestionFailureEvent.CloudStorageFailure.Builder clearBucket()

Optional. Name of the Cloud Storage bucket used for ingestion.

string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public IngestionFailureEvent.CloudStorageFailure.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

clearObjectGeneration()

public IngestionFailureEvent.CloudStorageFailure.Builder clearObjectGeneration()

Optional. Generation of the Cloud Storage object which contained the section that couldn't be ingested.

int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

clearObjectName()

public IngestionFailureEvent.CloudStorageFailure.Builder clearObjectName()

Optional. Name of the Cloud Storage object which contained the section that couldn't be ingested.

string object_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IngestionFailureEvent.CloudStorageFailure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

clearReason()

public IngestionFailureEvent.CloudStorageFailure.Builder clearReason()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

clone()

public IngestionFailureEvent.CloudStorageFailure.Builder clone()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

getApiViolationReason()

public IngestionFailureEvent.ApiViolationReason getApiViolationReason()

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.ApiViolationReason

The apiViolationReason.

getApiViolationReasonBuilder()

public IngestionFailureEvent.ApiViolationReason.Builder getApiViolationReasonBuilder()

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.ApiViolationReason.Builder

getApiViolationReasonOrBuilder()

public IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder()

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.ApiViolationReasonOrBuilder

getAvroFailureReason()

public IngestionFailureEvent.AvroFailureReason getAvroFailureReason()

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.AvroFailureReason

The avroFailureReason.

getAvroFailureReasonBuilder()

public IngestionFailureEvent.AvroFailureReason.Builder getAvroFailureReasonBuilder()

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.AvroFailureReason.Builder

getAvroFailureReasonOrBuilder()

public IngestionFailureEvent.AvroFailureReasonOrBuilder getAvroFailureReasonOrBuilder()

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.AvroFailureReasonOrBuilder

getBucket()

public String getBucket()

Optional. Name of the Cloud Storage bucket used for ingestion.

string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The bucket.

getBucketBytes()

public ByteString getBucketBytes()

Optional. Name of the Cloud Storage bucket used for ingestion.

string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for bucket.

getDefaultInstanceForType()

public IngestionFailureEvent.CloudStorageFailure getDefaultInstanceForType()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getObjectGeneration()

public long getObjectGeneration()

Optional. Generation of the Cloud Storage object which contained the section that couldn't be ingested.

int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The objectGeneration.

getObjectName()

public String getObjectName()

Optional. Name of the Cloud Storage object which contained the section that couldn't be ingested.

string object_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The objectName.

getObjectNameBytes()

public ByteString getObjectNameBytes()

Optional. Name of the Cloud Storage object which contained the section that couldn't be ingested.

string object_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for objectName.

getReasonCase()

public IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase()
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.ReasonCase

hasApiViolationReason()

public boolean hasApiViolationReason()

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiViolationReason field is set.

hasAvroFailureReason()

public boolean hasAvroFailureReason()

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the avroFailureReason field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeApiViolationReason(IngestionFailureEvent.ApiViolationReason value)

public IngestionFailureEvent.CloudStorageFailure.Builder mergeApiViolationReason(IngestionFailureEvent.ApiViolationReason value)

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IngestionFailureEvent.ApiViolationReason
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

mergeAvroFailureReason(IngestionFailureEvent.AvroFailureReason value)

public IngestionFailureEvent.CloudStorageFailure.Builder mergeAvroFailureReason(IngestionFailureEvent.AvroFailureReason value)

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IngestionFailureEvent.AvroFailureReason
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public IngestionFailureEvent.CloudStorageFailure.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

mergeFrom(IngestionFailureEvent.CloudStorageFailure other)

public IngestionFailureEvent.CloudStorageFailure.Builder mergeFrom(IngestionFailureEvent.CloudStorageFailure other)
Parameter
Name Description
other IngestionFailureEvent.CloudStorageFailure
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IngestionFailureEvent.CloudStorageFailure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

setApiViolationReason(IngestionFailureEvent.ApiViolationReason value)

public IngestionFailureEvent.CloudStorageFailure.Builder setApiViolationReason(IngestionFailureEvent.ApiViolationReason value)

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IngestionFailureEvent.ApiViolationReason
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

setApiViolationReason(IngestionFailureEvent.ApiViolationReason.Builder builderForValue)

public IngestionFailureEvent.CloudStorageFailure.Builder setApiViolationReason(IngestionFailureEvent.ApiViolationReason.Builder builderForValue)

Optional. The Pub/Sub API limits prevented the desired message from being published.

.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue IngestionFailureEvent.ApiViolationReason.Builder
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

setAvroFailureReason(IngestionFailureEvent.AvroFailureReason value)

public IngestionFailureEvent.CloudStorageFailure.Builder setAvroFailureReason(IngestionFailureEvent.AvroFailureReason value)

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IngestionFailureEvent.AvroFailureReason
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

setAvroFailureReason(IngestionFailureEvent.AvroFailureReason.Builder builderForValue)

public IngestionFailureEvent.CloudStorageFailure.Builder setAvroFailureReason(IngestionFailureEvent.AvroFailureReason.Builder builderForValue)

Optional. Failure encountered when parsing an Avro file.

.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue IngestionFailureEvent.AvroFailureReason.Builder
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

setBucket(String value)

public IngestionFailureEvent.CloudStorageFailure.Builder setBucket(String value)

Optional. Name of the Cloud Storage bucket used for ingestion.

string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The bucket to set.

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

setBucketBytes(ByteString value)

public IngestionFailureEvent.CloudStorageFailure.Builder setBucketBytes(ByteString value)

Optional. Name of the Cloud Storage bucket used for ingestion.

string bucket = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for bucket to set.

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public IngestionFailureEvent.CloudStorageFailure.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

setObjectGeneration(long value)

public IngestionFailureEvent.CloudStorageFailure.Builder setObjectGeneration(long value)

Optional. Generation of the Cloud Storage object which contained the section that couldn't be ingested.

int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The objectGeneration to set.

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

setObjectName(String value)

public IngestionFailureEvent.CloudStorageFailure.Builder setObjectName(String value)

Optional. Name of the Cloud Storage object which contained the section that couldn't be ingested.

string object_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The objectName to set.

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

setObjectNameBytes(ByteString value)

public IngestionFailureEvent.CloudStorageFailure.Builder setObjectNameBytes(ByteString value)

Optional. Name of the Cloud Storage object which contained the section that couldn't be ingested.

string object_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for objectName to set.

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

This builder for chaining.

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

public IngestionFailureEvent.CloudStorageFailure.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IngestionFailureEvent.CloudStorageFailure.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder
Overrides