Class IngestionFailureEvent.AzureEventHubsFailureReason.Builder (1.137.0)

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

Failure when ingesting from an Azure Event Hubs source.

Protobuf type google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > IngestionFailureEvent.AzureEventHubsFailureReason.Builder
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IngestionFailureEvent.AzureEventHubsFailureReason build()

buildPartial()

public IngestionFailureEvent.AzureEventHubsFailureReason buildPartial()

clear()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clear()
Overrides

clearApiViolationReason()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clearApiViolationReason()

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

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

clearEventHub()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clearEventHub()

Optional. The name of the event hub being ingested from.

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

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNamespace()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clearNamespace()

Optional. The namespace containing the event hub being ingested from.

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

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

clearOffset()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clearOffset()

Optional. The offset within the partition of the message that failed to be ingested.

int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartitionId()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clearPartitionId()

Optional. The partition ID of the message that failed to be ingested.

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

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

clearReason()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clearReason()

clone()

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder clone()
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 = 5 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

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 = 5 [(.google.api.field_behavior) = OPTIONAL];

getDefaultInstanceForType()

public IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType()

getDescriptorForType()

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

getEventHub()

public String getEventHub()

Optional. The name of the event hub being ingested from.

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

Returns
Type Description
String

The eventHub.

getEventHubBytes()

public ByteString getEventHubBytes()

Optional. The name of the event hub being ingested from.

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

Returns
Type Description
ByteString

The bytes for eventHub.

getNamespace()

public String getNamespace()

Optional. The namespace containing the event hub being ingested from.

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

Returns
Type Description
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Optional. The namespace containing the event hub being ingested from.

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

Returns
Type Description
ByteString

The bytes for namespace.

getOffset()

public long getOffset()

Optional. The offset within the partition of the message that failed to be ingested.

int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The offset.

getPartitionId()

public long getPartitionId()

Optional. The partition ID of the message that failed to be ingested.

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

Returns
Type Description
long

The partitionId.

getReasonCase()

public IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase getReasonCase()

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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the apiViolationReason 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.AzureEventHubsFailureReason.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IngestionFailureEvent.ApiViolationReason

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(IngestionFailureEvent.AzureEventHubsFailureReason other)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder mergeFrom(IngestionFailureEvent.AzureEventHubsFailureReason other)
Parameter
Name Description
other IngestionFailureEvent.AzureEventHubsFailureReason

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setApiViolationReason(IngestionFailureEvent.ApiViolationReason value)

public IngestionFailureEvent.AzureEventHubsFailureReason.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IngestionFailureEvent.ApiViolationReason

setApiViolationReason(IngestionFailureEvent.ApiViolationReason.Builder builderForValue)

public IngestionFailureEvent.AzureEventHubsFailureReason.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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue IngestionFailureEvent.ApiViolationReason.Builder

setEventHub(String value)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder setEventHub(String value)

Optional. The name of the event hub being ingested from.

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

Parameter
Name Description
value String

The eventHub to set.

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

setEventHubBytes(ByteString value)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder setEventHubBytes(ByteString value)

Optional. The name of the event hub being ingested from.

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

Parameter
Name Description
value ByteString

The bytes for eventHub to set.

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNamespace(String value)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder setNamespace(String value)

Optional. The namespace containing the event hub being ingested from.

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

Parameter
Name Description
value String

The namespace to set.

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder setNamespaceBytes(ByteString value)

Optional. The namespace containing the event hub being ingested from.

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

Parameter
Name Description
value ByteString

The bytes for namespace to set.

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

setOffset(long value)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder setOffset(long value)

Optional. The offset within the partition of the message that failed to be ingested.

int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The offset to set.

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

setPartitionId(long value)

public IngestionFailureEvent.AzureEventHubsFailureReason.Builder setPartitionId(long value)

Optional. The partition ID of the message that failed to be ingested.

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

Parameter
Name Description
value long

The partitionId to set.

Returns
Type Description
IngestionFailureEvent.AzureEventHubsFailureReason.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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