public static final class LocationIdSet.Builder extends GeneratedMessage.Builder<LocationIdSet.Builder> implements LocationIdSetOrBuilderA 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.v1.LocationIdSet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LocationIdSet.BuilderImplements
LocationIdSetOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe bytes of the locationIds to add. |
| Returns | |
|---|---|
| Type | Description |
LocationIdSet.Builder |
This builder for chaining. |
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 |
|
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. |
getDefaultInstanceForType()
public LocationIdSet getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LocationIdSet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LocationIdSet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LocationIdSet.Builder |
|
mergeFrom(LocationIdSet other)
public LocationIdSet.Builder mergeFrom(LocationIdSet other)| Parameter | |
|---|---|
| Name | Description |
other |
LocationIdSet |
| Returns | |
|---|---|
| Type | Description |
LocationIdSet.Builder |
|
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 |
intThe index to set the value at. |
value |
StringThe locationIds to set. |
| Returns | |
|---|---|
| Type | Description |
LocationIdSet.Builder |
This builder for chaining. |