Class GenerativeSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class GenerativeSettings extends com.google.protobuf.GeneratedMessage implements GenerativeSettingsOrBuilder
 Settings for Generative AI.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.GenerativeSettings
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • FALLBACK_SETTINGS_FIELD_NUMBER

      public static final int FALLBACK_SETTINGS_FIELD_NUMBER
      See Also:
    • GENERATIVE_SAFETY_SETTINGS_FIELD_NUMBER

      public static final int GENERATIVE_SAFETY_SETTINGS_FIELD_NUMBER
      See Also:
    • KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER

      public static final int KNOWLEDGE_CONNECTOR_SETTINGS_FIELD_NUMBER
      See Also:
    • LANGUAGE_CODE_FIELD_NUMBER

      public static final int LANGUAGE_CODE_FIELD_NUMBER
      See Also:
    • LLM_MODEL_SETTINGS_FIELD_NUMBER

      public static final int LLM_MODEL_SETTINGS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`.
       
      string name = 5;
      Specified by:
      getName in interface GenerativeSettingsOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`.
       
      string name = 5;
      Specified by:
      getNameBytes in interface GenerativeSettingsOrBuilder
      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:
      hasFallbackSettings in interface GenerativeSettingsOrBuilder
      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:
      getFallbackSettings in interface GenerativeSettingsOrBuilder
      Returns:
      The fallbackSettings.
    • getFallbackSettingsOrBuilder

      public GenerativeSettings.FallbackSettingsOrBuilder getFallbackSettingsOrBuilder()
       Settings for Generative Fallback.
       
      .google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings fallback_settings = 1;
      Specified by:
      getFallbackSettingsOrBuilder in interface GenerativeSettingsOrBuilder
    • hasGenerativeSafetySettings

      public boolean hasGenerativeSafetySettings()
       Settings for Generative Safety.
       
      .google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;
      Specified by:
      hasGenerativeSafetySettings in interface GenerativeSettingsOrBuilder
      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:
      getGenerativeSafetySettings in interface GenerativeSettingsOrBuilder
      Returns:
      The generativeSafetySettings.
    • getGenerativeSafetySettingsOrBuilder

      public SafetySettingsOrBuilder getGenerativeSafetySettingsOrBuilder()
       Settings for Generative Safety.
       
      .google.cloud.dialogflow.cx.v3beta1.SafetySettings generative_safety_settings = 3;
      Specified by:
      getGenerativeSafetySettingsOrBuilder in interface GenerativeSettingsOrBuilder
    • hasKnowledgeConnectorSettings

      public boolean hasKnowledgeConnectorSettings()
       Settings for knowledge connector.
       
      .google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.KnowledgeConnectorSettings knowledge_connector_settings = 7;
      Specified by:
      hasKnowledgeConnectorSettings in interface GenerativeSettingsOrBuilder
      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:
      getKnowledgeConnectorSettings in interface GenerativeSettingsOrBuilder
      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:
      getKnowledgeConnectorSettingsOrBuilder in interface GenerativeSettingsOrBuilder
    • getLanguageCode

      public String getLanguageCode()
       Language for this settings.
       
      string language_code = 4;
      Specified by:
      getLanguageCode in interface GenerativeSettingsOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Language for this settings.
       
      string language_code = 4;
      Specified by:
      getLanguageCodeBytes in interface GenerativeSettingsOrBuilder
      Returns:
      The bytes for languageCode.
    • hasLlmModelSettings

      public boolean hasLlmModelSettings()
       LLM model settings.
       
      .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 8;
      Specified by:
      hasLlmModelSettings in interface GenerativeSettingsOrBuilder
      Returns:
      Whether the llmModelSettings field is set.
    • getLlmModelSettings

      public LlmModelSettings getLlmModelSettings()
       LLM model settings.
       
      .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 8;
      Specified by:
      getLlmModelSettings in interface GenerativeSettingsOrBuilder
      Returns:
      The llmModelSettings.
    • getLlmModelSettingsOrBuilder

      public LlmModelSettingsOrBuilder getLlmModelSettingsOrBuilder()
       LLM model settings.
       
      .google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 8;
      Specified by:
      getLlmModelSettingsOrBuilder in interface GenerativeSettingsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GenerativeSettings.Builder newBuilder()
    • newBuilder

      public static GenerativeSettings.Builder newBuilder(GenerativeSettings prototype)
    • toBuilder

      public GenerativeSettings.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GenerativeSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GenerativeSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GenerativeSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<GenerativeSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public GenerativeSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder