Class SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder (0.36.0)

public static final class SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder> implements SearchRequest.ContentSearchSpec.SummarySpec.ModelSpecOrBuilder

Specification of the model.

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

Inheritance

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder
Overrides

clearVersion()

public SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder clearVersion()

The model version used to generate the summary.

Supported values are:

  • stable: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model.
  • preview: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English.

string version = 1;

Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersion()

public String getVersion()

The model version used to generate the summary.

Supported values are:

  • stable: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model.
  • preview: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English.

string version = 1;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The model version used to generate the summary.

Supported values are:

  • stable: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model.
  • preview: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English.

string version = 1;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder setVersion(String value)

The model version used to generate the summary.

Supported values are:

  • stable: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model.
  • preview: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English.

string version = 1;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder setVersionBytes(ByteString value)

The model version used to generate the summary.

Supported values are:

  • stable: string. Default value when no value is specified. Uses a generally available, fine-tuned version of the text-bison@001 model.
  • preview: string. (Public preview) Uses a fine-tuned version of the text-bison@002 model. This model works only for summaries in English.

string version = 1;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.Builder

This builder for chaining.