Class GenerativeSettings.Builder (0.42.0)

public static final class GenerativeSettings.Builder extends GeneratedMessageV3.Builder<GenerativeSettings.Builder> implements GenerativeSettingsOrBuilder

Settings for Generative AI.

Protobuf type google.cloud.dialogflow.cx.v3beta1.GenerativeSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerativeSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerativeSettings.Builder
Overrides

build()

public GenerativeSettings build()
Returns
Type Description
GenerativeSettings

buildPartial()

public GenerativeSettings buildPartial()
Returns
Type Description
GenerativeSettings

clear()

public GenerativeSettings.Builder clear()
Returns
Type Description
GenerativeSettings.Builder
Overrides

clearFallbackSettings()

public GenerativeSettings.Builder clearFallbackSettings()

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Returns
Type Description
GenerativeSettings.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerativeSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerativeSettings.Builder
Overrides

clearGenerativeSafetySettings()

public GenerativeSettings.Builder clearGenerativeSafetySettings()

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Returns
Type Description
GenerativeSettings.Builder

clearKnowledgeConnectorSettings()

public GenerativeSettings.Builder clearKnowledgeConnectorSettings()

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Returns
Type Description
GenerativeSettings.Builder

clearLanguageCode()

public GenerativeSettings.Builder clearLanguageCode()

Language for this settings.

string language_code = 4;

Returns
Type Description
GenerativeSettings.Builder

This builder for chaining.

clearName()

public GenerativeSettings.Builder clearName()

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

string name = 5;

Returns
Type Description
GenerativeSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerativeSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerativeSettings.Builder
Overrides

clone()

public GenerativeSettings.Builder clone()
Returns
Type Description
GenerativeSettings.Builder
Overrides

getDefaultInstanceForType()

public GenerativeSettings getDefaultInstanceForType()
Returns
Type Description
GenerativeSettings

getDescriptorForType()

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

getFallbackSettings()

public GenerativeSettings.FallbackSettings getFallbackSettings()

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Returns
Type Description
GenerativeSettings.FallbackSettings

The fallbackSettings.

getFallbackSettingsBuilder()

public GenerativeSettings.FallbackSettings.Builder getFallbackSettingsBuilder()

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

getFallbackSettingsOrBuilder()

public GenerativeSettings.FallbackSettingsOrBuilder getFallbackSettingsOrBuilder()

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Returns
Type Description
GenerativeSettings.FallbackSettingsOrBuilder

getGenerativeSafetySettings()

public SafetySettings getGenerativeSafetySettings()

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Returns
Type Description
SafetySettings

The generativeSafetySettings.

getGenerativeSafetySettingsBuilder()

public SafetySettings.Builder getGenerativeSafetySettingsBuilder()

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Returns
Type Description
SafetySettings.Builder

getGenerativeSafetySettingsOrBuilder()

public SafetySettingsOrBuilder getGenerativeSafetySettingsOrBuilder()

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Returns
Type Description
SafetySettingsOrBuilder

getKnowledgeConnectorSettings()

public GenerativeSettings.KnowledgeConnectorSettings getKnowledgeConnectorSettings()

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Returns
Type Description
GenerativeSettings.KnowledgeConnectorSettings

The knowledgeConnectorSettings.

getKnowledgeConnectorSettingsBuilder()

public GenerativeSettings.KnowledgeConnectorSettings.Builder getKnowledgeConnectorSettingsBuilder()

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Returns
Type Description
GenerativeSettings.KnowledgeConnectorSettings.Builder

getKnowledgeConnectorSettingsOrBuilder()

public GenerativeSettings.KnowledgeConnectorSettingsOrBuilder getKnowledgeConnectorSettingsOrBuilder()

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Returns
Type Description
GenerativeSettings.KnowledgeConnectorSettingsOrBuilder

getLanguageCode()

public String getLanguageCode()

Language for this settings.

string language_code = 4;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Language for this settings.

string language_code = 4;

Returns
Type Description
ByteString

The bytes for languageCode.

getName()

public String getName()

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

string name = 5;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

string name = 5;

Returns
Type Description
ByteString

The bytes for name.

hasFallbackSettings()

public boolean hasFallbackSettings()

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Returns
Type Description
boolean

Whether the fallbackSettings field is set.

hasGenerativeSafetySettings()

public boolean hasGenerativeSafetySettings()

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Returns
Type Description
boolean

Whether the generativeSafetySettings field is set.

hasKnowledgeConnectorSettings()

public boolean hasKnowledgeConnectorSettings()

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Returns
Type Description
boolean

Whether the knowledgeConnectorSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFallbackSettings(GenerativeSettings.FallbackSettings value)

public GenerativeSettings.Builder mergeFallbackSettings(GenerativeSettings.FallbackSettings value)

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Parameter
Name Description
value GenerativeSettings.FallbackSettings
Returns
Type Description
GenerativeSettings.Builder

mergeFrom(GenerativeSettings other)

public GenerativeSettings.Builder mergeFrom(GenerativeSettings other)
Parameter
Name Description
other GenerativeSettings
Returns
Type Description
GenerativeSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerativeSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerativeSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerativeSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerativeSettings.Builder
Overrides

mergeGenerativeSafetySettings(SafetySettings value)

public GenerativeSettings.Builder mergeGenerativeSafetySettings(SafetySettings value)

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Parameter
Name Description
value SafetySettings
Returns
Type Description
GenerativeSettings.Builder

mergeKnowledgeConnectorSettings(GenerativeSettings.KnowledgeConnectorSettings value)

public GenerativeSettings.Builder mergeKnowledgeConnectorSettings(GenerativeSettings.KnowledgeConnectorSettings value)

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Parameter
Name Description
value GenerativeSettings.KnowledgeConnectorSettings
Returns
Type Description
GenerativeSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerativeSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerativeSettings.Builder
Overrides

setFallbackSettings(GenerativeSettings.FallbackSettings value)

public GenerativeSettings.Builder setFallbackSettings(GenerativeSettings.FallbackSettings value)

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Parameter
Name Description
value GenerativeSettings.FallbackSettings
Returns
Type Description
GenerativeSettings.Builder

setFallbackSettings(GenerativeSettings.FallbackSettings.Builder builderForValue)

public GenerativeSettings.Builder setFallbackSettings(GenerativeSettings.FallbackSettings.Builder builderForValue)

Settings for Generative Fallback.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;

Parameter
Name Description
builderForValue GenerativeSettings.FallbackSettings.Builder
Returns
Type Description
GenerativeSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerativeSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerativeSettings.Builder
Overrides

setGenerativeSafetySettings(SafetySettings value)

public GenerativeSettings.Builder setGenerativeSafetySettings(SafetySettings value)

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Parameter
Name Description
value SafetySettings
Returns
Type Description
GenerativeSettings.Builder

setGenerativeSafetySettings(SafetySettings.Builder builderForValue)

public GenerativeSettings.Builder setGenerativeSafetySettings(SafetySettings.Builder builderForValue)

Settings for Generative Safety.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;

Parameter
Name Description
builderForValue SafetySettings.Builder
Returns
Type Description
GenerativeSettings.Builder

setKnowledgeConnectorSettings(GenerativeSettings.KnowledgeConnectorSettings value)

public GenerativeSettings.Builder setKnowledgeConnectorSettings(GenerativeSettings.KnowledgeConnectorSettings value)

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Parameter
Name Description
value GenerativeSettings.KnowledgeConnectorSettings
Returns
Type Description
GenerativeSettings.Builder

setKnowledgeConnectorSettings(GenerativeSettings.KnowledgeConnectorSettings.Builder builderForValue)

public GenerativeSettings.Builder setKnowledgeConnectorSettings(GenerativeSettings.KnowledgeConnectorSettings.Builder builderForValue)

Settings for knowledge connector.

.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;

Parameter
Name Description
builderForValue GenerativeSettings.KnowledgeConnectorSettings.Builder
Returns
Type Description
GenerativeSettings.Builder

setLanguageCode(String value)

public GenerativeSettings.Builder setLanguageCode(String value)

Language for this settings.

string language_code = 4;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
GenerativeSettings.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public GenerativeSettings.Builder setLanguageCodeBytes(ByteString value)

Language for this settings.

string language_code = 4;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
GenerativeSettings.Builder

This builder for chaining.

setName(String value)

public GenerativeSettings.Builder setName(String value)

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

string name = 5;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GenerativeSettings.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GenerativeSettings.Builder setNameBytes(ByteString value)

Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings.

string name = 5;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GenerativeSettings.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerativeSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerativeSettings.Builder
Overrides