Class IngestionFailureEvent.Builder (1.135.0)

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

Payload of the Platform Log entry sent when a failure is encountered while ingesting.

Protobuf type google.pubsub.v1.IngestionFailureEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IngestionFailureEvent build()
Returns
Type Description
IngestionFailureEvent

buildPartial()

public IngestionFailureEvent buildPartial()
Returns
Type Description
IngestionFailureEvent

clear()

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

clearCloudStorageFailure()

public IngestionFailureEvent.Builder clearCloudStorageFailure()

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.Builder

clearErrorMessage()

public IngestionFailureEvent.Builder clearErrorMessage()

Required. Error details explaining why ingestion to Pub/Sub has failed.

string error_message = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IngestionFailureEvent.Builder

This builder for chaining.

clearFailure()

public IngestionFailureEvent.Builder clearFailure()
Returns
Type Description
IngestionFailureEvent.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTopic()

public IngestionFailureEvent.Builder clearTopic()

Required. Name of the import topic. Format is: projects/{project_name}/topics/{topic_name}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IngestionFailureEvent.Builder

This builder for chaining.

clone()

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

getCloudStorageFailure()

public IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure()

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure

The cloudStorageFailure.

getCloudStorageFailureBuilder()

public IngestionFailureEvent.CloudStorageFailure.Builder getCloudStorageFailureBuilder()

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailure.Builder

getCloudStorageFailureOrBuilder()

public IngestionFailureEvent.CloudStorageFailureOrBuilder getCloudStorageFailureOrBuilder()

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.CloudStorageFailureOrBuilder

getDefaultInstanceForType()

public IngestionFailureEvent getDefaultInstanceForType()
Returns
Type Description
IngestionFailureEvent

getDescriptorForType()

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

getErrorMessage()

public String getErrorMessage()

Required. Error details explaining why ingestion to Pub/Sub has failed.

string error_message = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The errorMessage.

getErrorMessageBytes()

public ByteString getErrorMessageBytes()

Required. Error details explaining why ingestion to Pub/Sub has failed.

string error_message = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for errorMessage.

getFailureCase()

public IngestionFailureEvent.FailureCase getFailureCase()
Returns
Type Description
IngestionFailureEvent.FailureCase

getTopic()

public String getTopic()

Required. Name of the import topic. Format is: projects/{project_name}/topics/{topic_name}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

Required. Name of the import topic. Format is: projects/{project_name}/topics/{topic_name}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for topic.

hasCloudStorageFailure()

public boolean hasCloudStorageFailure()

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cloudStorageFailure field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudStorageFailure(IngestionFailureEvent.CloudStorageFailure value)

public IngestionFailureEvent.Builder mergeCloudStorageFailure(IngestionFailureEvent.CloudStorageFailure value)

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(IngestionFailureEvent other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCloudStorageFailure(IngestionFailureEvent.CloudStorageFailure value)

public IngestionFailureEvent.Builder setCloudStorageFailure(IngestionFailureEvent.CloudStorageFailure value)

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setCloudStorageFailure(IngestionFailureEvent.CloudStorageFailure.Builder builderForValue)

public IngestionFailureEvent.Builder setCloudStorageFailure(IngestionFailureEvent.CloudStorageFailure.Builder builderForValue)

Optional. Failure when ingesting from Cloud Storage.

.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL];

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

setErrorMessage(String value)

public IngestionFailureEvent.Builder setErrorMessage(String value)

Required. Error details explaining why ingestion to Pub/Sub has failed.

string error_message = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The errorMessage to set.

Returns
Type Description
IngestionFailureEvent.Builder

This builder for chaining.

setErrorMessageBytes(ByteString value)

public IngestionFailureEvent.Builder setErrorMessageBytes(ByteString value)

Required. Error details explaining why ingestion to Pub/Sub has failed.

string error_message = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for errorMessage to set.

Returns
Type Description
IngestionFailureEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTopic(String value)

public IngestionFailureEvent.Builder setTopic(String value)

Required. Name of the import topic. Format is: projects/{project_name}/topics/{topic_name}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The topic to set.

Returns
Type Description
IngestionFailureEvent.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public IngestionFailureEvent.Builder setTopicBytes(ByteString value)

Required. Name of the import topic. Format is: projects/{project_name}/topics/{topic_name}.

string topic = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for topic to set.

Returns
Type Description
IngestionFailureEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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