Class SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder (0.36.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.v1alpha.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

build()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec build()
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

buildPartial()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec buildPartial()
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec getDefaultInstanceForType()
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for preamble.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec other)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeFrom(SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec other)
Parameter
NameDescription
otherSearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The preamble to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for preamble to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.Builder
Overrides