Class LocationIdSet (0.2.0)

public final class LocationIdSet extends GeneratedMessageV3 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 Fields

LOCATION_IDS_FIELD_NUMBER

public static final int LOCATION_IDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LocationIdSet getDefaultInstance()
Returns
Type Description
LocationIdSet

getDescriptor()

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

newBuilder()

public static LocationIdSet.Builder newBuilder()
Returns
Type Description
LocationIdSet.Builder

newBuilder(LocationIdSet prototype)

public static LocationIdSet.Builder newBuilder(LocationIdSet prototype)
Parameter
Name Description
prototype LocationIdSet
Returns
Type Description
LocationIdSet.Builder

parseDelimitedFrom(InputStream input)

public static LocationIdSet parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LocationIdSet
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationIdSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LocationIdSet parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LocationIdSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LocationIdSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LocationIdSet parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LocationIdSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LocationIdSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LocationIdSet parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LocationIdSet
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationIdSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LocationIdSet parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LocationIdSet
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocationIdSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LocationIdSet parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LocationIdSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LocationIdSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationIdSet
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LocationIdSet> parser()
Returns
Type Description
Parser<LocationIdSet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LocationIdSet getDefaultInstanceForType()
Returns
Type Description
LocationIdSet

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.

getParserForType()

public Parser<LocationIdSet> getParserForType()
Returns
Type Description
Parser<LocationIdSet>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LocationIdSet.Builder newBuilderForType()
Returns
Type Description
LocationIdSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LocationIdSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LocationIdSet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LocationIdSet.Builder toBuilder()
Returns
Type Description
LocationIdSet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException