public static final class DataStoreTool.SummarizationConfig.Builder extends GeneratedMessage.Builder<DataStoreTool.SummarizationConfig.Builder> implements DataStoreTool.SummarizationConfigOrBuilderSummarization configuration.
Protobuf type google.cloud.ces.v1.DataStoreTool.SummarizationConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataStoreTool.SummarizationConfig.BuilderImplements
DataStoreTool.SummarizationConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DataStoreTool.SummarizationConfig build()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig |
|
buildPartial()
public DataStoreTool.SummarizationConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig |
|
clear()
public DataStoreTool.SummarizationConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
clearDisabled()
public DataStoreTool.SummarizationConfig.Builder clearDisabled()Optional. Whether summarization is disabled.
bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
This builder for chaining. |
clearModelSettings()
public DataStoreTool.SummarizationConfig.Builder clearModelSettings()Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
clearPrompt()
public DataStoreTool.SummarizationConfig.Builder clearPrompt()Optional. The prompt definition. If not set, default prompt will be used.
string prompt = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DataStoreTool.SummarizationConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisabled()
public boolean getDisabled()Optional. Whether summarization is disabled.
bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disabled. |
getModelSettings()
public ModelSettings getModelSettings()Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ModelSettings |
The modelSettings. |
getModelSettingsBuilder()
public ModelSettings.Builder getModelSettingsBuilder()Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ModelSettings.Builder |
|
getModelSettingsOrBuilder()
public ModelSettingsOrBuilder getModelSettingsOrBuilder()Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ModelSettingsOrBuilder |
|
getPrompt()
public String getPrompt()Optional. The prompt definition. If not set, default prompt will be used.
string prompt = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The prompt. |
getPromptBytes()
public ByteString getPromptBytes()Optional. The prompt definition. If not set, default prompt will be used.
string prompt = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for prompt. |
hasModelSettings()
public boolean hasModelSettings()Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the modelSettings field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DataStoreTool.SummarizationConfig other)
public DataStoreTool.SummarizationConfig.Builder mergeFrom(DataStoreTool.SummarizationConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
DataStoreTool.SummarizationConfig |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataStoreTool.SummarizationConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataStoreTool.SummarizationConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
mergeModelSettings(ModelSettings value)
public DataStoreTool.SummarizationConfig.Builder mergeModelSettings(ModelSettings value)Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ModelSettings |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
setDisabled(boolean value)
public DataStoreTool.SummarizationConfig.Builder setDisabled(boolean value)Optional. Whether summarization is disabled.
bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe disabled to set. |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
This builder for chaining. |
setModelSettings(ModelSettings value)
public DataStoreTool.SummarizationConfig.Builder setModelSettings(ModelSettings value)Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ModelSettings |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
setModelSettings(ModelSettings.Builder builderForValue)
public DataStoreTool.SummarizationConfig.Builder setModelSettings(ModelSettings.Builder builderForValue)Optional. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ModelSettings.Builder |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
|
setPrompt(String value)
public DataStoreTool.SummarizationConfig.Builder setPrompt(String value)Optional. The prompt definition. If not set, default prompt will be used.
string prompt = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe prompt to set. |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
This builder for chaining. |
setPromptBytes(ByteString value)
public DataStoreTool.SummarizationConfig.Builder setPromptBytes(ByteString value)Optional. The prompt definition. If not set, default prompt will be used.
string prompt = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for prompt to set. |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.SummarizationConfig.Builder |
This builder for chaining. |