Class TuneModelMetadata.Builder (2.56.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public TuneModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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