public static final class UnitPricingBaseMeasure.Builder extends GeneratedMessage.Builder<UnitPricingBaseMeasure.Builder> implements UnitPricingBaseMeasureOrBuilderThe UnitPricingBaseMeasure of the product.
Protobuf type google.shopping.merchant.products.v1beta.UnitPricingBaseMeasure
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UnitPricingBaseMeasure.BuilderImplements
UnitPricingBaseMeasureOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public UnitPricingBaseMeasure build()| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure |
|
buildPartial()
public UnitPricingBaseMeasure buildPartial()| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure |
|
clear()
public UnitPricingBaseMeasure.Builder clear()| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
|
clearUnit()
public UnitPricingBaseMeasure.Builder clearUnit()The unit of the denominator.
string unit = 2;
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
This builder for chaining. |
clearValue()
public UnitPricingBaseMeasure.Builder clearValue()The denominator of the unit price.
int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public UnitPricingBaseMeasure getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getUnit()
public String getUnit()The unit of the denominator.
string unit = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The unit. |
getUnitBytes()
public ByteString getUnitBytes()The unit of the denominator.
string unit = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for unit. |
getValue()
public long getValue()The denominator of the unit price.
int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The value. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UnitPricingBaseMeasure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UnitPricingBaseMeasure.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
|
mergeFrom(UnitPricingBaseMeasure other)
public UnitPricingBaseMeasure.Builder mergeFrom(UnitPricingBaseMeasure other)| Parameter | |
|---|---|
| Name | Description |
other |
UnitPricingBaseMeasure |
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
|
setUnit(String value)
public UnitPricingBaseMeasure.Builder setUnit(String value)The unit of the denominator.
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public UnitPricingBaseMeasure.Builder setUnitBytes(ByteString value)The unit of the denominator.
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
This builder for chaining. |
setValue(long value)
public UnitPricingBaseMeasure.Builder setValue(long value)The denominator of the unit price.
int64 value = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe value to set. |
| Returns | |
|---|---|
| Type | Description |
UnitPricingBaseMeasure.Builder |
This builder for chaining. |