Class Settings

  • All Implemented Interfaces:
    SettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class Settings
    extends com.google.protobuf.GeneratedMessageV3
    implements SettingsOrBuilder
     The settings resource.
     
    Protobuf type google.cloud.contactcenterinsights.v1.Settings
    See Also:
    Serialized Form
    • Field Detail

      • CREATE_TIME_FIELD_NUMBER

        public static final int CREATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_TIME_FIELD_NUMBER

        public static final int UPDATE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LANGUAGE_CODE_FIELD_NUMBER

        public static final int LANGUAGE_CODE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONVERSATION_TTL_FIELD_NUMBER

        public static final int CONVERSATION_TTL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBSUB_NOTIFICATION_SETTINGS_FIELD_NUMBER

        public static final int PUBSUB_NOTIFICATION_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ANALYSIS_CONFIG_FIELD_NUMBER

        public static final int ANALYSIS_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REDACTION_CONFIG_FIELD_NUMBER

        public static final int REDACTION_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

        public String getName()
         Immutable. The resource name of the settings resource.
         Format:
         projects/{project}/locations/{location}/settings
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getName in interface SettingsOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Immutable. The resource name of the settings resource.
         Format:
         projects/{project}/locations/{location}/settings
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getNameBytes in interface SettingsOrBuilder
        Returns:
        The bytes for name.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which the settings was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface SettingsOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which the settings was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface SettingsOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which the settings was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface SettingsOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The time at which the settings were last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface SettingsOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The time at which the settings were last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface SettingsOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The time at which the settings were last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface SettingsOrBuilder
      • getLanguageCode

        public String getLanguageCode()
         A language code to be applied to each transcript segment unless the segment
         already specifies a language code. Language code defaults to "en-US" if it
         is neither specified on the segment nor here.
         
        string language_code = 4;
        Specified by:
        getLanguageCode in interface SettingsOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         A language code to be applied to each transcript segment unless the segment
         already specifies a language code. Language code defaults to "en-US" if it
         is neither specified on the segment nor here.
         
        string language_code = 4;
        Specified by:
        getLanguageCodeBytes in interface SettingsOrBuilder
        Returns:
        The bytes for languageCode.
      • hasConversationTtl

        public boolean hasConversationTtl()
         The default TTL for newly-created conversations. If a conversation has a
         specified expiration, that value will be used instead. Changing this
         value will not change the expiration of existing conversations.
         Conversations with no expire time persist until they are deleted.
         
        .google.protobuf.Duration conversation_ttl = 5;
        Specified by:
        hasConversationTtl in interface SettingsOrBuilder
        Returns:
        Whether the conversationTtl field is set.
      • getConversationTtl

        public com.google.protobuf.Duration getConversationTtl()
         The default TTL for newly-created conversations. If a conversation has a
         specified expiration, that value will be used instead. Changing this
         value will not change the expiration of existing conversations.
         Conversations with no expire time persist until they are deleted.
         
        .google.protobuf.Duration conversation_ttl = 5;
        Specified by:
        getConversationTtl in interface SettingsOrBuilder
        Returns:
        The conversationTtl.
      • getConversationTtlOrBuilder

        public com.google.protobuf.DurationOrBuilder getConversationTtlOrBuilder()
         The default TTL for newly-created conversations. If a conversation has a
         specified expiration, that value will be used instead. Changing this
         value will not change the expiration of existing conversations.
         Conversations with no expire time persist until they are deleted.
         
        .google.protobuf.Duration conversation_ttl = 5;
        Specified by:
        getConversationTtlOrBuilder in interface SettingsOrBuilder
      • getPubsubNotificationSettingsCount

        public int getPubsubNotificationSettingsCount()
        Description copied from interface: SettingsOrBuilder
         A map that maps a notification trigger to a Pub/Sub topic. Each time a
         specified trigger occurs, Insights will notify the corresponding Pub/Sub
         topic.
        
         Keys are notification triggers. Supported keys are:
        
         * "all-triggers": Notify each time any of the supported triggers occurs.
         * "create-analysis": Notify each time an analysis is created.
         * "create-conversation": Notify each time a conversation is created.
         * "export-insights-data": Notify each time an export is complete.
         * "update-conversation": Notify each time a conversation is updated via
         UpdateConversation.
        
         Values are Pub/Sub topics. The format of each Pub/Sub topic is:
         projects/{project}/topics/{topic}
         
        map<string, string> pubsub_notification_settings = 6;
        Specified by:
        getPubsubNotificationSettingsCount in interface SettingsOrBuilder
      • containsPubsubNotificationSettings

        public boolean containsPubsubNotificationSettings​(String key)
         A map that maps a notification trigger to a Pub/Sub topic. Each time a
         specified trigger occurs, Insights will notify the corresponding Pub/Sub
         topic.
        
         Keys are notification triggers. Supported keys are:
        
         * "all-triggers": Notify each time any of the supported triggers occurs.
         * "create-analysis": Notify each time an analysis is created.
         * "create-conversation": Notify each time a conversation is created.
         * "export-insights-data": Notify each time an export is complete.
         * "update-conversation": Notify each time a conversation is updated via
         UpdateConversation.
        
         Values are Pub/Sub topics. The format of each Pub/Sub topic is:
         projects/{project}/topics/{topic}
         
        map<string, string> pubsub_notification_settings = 6;
        Specified by:
        containsPubsubNotificationSettings in interface SettingsOrBuilder
      • getPubsubNotificationSettingsMap

        public Map<String,​String> getPubsubNotificationSettingsMap()
         A map that maps a notification trigger to a Pub/Sub topic. Each time a
         specified trigger occurs, Insights will notify the corresponding Pub/Sub
         topic.
        
         Keys are notification triggers. Supported keys are:
        
         * "all-triggers": Notify each time any of the supported triggers occurs.
         * "create-analysis": Notify each time an analysis is created.
         * "create-conversation": Notify each time a conversation is created.
         * "export-insights-data": Notify each time an export is complete.
         * "update-conversation": Notify each time a conversation is updated via
         UpdateConversation.
        
         Values are Pub/Sub topics. The format of each Pub/Sub topic is:
         projects/{project}/topics/{topic}
         
        map<string, string> pubsub_notification_settings = 6;
        Specified by:
        getPubsubNotificationSettingsMap in interface SettingsOrBuilder
      • getPubsubNotificationSettingsOrDefault

        public String getPubsubNotificationSettingsOrDefault​(String key,
                                                             String defaultValue)
         A map that maps a notification trigger to a Pub/Sub topic. Each time a
         specified trigger occurs, Insights will notify the corresponding Pub/Sub
         topic.
        
         Keys are notification triggers. Supported keys are:
        
         * "all-triggers": Notify each time any of the supported triggers occurs.
         * "create-analysis": Notify each time an analysis is created.
         * "create-conversation": Notify each time a conversation is created.
         * "export-insights-data": Notify each time an export is complete.
         * "update-conversation": Notify each time a conversation is updated via
         UpdateConversation.
        
         Values are Pub/Sub topics. The format of each Pub/Sub topic is:
         projects/{project}/topics/{topic}
         
        map<string, string> pubsub_notification_settings = 6;
        Specified by:
        getPubsubNotificationSettingsOrDefault in interface SettingsOrBuilder
      • getPubsubNotificationSettingsOrThrow

        public String getPubsubNotificationSettingsOrThrow​(String key)
         A map that maps a notification trigger to a Pub/Sub topic. Each time a
         specified trigger occurs, Insights will notify the corresponding Pub/Sub
         topic.
        
         Keys are notification triggers. Supported keys are:
        
         * "all-triggers": Notify each time any of the supported triggers occurs.
         * "create-analysis": Notify each time an analysis is created.
         * "create-conversation": Notify each time a conversation is created.
         * "export-insights-data": Notify each time an export is complete.
         * "update-conversation": Notify each time a conversation is updated via
         UpdateConversation.
        
         Values are Pub/Sub topics. The format of each Pub/Sub topic is:
         projects/{project}/topics/{topic}
         
        map<string, string> pubsub_notification_settings = 6;
        Specified by:
        getPubsubNotificationSettingsOrThrow in interface SettingsOrBuilder
      • hasAnalysisConfig

        public boolean hasAnalysisConfig()
         Default analysis settings.
         
        .google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig analysis_config = 7;
        Specified by:
        hasAnalysisConfig in interface SettingsOrBuilder
        Returns:
        Whether the analysisConfig field is set.
      • hasRedactionConfig

        public boolean hasRedactionConfig()
         Default DLP redaction resources to be applied while ingesting
         conversations.
         
        .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10;
        Specified by:
        hasRedactionConfig in interface SettingsOrBuilder
        Returns:
        Whether the redactionConfig field is set.
      • getRedactionConfig

        public RedactionConfig getRedactionConfig()
         Default DLP redaction resources to be applied while ingesting
         conversations.
         
        .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10;
        Specified by:
        getRedactionConfig in interface SettingsOrBuilder
        Returns:
        The redactionConfig.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 Settings parseFrom​(ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Settings parseFrom​(ByteBuffer data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Settings parseFrom​(com.google.protobuf.ByteString data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Settings parseFrom​(com.google.protobuf.ByteString data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Settings parseFrom​(byte[] data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Settings parseFrom​(byte[] data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Settings parseFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Settings.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Settings getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<Settings> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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