public static final class Region.GeoTargetArea.Builder extends GeneratedMessage.Builder<Region.GeoTargetArea.Builder> implements Region.GeoTargetAreaOrBuilderA list of geotargets that defines the region area.
Protobuf type google.shopping.merchant.accounts.v1.Region.GeoTargetArea
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Region.GeoTargetArea.BuilderImplements
Region.GeoTargetAreaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGeotargetCriteriaIds(Iterable<? extends Long> values)
public Region.GeoTargetArea.Builder addAllGeotargetCriteriaIds(Iterable<? extends Long> values)Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends java.lang.Long>The geotargetCriteriaIds to add. |
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
This builder for chaining. |
addGeotargetCriteriaIds(long value)
public Region.GeoTargetArea.Builder addGeotargetCriteriaIds(long value)Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe geotargetCriteriaIds to add. |
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
This builder for chaining. |
build()
public Region.GeoTargetArea build()| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea |
|
buildPartial()
public Region.GeoTargetArea buildPartial()| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea |
|
clear()
public Region.GeoTargetArea.Builder clear()| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
|
clearGeotargetCriteriaIds()
public Region.GeoTargetArea.Builder clearGeotargetCriteriaIds()Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Region.GeoTargetArea getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGeotargetCriteriaIds(int index)
public long getGeotargetCriteriaIds(int index)Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
long |
The geotargetCriteriaIds at the given index. |
getGeotargetCriteriaIdsCount()
public int getGeotargetCriteriaIdsCount()Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of geotargetCriteriaIds. |
getGeotargetCriteriaIdsList()
public List<Long> getGeotargetCriteriaIdsList()Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Long> |
A list containing the geotargetCriteriaIds. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Region.GeoTargetArea.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Region.GeoTargetArea.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
|
mergeFrom(Region.GeoTargetArea other)
public Region.GeoTargetArea.Builder mergeFrom(Region.GeoTargetArea other)| Parameter | |
|---|---|
| Name | Description |
other |
Region.GeoTargetArea |
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
|
setGeotargetCriteriaIds(int index, long value)
public Region.GeoTargetArea.Builder setGeotargetCriteriaIds(int index, long value)Required. A non-empty list of location IDs. They must all be of the same location type (for example, state).
repeated int64 geotarget_criteria_ids = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
longThe geotargetCriteriaIds to set. |
| Returns | |
|---|---|
| Type | Description |
Region.GeoTargetArea.Builder |
This builder for chaining. |