Class AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder (0.43.0)

public static final class AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder extends GeneratedMessageV3.Builder<AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder> implements AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder

Answer generation prompt specification.

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreamble()

public AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder clearPreamble()

Customized preamble.

string preamble = 1;

Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getPreamble()

public String getPreamble()

Customized preamble.

string preamble = 1;

Returns
Type Description
String

The preamble.

getPreambleBytes()

public ByteString getPreambleBytes()

Customized preamble.

string preamble = 1;

Returns
Type Description
ByteString

The bytes for preamble.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnswerQueryRequest.AnswerGenerationSpec.PromptSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPreamble(String value)

public AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder setPreamble(String value)

Customized preamble.

string preamble = 1;

Parameter
Name Description
value String

The preamble to set.

Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder

This builder for chaining.

setPreambleBytes(ByteString value)

public AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder setPreambleBytes(ByteString value)

Customized preamble.

string preamble = 1;

Parameter
Name Description
value ByteString

The bytes for preamble to set.

Returns
Type Description
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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