Class ProductTextGenerationMetadata.Builder (0.2.0)

public static final class ProductTextGenerationMetadata.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ProductTextGenerationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ProductTextGenerationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

public ProductTextGenerationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProductTextGenerationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ProductTextGenerationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ProductTextGenerationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ProductTextGenerationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProductTextGenerationMetadata.Builder
Overrides