Class Region.GeoTargetArea.Builder (0.1.0)

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

Static 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 long

The geotargetCriteriaIds to add.

Returns
Type Description
Region.GeoTargetArea.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Region.GeoTargetArea.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public Region.GeoTargetArea.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Region.GeoTargetArea.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

clone()

public Region.GeoTargetArea.Builder clone()
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

getDefaultInstanceForType()

public Region.GeoTargetArea getDefaultInstanceForType()
Returns
Type Description
Region.GeoTargetArea

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 int

The 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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeFrom(Region.GeoTargetArea other)

public Region.GeoTargetArea.Builder mergeFrom(Region.GeoTargetArea other)
Parameter
Name Description
other Region.GeoTargetArea
Returns
Type Description
Region.GeoTargetArea.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Region.GeoTargetArea.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Region.GeoTargetArea.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

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 int

The index to set the value at.

value long

The geotargetCriteriaIds to set.

Returns
Type Description
Region.GeoTargetArea.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Region.GeoTargetArea.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Region.GeoTargetArea.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Region.GeoTargetArea.Builder
Overrides