Class StreamAssistRequest.GenerationSpec.Builder (0.79.0)

public static final class StreamAssistRequest.GenerationSpec.Builder extends GeneratedMessage.Builder<StreamAssistRequest.GenerationSpec.Builder> implements StreamAssistRequest.GenerationSpecOrBuilder

Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.

Protobuf type google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec

Static Methods

getDescriptor()

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

Methods

build()

public StreamAssistRequest.GenerationSpec build()
Returns
Type Description
StreamAssistRequest.GenerationSpec

buildPartial()

public StreamAssistRequest.GenerationSpec buildPartial()
Returns
Type Description
StreamAssistRequest.GenerationSpec

clear()

public StreamAssistRequest.GenerationSpec.Builder clear()
Returns
Type Description
StreamAssistRequest.GenerationSpec.Builder
Overrides

clearModelId()

public StreamAssistRequest.GenerationSpec.Builder clearModelId()

Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used.

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StreamAssistRequest.GenerationSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public StreamAssistRequest.GenerationSpec getDefaultInstanceForType()
Returns
Type Description
StreamAssistRequest.GenerationSpec

getDescriptorForType()

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

getModelId()

public String getModelId()

Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used.

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The modelId.

getModelIdBytes()

public ByteString getModelIdBytes()

Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used.

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for modelId.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StreamAssistRequest.GenerationSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setModelId(String value)

public StreamAssistRequest.GenerationSpec.Builder setModelId(String value)

Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used.

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The modelId to set.

Returns
Type Description
StreamAssistRequest.GenerationSpec.Builder

This builder for chaining.

setModelIdBytes(ByteString value)

public StreamAssistRequest.GenerationSpec.Builder setModelIdBytes(ByteString value)

Optional. The Vertex AI model_id used for the generative model. If not set, the default Assistant model will be used.

string model_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for modelId to set.

Returns
Type Description
StreamAssistRequest.GenerationSpec.Builder

This builder for chaining.