Class SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder (0.49.0)

public static final class SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder> implements SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpecOrBuilder

Specification of the prompt to use with the model.

Protobuf type google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

build()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec build()
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

buildPartial()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec buildPartial()
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

clear()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clear()
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

clearPreamble()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clearPreamble()

Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide.

string preamble = 1;

Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

This builder for chaining.

clone()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clone()
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

getDefaultInstanceForType()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec getDefaultInstanceForType()
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

getDescriptorForType()

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

getPreamble()

public String getPreamble()

Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide.

string preamble = 1;

Returns
Type Description
String

The preamble.

getPreambleBytes()

public ByteString getPreambleBytes()

Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide.

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(SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec other)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeFrom(SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec other)
Parameter
Name Description
other SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

setPreamble(String value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder setPreamble(String value)

Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide.

string preamble = 1;

Parameter
Name Description
value String

The preamble to set.

Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

This builder for chaining.

setPreambleBytes(ByteString value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder setPreambleBytes(ByteString value)

Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide.

string preamble = 1;

Parameter
Name Description
value ByteString

The bytes for preamble to set.

Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

This builder for chaining.

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

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides