public static final class DataStoreTool.RewriterConfig extends GeneratedMessage implements DataStoreTool.RewriterConfigOrBuilderRewriter configuration.
Protobuf type google.cloud.ces.v1.DataStoreTool.RewriterConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DataStoreTool.RewriterConfigImplements
DataStoreTool.RewriterConfigOrBuilderStatic Fields
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MODEL_SETTINGS_FIELD_NUMBER
public static final int MODEL_SETTINGS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PROMPT_FIELD_NUMBER
public static final int PROMPT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static DataStoreTool.RewriterConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static DataStoreTool.RewriterConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig.Builder |
|
newBuilder(DataStoreTool.RewriterConfig prototype)
public static DataStoreTool.RewriterConfig.Builder newBuilder(DataStoreTool.RewriterConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
DataStoreTool.RewriterConfig |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static DataStoreTool.RewriterConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DataStoreTool.RewriterConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static DataStoreTool.RewriterConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DataStoreTool.RewriterConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static DataStoreTool.RewriterConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DataStoreTool.RewriterConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static DataStoreTool.RewriterConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DataStoreTool.RewriterConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static DataStoreTool.RewriterConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DataStoreTool.RewriterConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static DataStoreTool.RewriterConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DataStoreTool.RewriterConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<DataStoreTool.RewriterConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<RewriterConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public DataStoreTool.RewriterConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig |
|
getDisabled()
public boolean getDisabled()Optional. Whether the rewriter is disabled.
bool disabled = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disabled. |
getModelSettings()
public ModelSettings getModelSettings()Required. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ModelSettings |
The modelSettings. |
getModelSettingsOrBuilder()
public ModelSettingsOrBuilder getModelSettingsOrBuilder()Required. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ModelSettingsOrBuilder |
|
getParserForType()
public Parser<DataStoreTool.RewriterConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<RewriterConfig> |
|
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. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasModelSettings()
public boolean hasModelSettings()Required. Configurations for the LLM model.
.google.cloud.ces.v1.ModelSettings model_settings = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the modelSettings field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public DataStoreTool.RewriterConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DataStoreTool.RewriterConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig.Builder |
|
toBuilder()
public DataStoreTool.RewriterConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DataStoreTool.RewriterConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|