Class LocalInventoryDataSource (0.19.0)

public final class LocalInventoryDataSource extends GeneratedMessageV3 implements LocalInventoryDataSourceOrBuilder

The local inventory data source.

Protobuf type google.shopping.merchant.datasources.v1beta.LocalInventoryDataSource

Static Fields

CONTENT_LANGUAGE_FIELD_NUMBER

public static final int CONTENT_LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

FEED_LABEL_FIELD_NUMBER

public static final int FEED_LABEL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LocalInventoryDataSource getDefaultInstance()
Returns
TypeDescription
LocalInventoryDataSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LocalInventoryDataSource.Builder newBuilder()
Returns
TypeDescription
LocalInventoryDataSource.Builder

newBuilder(LocalInventoryDataSource )

public static LocalInventoryDataSource.Builder newBuilder(LocalInventoryDataSource )
Parameter
NameDescription
LocalInventoryDataSource
Returns
TypeDescription
LocalInventoryDataSource.Builder

parseDelimitedFrom(InputStream input)

public static LocalInventoryDataSource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocalInventoryDataSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LocalInventoryDataSource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LocalInventoryDataSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LocalInventoryDataSource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LocalInventoryDataSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LocalInventoryDataSource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LocalInventoryDataSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LocalInventoryDataSource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LocalInventoryDataSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LocalInventoryDataSource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LocalInventoryDataSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocalInventoryDataSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LocalInventoryDataSource> parser()
Returns
TypeDescription
Parser<LocalInventoryDataSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContentLanguage()

public String getContentLanguage()

Required. Immutable. The two-letter ISO 639-1 language of the items to which the local inventory is provided.

string content_language = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The contentLanguage.

getContentLanguageBytes()

public ByteString getContentLanguageBytes()

Required. Immutable. The two-letter ISO 639-1 language of the items to which the local inventory is provided.

string content_language = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for contentLanguage.

getDefaultInstanceForType()

public LocalInventoryDataSource getDefaultInstanceForType()
Returns
TypeDescription
LocalInventoryDataSource

getFeedLabel()

public String getFeedLabel()

Required. Immutable. The feed label of the offers to which the local inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

string feed_label = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The feedLabel.

getFeedLabelBytes()

public ByteString getFeedLabelBytes()

Required. Immutable. The feed label of the offers to which the local inventory is provided.

Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).

See also migration to feed labels.

string feed_label = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for feedLabel.

getParserForType()

public Parser<LocalInventoryDataSource> getParserForType()
Returns
TypeDescription
Parser<LocalInventoryDataSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LocalInventoryDataSource.Builder newBuilderForType()
Returns
TypeDescription
LocalInventoryDataSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LocalInventoryDataSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LocalInventoryDataSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LocalInventoryDataSource.Builder toBuilder()
Returns
TypeDescription
LocalInventoryDataSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException