Class ProductStructuredDescription (0.5.0)

public final class ProductStructuredDescription extends GeneratedMessageV3 implements ProductStructuredDescriptionOrBuilder

Structured description, for algorithmically (AI)-generated descriptions.

Protobuf type google.shopping.merchant.products.v1beta.ProductStructuredDescription

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
Type Description
int

DIGITAL_SOURCE_TYPE_FIELD_NUMBER

public static final int DIGITAL_SOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProductStructuredDescription getDefaultInstance()
Returns
Type Description
ProductStructuredDescription

getDescriptor()

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

newBuilder()

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

newBuilder(ProductStructuredDescription prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getContent()

public String getContent()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
String

The content.

getContentBytes()

public ByteString getContentBytes()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
ByteString

The bytes for content.

getDefaultInstanceForType()

public ProductStructuredDescription getDefaultInstanceForType()
Returns
Type Description
ProductStructuredDescription

getDigitalSourceType()

public String getDigitalSourceType()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
String

The digitalSourceType.

getDigitalSourceTypeBytes()

public ByteString getDigitalSourceTypeBytes()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
ByteString

The bytes for digitalSourceType.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasContent()

public boolean hasContent()

The description text Maximum length is 5000 characters

optional string content = 2;

Returns
Type Description
boolean

Whether the content field is set.

hasDigitalSourceType()

public boolean hasDigitalSourceType()

The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.

optional string digital_source_type = 1;

Returns
Type Description
boolean

Whether the digitalSourceType field is set.

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 ProductStructuredDescription.Builder newBuilderForType()
Returns
Type Description
ProductStructuredDescription.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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