Class GenerativeSettings
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings
-
- All Implemented Interfaces:
GenerativeSettingsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class GenerativeSettings extends com.google.protobuf.GeneratedMessageV3 implements GenerativeSettingsOrBuilder
Settings for Generative AI.
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.GenerativeSettings- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerativeSettings.BuilderSettings for Generative AI.static classGenerativeSettings.FallbackSettingsSettings for Generative Fallback.static interfaceGenerativeSettings.FallbackSettingsOrBuilderstatic classGenerativeSettings.KnowledgeConnectorSettingsSettings for knowledge connector.static interfaceGenerativeSettings.KnowledgeConnectorSettingsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFALLBACK_SETTINGS_FIELD_NUMBERstatic intGENERATIVE_SAFETY_SETTINGS_FIELD_NUMBERstatic intKNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static GenerativeSettingsgetDefaultInstance()GenerativeSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GenerativeSettings.FallbackSettingsgetFallbackSettings()Settings for Generative Fallback.GenerativeSettings.FallbackSettingsOrBuildergetFallbackSettingsOrBuilder()Settings for Generative Fallback.SafetySettingsgetGenerativeSafetySettings()Settings for Generative Safety.SafetySettingsOrBuildergetGenerativeSafetySettingsOrBuilder()Settings for Generative Safety.GenerativeSettings.KnowledgeConnectorSettingsgetKnowledgeConnectorSettings()Settings for knowledge connector.GenerativeSettings.KnowledgeConnectorSettingsOrBuildergetKnowledgeConnectorSettingsOrBuilder()Settings for knowledge connector.StringgetLanguageCode()Language for this settings.com.google.protobuf.ByteStringgetLanguageCodeBytes()Language for this settings.StringgetName()Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings`.com.google.protobuf.ByteStringgetNameBytes()Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings`.com.google.protobuf.Parser<GenerativeSettings>getParserForType()intgetSerializedSize()booleanhasFallbackSettings()Settings for Generative Fallback.booleanhasGenerativeSafetySettings()Settings for Generative Safety.inthashCode()booleanhasKnowledgeConnectorSettings()Settings for knowledge connector.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GenerativeSettings.BuildernewBuilder()static GenerativeSettings.BuildernewBuilder(GenerativeSettings prototype)GenerativeSettings.BuildernewBuilderForType()protected GenerativeSettings.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static GenerativeSettingsparseDelimitedFrom(InputStream input)static GenerativeSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettingsparseFrom(byte[] data)static GenerativeSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettingsparseFrom(com.google.protobuf.ByteString data)static GenerativeSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettingsparseFrom(com.google.protobuf.CodedInputStream input)static GenerativeSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettingsparseFrom(InputStream input)static GenerativeSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GenerativeSettingsparseFrom(ByteBuffer data)static GenerativeSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<GenerativeSettings>parser()GenerativeSettings.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FALLBACK_SETTINGS_FIELD_NUMBER
public static final int FALLBACK_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENERATIVE_SAFETY_SETTINGS_FIELD_NUMBER
public static final int GENERATIVE_SAFETY_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER
public static final int KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings`.
string name = 5;- Specified by:
getNamein interfaceGenerativeSettingsOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generativeSettings`.
string name = 5;- Specified by:
getNameBytesin interfaceGenerativeSettingsOrBuilder- Returns:
- The bytes for name.
-
hasFallbackSettings
public boolean hasFallbackSettings()
Settings for Generative Fallback.
.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;- Specified by:
hasFallbackSettingsin interfaceGenerativeSettingsOrBuilder- Returns:
- Whether the fallbackSettings field is set.
-
getFallbackSettings
public GenerativeSettings.FallbackSettings getFallbackSettings()
Settings for Generative Fallback.
.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;- Specified by:
getFallbackSettingsin interfaceGenerativeSettingsOrBuilder- Returns:
- The fallbackSettings.
-
getFallbackSettingsOrBuilder
public GenerativeSettings.FallbackSettingsOrBuilder getFallbackSettingsOrBuilder()
Settings for Generative Fallback.
.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;- Specified by:
getFallbackSettingsOrBuilderin interfaceGenerativeSettingsOrBuilder
-
hasGenerativeSafetySettings
public boolean hasGenerativeSafetySettings()
Settings for Generative Safety.
.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;- Specified by:
hasGenerativeSafetySettingsin interfaceGenerativeSettingsOrBuilder- Returns:
- Whether the generativeSafetySettings field is set.
-
getGenerativeSafetySettings
public SafetySettings getGenerativeSafetySettings()
Settings for Generative Safety.
.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;- Specified by:
getGenerativeSafetySettingsin interfaceGenerativeSettingsOrBuilder- Returns:
- The generativeSafetySettings.
-
getGenerativeSafetySettingsOrBuilder
public SafetySettingsOrBuilder getGenerativeSafetySettingsOrBuilder()
Settings for Generative Safety.
.google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;- Specified by:
getGenerativeSafetySettingsOrBuilderin interfaceGenerativeSettingsOrBuilder
-
hasKnowledgeConnectorSettings
public boolean hasKnowledgeConnectorSettings()
Settings for knowledge connector.
.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;- Specified by:
hasKnowledgeConnectorSettingsin interfaceGenerativeSettingsOrBuilder- Returns:
- Whether the knowledgeConnectorSettings field is set.
-
getKnowledgeConnectorSettings
public GenerativeSettings.KnowledgeConnectorSettings getKnowledgeConnectorSettings()
Settings for knowledge connector.
.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;- Specified by:
getKnowledgeConnectorSettingsin interfaceGenerativeSettingsOrBuilder- Returns:
- The knowledgeConnectorSettings.
-
getKnowledgeConnectorSettingsOrBuilder
public GenerativeSettings.KnowledgeConnectorSettingsOrBuilder getKnowledgeConnectorSettingsOrBuilder()
Settings for knowledge connector.
.google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;- Specified by:
getKnowledgeConnectorSettingsOrBuilderin interfaceGenerativeSettingsOrBuilder
-
getLanguageCode
public String getLanguageCode()
Language for this settings.
string language_code = 4;- Specified by:
getLanguageCodein interfaceGenerativeSettingsOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
Language for this settings.
string language_code = 4;- Specified by:
getLanguageCodeBytesin interfaceGenerativeSettingsOrBuilder- Returns:
- The bytes for languageCode.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerativeSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerativeSettings parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerativeSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GenerativeSettings parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GenerativeSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerativeSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GenerativeSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GenerativeSettings.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GenerativeSettings.Builder newBuilder()
-
newBuilder
public static GenerativeSettings.Builder newBuilder(GenerativeSettings prototype)
-
toBuilder
public GenerativeSettings.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerativeSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GenerativeSettings getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GenerativeSettings> parser()
-
getParserForType
public com.google.protobuf.Parser<GenerativeSettings> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GenerativeSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-