Class TuneEngineMetadata.Builder (0.47.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

public TuneEngineMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TuneEngineMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TuneEngineMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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