Class ProductTextGenerationMetadata.Builder (0.25.0)

public static final class ProductTextGenerationMetadata.Builder extends GeneratedMessage.Builder<ProductTextGenerationMetadata.Builder> implements ProductTextGenerationMetadataOrBuilder

Wrapper data type for any metadata associated with text generation.

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

Static Methods

getDescriptor()

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

Methods

build()

public ProductTextGenerationMetadata build()
Returns
Type Description
ProductTextGenerationMetadata

buildPartial()

public ProductTextGenerationMetadata buildPartial()
Returns
Type Description
ProductTextGenerationMetadata

clear()

public ProductTextGenerationMetadata.Builder clear()
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

clearMetadata()

public ProductTextGenerationMetadata.Builder clearMetadata()

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Returns
Type Description
ProductTextGenerationMetadata.Builder

getDefaultInstanceForType()

public ProductTextGenerationMetadata getDefaultInstanceForType()
Returns
Type Description
ProductTextGenerationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetadata()

public Struct getMetadata()

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Returns
Type Description
Struct

The metadata.

getMetadataBuilder()

public Struct.Builder getMetadataBuilder()

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Returns
Type Description
Builder

getMetadataOrBuilder()

public StructOrBuilder getMetadataOrBuilder()

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Returns
Type Description
StructOrBuilder

hasMetadata()

public boolean hasMetadata()

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Returns
Type Description
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ProductTextGenerationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ProductTextGenerationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

mergeFrom(ProductTextGenerationMetadata other)

public ProductTextGenerationMetadata.Builder mergeFrom(ProductTextGenerationMetadata other)
Parameter
Name Description
other ProductTextGenerationMetadata
Returns
Type Description
ProductTextGenerationMetadata.Builder

mergeMetadata(Struct value)

public ProductTextGenerationMetadata.Builder mergeMetadata(Struct value)

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Parameter
Name Description
value Struct
Returns
Type Description
ProductTextGenerationMetadata.Builder

setMetadata(Struct value)

public ProductTextGenerationMetadata.Builder setMetadata(Struct value)

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Parameter
Name Description
value Struct
Returns
Type Description
ProductTextGenerationMetadata.Builder

setMetadata(Struct.Builder builderForValue)

public ProductTextGenerationMetadata.Builder setMetadata(Struct.Builder builderForValue)

Metadata is a pretty loose concept. The data is modeled as a map here to indicate that there is no guaranteed structure to the output past a simple K:V association. The first use-case is to track words added/removed/changed in generations.

.google.protobuf.Struct metadata = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ProductTextGenerationMetadata.Builder