Class Assistant.Builder (0.81.0)

public static final class Assistant.Builder extends GeneratedMessage.Builder<Assistant.Builder> implements AssistantOrBuilder

Discovery Engine Assistant resource.

Protobuf type google.cloud.discoveryengine.v1.Assistant

Implements

AssistantOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Assistant build()
Returns
Type Description
Assistant

buildPartial()

public Assistant buildPartial()
Returns
Type Description
Assistant

clear()

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

clearName()

public Assistant.Builder clearName()

Immutable. Resource name of the assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

It must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Assistant.Builder

This builder for chaining.

getDefaultInstanceForType()

public Assistant getDefaultInstanceForType()
Returns
Type Description
Assistant

getDescriptorForType()

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

getName()

public String getName()

Immutable. Resource name of the assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

It must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Resource name of the assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

It must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Assistant other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public Assistant.Builder setName(String value)

Immutable. Resource name of the assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

It must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Assistant.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Assistant.Builder setNameBytes(ByteString value)

Immutable. Resource name of the assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

It must be a UTF-8 encoded string with a length limit of 1024 characters.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Assistant.Builder

This builder for chaining.