Class PrivateOffer.SingleProductOffer.ContractValue.Builder (0.1.0)

public static final class PrivateOffer.SingleProductOffer.ContractValue.Builder extends GeneratedMessage.Builder<PrivateOffer.SingleProductOffer.ContractValue.Builder> implements PrivateOffer.SingleProductOffer.ContractValueOrBuilder

The contract value of the offer.

Protobuf type google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.ContractValue

Static Methods

getDescriptor()

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

Methods

build()

public PrivateOffer.SingleProductOffer.ContractValue build()
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue

buildPartial()

public PrivateOffer.SingleProductOffer.ContractValue buildPartial()
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue

clear()

public PrivateOffer.SingleProductOffer.ContractValue.Builder clear()
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder
Overrides

clearTotalContractValue()

public PrivateOffer.SingleProductOffer.ContractValue.Builder clearTotalContractValue()

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder

getDefaultInstanceForType()

public PrivateOffer.SingleProductOffer.ContractValue getDefaultInstanceForType()
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue

getDescriptorForType()

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

getTotalContractValue()

public Money getTotalContractValue()

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The totalContractValue.

getTotalContractValueBuilder()

public Money.Builder getTotalContractValueBuilder()

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money.Builder

getTotalContractValueOrBuilder()

public MoneyOrBuilder getTotalContractValueOrBuilder()

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

hasTotalContractValue()

public boolean hasTotalContractValue()

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the totalContractValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PrivateOffer.SingleProductOffer.ContractValue other)

public PrivateOffer.SingleProductOffer.ContractValue.Builder mergeFrom(PrivateOffer.SingleProductOffer.ContractValue other)
Parameter
Name Description
other PrivateOffer.SingleProductOffer.ContractValue
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PrivateOffer.SingleProductOffer.ContractValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder
Overrides

mergeTotalContractValue(Money value)

public PrivateOffer.SingleProductOffer.ContractValue.Builder mergeTotalContractValue(Money value)

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder

setTotalContractValue(Money value)

public PrivateOffer.SingleProductOffer.ContractValue.Builder setTotalContractValue(Money value)

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder

setTotalContractValue(Money.Builder builderForValue)

public PrivateOffer.SingleProductOffer.ContractValue.Builder setTotalContractValue(Money.Builder builderForValue)

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

.google.type.Money total_contract_value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
PrivateOffer.SingleProductOffer.ContractValue.Builder