Class Subscription.DeliveryConfig.Builder (1.14.4)

public static final class Subscription.DeliveryConfig.Builder extends GeneratedMessageV3.Builder<Subscription.DeliveryConfig.Builder> implements Subscription.DeliveryConfigOrBuilder

The settings for a subscription's message delivery.

Protobuf type google.cloud.pubsublite.v1.Subscription.DeliveryConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Subscription.DeliveryConfig build()
Returns
Type Description
Subscription.DeliveryConfig

buildPartial()

public Subscription.DeliveryConfig buildPartial()
Returns
Type Description
Subscription.DeliveryConfig

clear()

public Subscription.DeliveryConfig.Builder clear()
Returns
Type Description
Subscription.DeliveryConfig.Builder
Overrides

clearDeliveryRequirement()

public Subscription.DeliveryConfig.Builder clearDeliveryRequirement()

The DeliveryRequirement for this subscription.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3;

Returns
Type Description
Subscription.DeliveryConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Subscription.DeliveryConfig.Builder clone()
Returns
Type Description
Subscription.DeliveryConfig.Builder
Overrides

getDefaultInstanceForType()

public Subscription.DeliveryConfig getDefaultInstanceForType()
Returns
Type Description
Subscription.DeliveryConfig

getDeliveryRequirement()

public Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement()

The DeliveryRequirement for this subscription.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3;

Returns
Type Description
Subscription.DeliveryConfig.DeliveryRequirement

The deliveryRequirement.

getDeliveryRequirementValue()

public int getDeliveryRequirementValue()

The DeliveryRequirement for this subscription.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3;

Returns
Type Description
int

The enum numeric value on the wire for deliveryRequirement.

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Subscription.DeliveryConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeliveryRequirement(Subscription.DeliveryConfig.DeliveryRequirement value)

public Subscription.DeliveryConfig.Builder setDeliveryRequirement(Subscription.DeliveryConfig.DeliveryRequirement value)

The DeliveryRequirement for this subscription.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3;

Parameter
Name Description
value Subscription.DeliveryConfig.DeliveryRequirement

The deliveryRequirement to set.

Returns
Type Description
Subscription.DeliveryConfig.Builder

This builder for chaining.

setDeliveryRequirementValue(int value)

public Subscription.DeliveryConfig.Builder setDeliveryRequirementValue(int value)

The DeliveryRequirement for this subscription.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig.DeliveryRequirement delivery_requirement = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for deliveryRequirement to set.

Returns
Type Description
Subscription.DeliveryConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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