public static final class PrivateOffer.SingleProductOffer.ContractValue extends GeneratedMessage implements PrivateOffer.SingleProductOffer.ContractValueOrBuilderThe contract value of the offer.
Protobuf type
google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.ContractValue
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > PrivateOffer.SingleProductOffer.ContractValueStatic Fields
TOTAL_CONTRACT_VALUE_FIELD_NUMBER
public static final int TOTAL_CONTRACT_VALUE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static PrivateOffer.SingleProductOffer.ContractValue getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static PrivateOffer.SingleProductOffer.ContractValue.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue.Builder |
|
newBuilder(PrivateOffer.SingleProductOffer.ContractValue prototype)
public static PrivateOffer.SingleProductOffer.ContractValue.Builder newBuilder(PrivateOffer.SingleProductOffer.ContractValue prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
PrivateOffer.SingleProductOffer.ContractValue |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue.Builder |
|
parseDelimitedFrom(InputStream input)
public static PrivateOffer.SingleProductOffer.ContractValue parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.ContractValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PrivateOffer.SingleProductOffer.ContractValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<PrivateOffer.SingleProductOffer.ContractValue> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ContractValue> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public PrivateOffer.SingleProductOffer.ContractValue getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue |
|
getParserForType()
public Parser<PrivateOffer.SingleProductOffer.ContractValue> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<ContractValue> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public PrivateOffer.SingleProductOffer.ContractValue.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected PrivateOffer.SingleProductOffer.ContractValue.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue.Builder |
|
toBuilder()
public PrivateOffer.SingleProductOffer.ContractValue.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
PrivateOffer.SingleProductOffer.ContractValue.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|