- 1.6.0 (latest)
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.0
- 0.46.0
- 0.44.0
- 0.43.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
public static final class RegionalInventory.Builder extends GeneratedMessageV3.Builder<RegionalInventory.Builder> implements RegionalInventoryOrBuilder Regional inventory information for the product. Represents specific
information like price and availability for a given product in a specific
region.
For a list of all accepted attribute values, see the regional product
inventory data
specification.
Protobuf type google.shopping.merchant.inventories.v1.RegionalInventory
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RegionalInventory.BuilderImplements
RegionalInventoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RegionalInventory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
build()
public RegionalInventory build()| Returns | |
|---|---|
| Type | Description |
RegionalInventory |
|
buildPartial()
public RegionalInventory buildPartial()| Returns | |
|---|---|
| Type | Description |
RegionalInventory |
|
clear()
public RegionalInventory.Builder clear()| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
clearAccount()
public RegionalInventory.Builder clearAccount()Output only. The account that owns the product. This field will be ignored if set by the client.
int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RegionalInventory.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
clearName()
public RegionalInventory.Builder clearName() Output only. The name of the RegionalInventory resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RegionalInventory.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
clearRegion()
public RegionalInventory.Builder clearRegion() Required. Immutable. ID of the region for this
RegionalInventory resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
clearRegionalInventoryAttributes()
public RegionalInventory.Builder clearRegionalInventoryAttributes()Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
clone()
public RegionalInventory.Builder clone()| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
getAccount()
public long getAccount()Output only. The account that owns the product. This field will be ignored if set by the client.
int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
long |
The account. |
getDefaultInstanceForType()
public RegionalInventory getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RegionalInventory |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName() Output only. The name of the RegionalInventory resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Output only. The name of the RegionalInventory resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getRegion()
public String getRegion() Required. Immutable. ID of the region for this
RegionalInventory resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The region. |
getRegionBytes()
public ByteString getRegionBytes() Required. Immutable. ID of the region for this
RegionalInventory resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for region. |
getRegionalInventoryAttributes()
public RegionalInventoryAttributes getRegionalInventoryAttributes()Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes |
The regionalInventoryAttributes. |
getRegionalInventoryAttributesBuilder()
public RegionalInventoryAttributes.Builder getRegionalInventoryAttributesBuilder()Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributes.Builder |
|
getRegionalInventoryAttributesOrBuilder()
public RegionalInventoryAttributesOrBuilder getRegionalInventoryAttributesOrBuilder()Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RegionalInventoryAttributesOrBuilder |
|
hasRegionalInventoryAttributes()
public boolean hasRegionalInventoryAttributes()Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the regionalInventoryAttributes field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RegionalInventory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RegionalInventory.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
mergeFrom(RegionalInventory other)
public RegionalInventory.Builder mergeFrom(RegionalInventory other)| Parameter | |
|---|---|
| Name | Description |
other |
RegionalInventory |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
mergeRegionalInventoryAttributes(RegionalInventoryAttributes value)
public RegionalInventory.Builder mergeRegionalInventoryAttributes(RegionalInventoryAttributes value)Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RegionalInventoryAttributes |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RegionalInventory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
setAccount(long value)
public RegionalInventory.Builder setAccount(long value)Output only. The account that owns the product. This field will be ignored if set by the client.
int64 account = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe account to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RegionalInventory.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
setName(String value)
public RegionalInventory.Builder setName(String value) Output only. The name of the RegionalInventory resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public RegionalInventory.Builder setNameBytes(ByteString value) Output only. The name of the RegionalInventory resource.
Format:
{regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
setRegion(String value)
public RegionalInventory.Builder setRegion(String value) Required. Immutable. ID of the region for this
RegionalInventory resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe region to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
setRegionBytes(ByteString value)
public RegionalInventory.Builder setRegionBytes(ByteString value) Required. Immutable. ID of the region for this
RegionalInventory resource. See the Regional availability and
pricing for more
details.
string region = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
This builder for chaining. |
setRegionalInventoryAttributes(RegionalInventoryAttributes value)
public RegionalInventory.Builder setRegionalInventoryAttributes(RegionalInventoryAttributes value)Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RegionalInventoryAttributes |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
setRegionalInventoryAttributes(RegionalInventoryAttributes.Builder builderForValue)
public RegionalInventory.Builder setRegionalInventoryAttributes(RegionalInventoryAttributes.Builder builderForValue)Optional. A list of regional inventory attributes.
.google.shopping.merchant.inventories.v1.RegionalInventoryAttributes regional_inventory_attributes = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RegionalInventoryAttributes.Builder |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RegionalInventory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RegionalInventory.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RegionalInventory.Builder |
|