Class TuneEngineMetadata.Builder (0.81.0)

public static final class TuneEngineMetadata.Builder extends GeneratedMessage.Builder<TuneEngineMetadata.Builder> implements TuneEngineMetadataOrBuilder

Metadata associated with a tune operation.

Protobuf type google.cloud.discoveryengine.v1alpha.TuneEngineMetadata

Static Methods

getDescriptor()

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

Methods

build()

public TuneEngineMetadata build()
Returns
Type Description
TuneEngineMetadata

buildPartial()

public TuneEngineMetadata buildPartial()
Returns
Type Description
TuneEngineMetadata

clear()

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

clearEngine()

public TuneEngineMetadata.Builder clearEngine()

Required. The resource name of the engine that this tune applies to. Format: projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}

string engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
TuneEngineMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public TuneEngineMetadata getDefaultInstanceForType()
Returns
Type Description
TuneEngineMetadata

getDescriptorForType()

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

getEngine()

public String getEngine()

Required. The resource name of the engine that this tune applies to. Format: projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}

string engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The engine.

getEngineBytes()

public ByteString getEngineBytes()

Required. The resource name of the engine that this tune applies to. Format: projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}

string engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for engine.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TuneEngineMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEngine(String value)

public TuneEngineMetadata.Builder setEngine(String value)

Required. The resource name of the engine that this tune applies to. Format: projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}

string engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The engine to set.

Returns
Type Description
TuneEngineMetadata.Builder

This builder for chaining.

setEngineBytes(ByteString value)

public TuneEngineMetadata.Builder setEngineBytes(ByteString value)

Required. The resource name of the engine that this tune applies to. Format: projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}

string engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for engine to set.

Returns
Type Description
TuneEngineMetadata.Builder

This builder for chaining.