Class TuneModelMetadata.Builder (2.85.0)

public static final class TuneModelMetadata.Builder extends GeneratedMessage.Builder<TuneModelMetadata.Builder> implements TuneModelMetadataOrBuilder

Metadata associated with a tune operation.

Protobuf type google.cloud.retail.v2.TuneModelMetadata

Static Methods

getDescriptor()

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

Methods

build()

public TuneModelMetadata build()
Returns
Type Description
TuneModelMetadata

buildPartial()

public TuneModelMetadata buildPartial()
Returns
Type Description
TuneModelMetadata

clear()

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

clearModel()

public TuneModelMetadata.Builder clearModel()

The resource name of the model that this tune applies to. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}

string model = 1;

Returns
Type Description
TuneModelMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public TuneModelMetadata getDefaultInstanceForType()
Returns
Type Description
TuneModelMetadata

getDescriptorForType()

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

getModel()

public String getModel()

The resource name of the model that this tune applies to. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}

string model = 1;

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

The resource name of the model that this tune applies to. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}

string model = 1;

Returns
Type Description
ByteString

The bytes for model.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TuneModelMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setModel(String value)

public TuneModelMetadata.Builder setModel(String value)

The resource name of the model that this tune applies to. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}

string model = 1;

Parameter
Name Description
value String

The model to set.

Returns
Type Description
TuneModelMetadata.Builder

This builder for chaining.

setModelBytes(ByteString value)

public TuneModelMetadata.Builder setModelBytes(ByteString value)

The resource name of the model that this tune applies to. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}

string model = 1;

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
TuneModelMetadata.Builder

This builder for chaining.