Class TuneModelMetadata.Builder (2.26.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.v2alpha.TuneModelMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TuneModelMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

build()

public TuneModelMetadata build()
Returns
TypeDescription
TuneModelMetadata

buildPartial()

public TuneModelMetadata buildPartial()
Returns
TypeDescription
TuneModelMetadata

clear()

public TuneModelMetadata.Builder clear()
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TuneModelMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TuneModelMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TuneModelMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

clone()

public TuneModelMetadata.Builder clone()
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

getDefaultInstanceForType()

public TuneModelMetadata getDefaultInstanceForType()
Returns
TypeDescription
TuneModelMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for model.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TuneModelMetadata other)

public TuneModelMetadata.Builder mergeFrom(TuneModelMetadata other)
Parameter
NameDescription
otherTuneModelMetadata
Returns
TypeDescription
TuneModelMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TuneModelMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TuneModelMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TuneModelMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TuneModelMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The model to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for model to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TuneModelMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TuneModelMetadata.Builder
Overrides