public static final class ProductStructuredDescription.Builder extends GeneratedMessage.Builder<ProductStructuredDescription.Builder> implements ProductStructuredDescriptionOrBuilderStructured description, for algorithmically (AI)-generated descriptions.
Protobuf type google.shopping.merchant.products.v1beta.ProductStructuredDescription
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductStructuredDescription.BuilderImplements
ProductStructuredDescriptionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ProductStructuredDescription build()| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription |
|
buildPartial()
public ProductStructuredDescription buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription |
|
clear()
public ProductStructuredDescription.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
|
clearContent()
public ProductStructuredDescription.Builder clearContent()The description text Maximum length is 5000 characters
optional string content = 2;
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
This builder for chaining. |
clearDigitalSourceType()
public ProductStructuredDescription.Builder clearDigitalSourceType()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 |
ProductStructuredDescription.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductStructuredDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductStructuredDescription.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
|
mergeFrom(ProductStructuredDescription other)
public ProductStructuredDescription.Builder mergeFrom(ProductStructuredDescription other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductStructuredDescription |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
|
setContent(String value)
public ProductStructuredDescription.Builder setContent(String value)The description text Maximum length is 5000 characters
optional string content = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe content to set. |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
This builder for chaining. |
setContentBytes(ByteString value)
public ProductStructuredDescription.Builder setContentBytes(ByteString value)The description text Maximum length is 5000 characters
optional string content = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for content to set. |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
This builder for chaining. |
setDigitalSourceType(String value)
public ProductStructuredDescription.Builder setDigitalSourceType(String value)The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.
optional string digital_source_type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe digitalSourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
This builder for chaining. |
setDigitalSourceTypeBytes(ByteString value)
public ProductStructuredDescription.Builder setDigitalSourceTypeBytes(ByteString value)The digital source type, for example "trained_algorithmic_media". Following IPTC. Maximum length is 40 characters.
optional string digital_source_type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for digitalSourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ProductStructuredDescription.Builder |
This builder for chaining. |