Class Subscription.DeliveryConfig.Builder (1.8.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subscription.DeliveryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides

build()

public Subscription.DeliveryConfig build()
Returns
TypeDescription
Subscription.DeliveryConfig

buildPartial()

public Subscription.DeliveryConfig buildPartial()
Returns
TypeDescription
Subscription.DeliveryConfig

clear()

public Subscription.DeliveryConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
Subscription.DeliveryConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Subscription.DeliveryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Subscription.DeliveryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides

clone()

public Subscription.DeliveryConfig.Builder clone()
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides

getDefaultInstanceForType()

public Subscription.DeliveryConfig getDefaultInstanceForType()
Returns
TypeDescription
Subscription.DeliveryConfig

getDeliveryRequirement()

public Subscription.DeliveryConfig.DeliveryRequirement getDeliveryRequirement()

The DeliveryRequirement for this subscription.

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

Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for deliveryRequirement.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Subscription.DeliveryConfig other)

public Subscription.DeliveryConfig.Builder mergeFrom(Subscription.DeliveryConfig other)
Parameter
NameDescription
otherSubscription.DeliveryConfig
Returns
TypeDescription
Subscription.DeliveryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Subscription.DeliveryConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subscription.DeliveryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueSubscription.DeliveryConfig.DeliveryRequirement

The deliveryRequirement to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Subscription.DeliveryConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Subscription.DeliveryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Subscription.DeliveryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subscription.DeliveryConfig.Builder
Overrides