Class LocationIdSet.Builder (0.8.0)

public static final class LocationIdSet.Builder extends GeneratedMessageV3.Builder<LocationIdSet.Builder> implements LocationIdSetOrBuilder

A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.

Protobuf type google.shopping.merchant.accounts.v1beta.LocationIdSet

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLocationIds(Iterable<String> values)

public LocationIdSet.Builder addAllLocationIds(Iterable<String> values)

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The locationIds to add.

Returns
Type Description
LocationIdSet.Builder

This builder for chaining.

addLocationIds(String value)

public LocationIdSet.Builder addLocationIds(String value)

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The locationIds to add.

Returns
Type Description
LocationIdSet.Builder

This builder for chaining.

addLocationIdsBytes(ByteString value)

public LocationIdSet.Builder addLocationIdsBytes(ByteString value)

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the locationIds to add.

Returns
Type Description
LocationIdSet.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocationIdSet build()
Returns
Type Description
LocationIdSet

buildPartial()

public LocationIdSet buildPartial()
Returns
Type Description
LocationIdSet

clear()

public LocationIdSet.Builder clear()
Returns
Type Description
LocationIdSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLocationIds()

public LocationIdSet.Builder clearLocationIds()

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LocationIdSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public LocationIdSet.Builder clone()
Returns
Type Description
LocationIdSet.Builder
Overrides

getDefaultInstanceForType()

public LocationIdSet getDefaultInstanceForType()
Returns
Type Description
LocationIdSet

getDescriptorForType()

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

getLocationIds(int index)

public String getLocationIds(int index)

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The locationIds at the given index.

getLocationIdsBytes(int index)

public ByteString getLocationIdsBytes(int index)

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the locationIds at the given index.

getLocationIdsCount()

public int getLocationIdsCount()

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of locationIds.

getLocationIdsList()

public ProtocolStringList getLocationIdsList()

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the locationIds.

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 LocationIdSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LocationIdSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LocationIdSet.Builder
Overrides

mergeFrom(LocationIdSet other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationIds(int index, String value)

public LocationIdSet.Builder setLocationIds(int index, String value)

Required. A non-empty list of location IDs. They must all be of the same location type (For example, state).

repeated string location_ids = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The locationIds to set.

Returns
Type Description
LocationIdSet.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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