public static final class Region.GeoTargetArea.Builder extends GeneratedMessageV3.Builder<Region.GeoTargetArea.Builder> implements Region.GeoTargetAreaOrBuilder
A list of geotargets that defines the region area.
Protobuf type google.shopping.merchant.accounts.v1beta.Region.GeoTargetArea
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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.
|
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 |
long
The geotargetCriteriaIds to add.
|
public Region.GeoTargetArea.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Region.GeoTargetArea build()
public Region.GeoTargetArea buildPartial()
public Region.GeoTargetArea.Builder clear()
Overrides
public Region.GeoTargetArea.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
public Region.GeoTargetArea.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Region.GeoTargetArea.Builder clone()
Overrides
public Region.GeoTargetArea getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
int
The index of the element to return.
|
Returns |
Type |
Description |
long |
The geotargetCriteriaIds at the given index.
|
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Region.GeoTargetArea.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Region.GeoTargetArea.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public Region.GeoTargetArea.Builder mergeFrom(Region.GeoTargetArea other)
public final Region.GeoTargetArea.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Region.GeoTargetArea.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
int
The index to set the value at.
|
value |
long
The geotargetCriteriaIds to set.
|
public Region.GeoTargetArea.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Region.GeoTargetArea.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides