Class TuneEngineMetadata.Builder (0.28.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TuneEngineMetadata build()
Returns
TypeDescription
TuneEngineMetadata

buildPartial()

public TuneEngineMetadata buildPartial()
Returns
TypeDescription
TuneEngineMetadata

clear()

public TuneEngineMetadata.Builder clear()
Returns
TypeDescription
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
TypeDescription
TuneEngineMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TuneEngineMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TuneEngineMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TuneEngineMetadata getDefaultInstanceForType()
Returns
TypeDescription
TuneEngineMetadata

getDescriptorForType()

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

The bytes for engine.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TuneEngineMetadata other)

public TuneEngineMetadata.Builder mergeFrom(TuneEngineMetadata other)
Parameter
NameDescription
otherTuneEngineMetadata
Returns
TypeDescription
TuneEngineMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TuneEngineMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The engine to set.

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

The bytes for engine to set.

Returns
TypeDescription
TuneEngineMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public TuneEngineMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TuneEngineMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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