Class AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder (0.43.0)

public static final class AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder> implements AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder

Answer Generation Model specification.

Protobuf type google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec build()
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec

buildPartial()

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec buildPartial()
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec

clear()

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder clear()
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides

clearModelVersion()

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder clearModelVersion()

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview.

string model_version = 1;

Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides

clone()

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder clone()
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides

getDefaultInstanceForType()

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec getDefaultInstanceForType()
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec

getDescriptorForType()

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

getModelVersion()

public String getModelVersion()

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview.

string model_version = 1;

Returns
Type Description
String

The modelVersion.

getModelVersionBytes()

public ByteString getModelVersionBytes()

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview.

string model_version = 1;

Returns
Type Description
ByteString

The bytes for modelVersion.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.AnswerGenerationSpec.ModelSpec other)

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder mergeFrom(AnswerQueryRequest.AnswerGenerationSpec.ModelSpec other)
Parameter
Name Description
other AnswerQueryRequest.AnswerGenerationSpec.ModelSpec
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelVersion(String value)

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder setModelVersion(String value)

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview.

string model_version = 1;

Parameter
Name Description
value String

The modelVersion to set.

Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder

This builder for chaining.

setModelVersionBytes(ByteString value)

public AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder setModelVersionBytes(ByteString value)

Model version. If not set, it will use the default stable model. Allowed values are: stable, preview.

string model_version = 1;

Parameter
Name Description
value ByteString

The bytes for modelVersion to set.

Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.Builder
Overrides