Class OutputSpec (0.2.0)

public final class OutputSpec extends GeneratedMessageV3 implements OutputSpecOrBuilder

Configuration parameters that directly influence what content is generated, and how that content is rendered in the final response.

Protobuf type google.shopping.merchant.productstudio.v1alpha.OutputSpec

Implements

OutputSpecOrBuilder

Static Fields

ATTRIBUTE_ORDER_FIELD_NUMBER

public static final int ATTRIBUTE_ORDER_FIELD_NUMBER
Field Value
Type Description
int

ATTRIBUTE_SEPARATOR_FIELD_NUMBER

public static final int ATTRIBUTE_SEPARATOR_FIELD_NUMBER
Field Value
Type Description
int

EDITORIAL_CHANGES_FIELD_NUMBER

public static final int EDITORIAL_CHANGES_FIELD_NUMBER
Field Value
Type Description
int

TARGET_LANGUAGE_FIELD_NUMBER

public static final int TARGET_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

TONE_FIELD_NUMBER

public static final int TONE_FIELD_NUMBER
Field Value
Type Description
int

WORKFLOW_ID_FIELD_NUMBER

public static final int WORKFLOW_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OutputSpec getDefaultInstance()
Returns
Type Description
OutputSpec

getDescriptor()

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

newBuilder()

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

newBuilder(OutputSpec prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAttributeOrder(int index)

public String getAttributeOrder(int index)

Optional. The order that generated attributes should be placed in the generated title. Eg., if the attribute order is ["brand", "product", "size"], the generated title will have brand first, followed by the product name, and then size information after that.

repeated string attribute_order = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The attributeOrder at the given index.

getAttributeOrderBytes(int index)

public ByteString getAttributeOrderBytes(int index)

Optional. The order that generated attributes should be placed in the generated title. Eg., if the attribute order is ["brand", "product", "size"], the generated title will have brand first, followed by the product name, and then size information after that.

repeated string attribute_order = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the attributeOrder at the given index.

getAttributeOrderCount()

public int getAttributeOrderCount()

Optional. The order that generated attributes should be placed in the generated title. Eg., if the attribute order is ["brand", "product", "size"], the generated title will have brand first, followed by the product name, and then size information after that.

repeated string attribute_order = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of attributeOrder.

getAttributeOrderList()

public ProtocolStringList getAttributeOrderList()

Optional. The order that generated attributes should be placed in the generated title. Eg., if the attribute order is ["brand", "product", "size"], the generated title will have brand first, followed by the product name, and then size information after that.

repeated string attribute_order = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the attributeOrder.

getAttributeSeparator()

public String getAttributeSeparator()

Optional. Character used to separate attributes in the generated title. For example, '|', '-', ','.

optional string attribute_separator = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The attributeSeparator.

getAttributeSeparatorBytes()

public ByteString getAttributeSeparatorBytes()

Optional. Character used to separate attributes in the generated title. For example, '|', '-', ','.

optional string attribute_separator = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for attributeSeparator.

getDefaultInstanceForType()

public OutputSpec getDefaultInstanceForType()
Returns
Type Description
OutputSpec

getEditorialChanges()

public String getEditorialChanges()

Optional. Any editorial changes for the generated product data. For example, replace Small with "S", do not modify color if already present.

optional string editorial_changes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The editorialChanges.

getEditorialChangesBytes()

public ByteString getEditorialChangesBytes()

Optional. Any editorial changes for the generated product data. For example, replace Small with "S", do not modify color if already present.

optional string editorial_changes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for editorialChanges.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetLanguage()

public String getTargetLanguage()

Optional. The language for output titles/descriptions. For example. 'German', 'es', 'FR'. Default is 'en'.

optional string target_language = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The targetLanguage.

getTargetLanguageBytes()

public ByteString getTargetLanguageBytes()

Optional. The language for output titles/descriptions. For example. 'German', 'es', 'FR'. Default is 'en'.

optional string target_language = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for targetLanguage.

getTone()

public String getTone()

Optional. The tone of the output generated text. Supported tones are: "playful", "formal", "persuasive", and "conversational"

optional string tone = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tone.

getToneBytes()

public ByteString getToneBytes()

Optional. The tone of the output generated text. Supported tones are: "playful", "formal", "persuasive", and "conversational"

optional string tone = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tone.

getWorkflowId()

public String getWorkflowId()

Optional. The workflow to execute for the provided product data. Workflows may populate the response's title, description, or both. Currently supported workflow_ids are: "title", "description", and "tide"

optional string workflow_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The workflowId.

getWorkflowIdBytes()

public ByteString getWorkflowIdBytes()

Optional. The workflow to execute for the provided product data. Workflows may populate the response's title, description, or both. Currently supported workflow_ids are: "title", "description", and "tide"

optional string workflow_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for workflowId.

hasAttributeSeparator()

public boolean hasAttributeSeparator()

Optional. Character used to separate attributes in the generated title. For example, '|', '-', ','.

optional string attribute_separator = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the attributeSeparator field is set.

hasEditorialChanges()

public boolean hasEditorialChanges()

Optional. Any editorial changes for the generated product data. For example, replace Small with "S", do not modify color if already present.

optional string editorial_changes = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the editorialChanges field is set.

hasTargetLanguage()

public boolean hasTargetLanguage()

Optional. The language for output titles/descriptions. For example. 'German', 'es', 'FR'. Default is 'en'.

optional string target_language = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the targetLanguage field is set.

hasTone()

public boolean hasTone()

Optional. The tone of the output generated text. Supported tones are: "playful", "formal", "persuasive", and "conversational"

optional string tone = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the tone field is set.

hasWorkflowId()

public boolean hasWorkflowId()

Optional. The workflow to execute for the provided product data. Workflows may populate the response's title, description, or both. Currently supported workflow_ids are: "title", "description", and "tide"

optional string workflow_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the workflowId 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 OutputSpec.Builder newBuilderForType()
Returns
Type Description
OutputSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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