Class StandardOffer.PriceModel.FlatFeeSubscription.Builder (0.1.0)

public static final class StandardOffer.PriceModel.FlatFeeSubscription.Builder extends GeneratedMessage.Builder<StandardOffer.PriceModel.FlatFeeSubscription.Builder> implements StandardOffer.PriceModel.FlatFeeSubscriptionOrBuilder

Price configurations for flat fee subscriptions.

Protobuf type google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel.FlatFeeSubscription

Static Methods

getDescriptor()

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

Methods

build()

public StandardOffer.PriceModel.FlatFeeSubscription build()
Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription

buildPartial()

public StandardOffer.PriceModel.FlatFeeSubscription buildPartial()
Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription

clear()

public StandardOffer.PriceModel.FlatFeeSubscription.Builder clear()
Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription.Builder
Overrides

clearSku()

public StandardOffer.PriceModel.FlatFeeSubscription.Builder clearSku()

Output only. Flat fee subscription SKU for the offer.

string sku = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription.Builder

This builder for chaining.

getDefaultInstanceForType()

public StandardOffer.PriceModel.FlatFeeSubscription getDefaultInstanceForType()
Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription

getDescriptorForType()

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

getSku()

public String getSku()

Output only. Flat fee subscription SKU for the offer.

string sku = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sku.

getSkuBytes()

public ByteString getSkuBytes()

Output only. Flat fee subscription SKU for the offer.

string sku = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sku.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StandardOffer.PriceModel.FlatFeeSubscription other)

public StandardOffer.PriceModel.FlatFeeSubscription.Builder mergeFrom(StandardOffer.PriceModel.FlatFeeSubscription other)
Parameter
Name Description
other StandardOffer.PriceModel.FlatFeeSubscription
Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public StandardOffer.PriceModel.FlatFeeSubscription.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription.Builder
Overrides

setSku(String value)

public StandardOffer.PriceModel.FlatFeeSubscription.Builder setSku(String value)

Output only. Flat fee subscription SKU for the offer.

string sku = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sku to set.

Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription.Builder

This builder for chaining.

setSkuBytes(ByteString value)

public StandardOffer.PriceModel.FlatFeeSubscription.Builder setSkuBytes(ByteString value)

Output only. Flat fee subscription SKU for the offer.

string sku = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for sku to set.

Returns
Type Description
StandardOffer.PriceModel.FlatFeeSubscription.Builder

This builder for chaining.