Class IssueModel.Builder

  • All Implemented Interfaces:
    IssueModelOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    IssueModel

    public static final class IssueModel.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
    implements IssueModelOrBuilder
     The issue model resource.
     
    Protobuf type google.cloud.contactcenterinsights.v1.IssueModel
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • clear

        public IssueModel.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • getDefaultInstanceForType

        public IssueModel getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IssueModel build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IssueModel buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public IssueModel.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • setField

        public IssueModel.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • clearField

        public IssueModel.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • clearOneof

        public IssueModel.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • setRepeatedField

        public IssueModel.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • addRepeatedField

        public IssueModel.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • mergeFrom

        public IssueModel.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IssueModel.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • mergeFrom

        public IssueModel.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IssueModel.Builder>
        Throws:
        IOException
      • getName

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

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

        public IssueModel.Builder setName​(String value)
         Immutable. The resource name of the issue model.
         Format:
         projects/{project}/locations/{location}/issueModels/{issue_model}
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public IssueModel.Builder clearName()
         Immutable. The resource name of the issue model.
         Format:
         projects/{project}/locations/{location}/issueModels/{issue_model}
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setNameBytes

        public IssueModel.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the issue model.
         Format:
         projects/{project}/locations/{location}/issueModels/{issue_model}
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         The representative name for the issue model.
         
        string display_name = 2;
        Specified by:
        getDisplayName in interface IssueModelOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The representative name for the issue model.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface IssueModelOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public IssueModel.Builder setDisplayName​(String value)
         The representative name for the issue model.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public IssueModel.Builder clearDisplayName()
         The representative name for the issue model.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public IssueModel.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         The representative name for the issue model.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

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

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface IssueModelOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public IssueModel.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public IssueModel.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public IssueModel.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public IssueModel.Builder clearCreateTime()
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time at which this issue model was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface IssueModelOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface IssueModelOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface IssueModelOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public IssueModel.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public IssueModel.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public IssueModel.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public IssueModel.Builder clearUpdateTime()
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The most recent time at which the issue model was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface IssueModelOrBuilder
      • getIssueCount

        public long getIssueCount()
         Output only. Number of issues in this issue model.
         
        int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIssueCount in interface IssueModelOrBuilder
        Returns:
        The issueCount.
      • setIssueCount

        public IssueModel.Builder setIssueCount​(long value)
         Output only. Number of issues in this issue model.
         
        int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The issueCount to set.
        Returns:
        This builder for chaining.
      • clearIssueCount

        public IssueModel.Builder clearIssueCount()
         Output only. Number of issues in this issue model.
         
        int64 issue_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. State of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface IssueModelOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public IssueModel.Builder setStateValue​(int value)
         Output only. State of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public IssueModel.State getState()
         Output only. State of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface IssueModelOrBuilder
        Returns:
        The state.
      • setState

        public IssueModel.Builder setState​(IssueModel.State value)
         Output only. State of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public IssueModel.Builder clearState()
         Output only. State of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasInputDataConfig

        public boolean hasInputDataConfig()
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
        Specified by:
        hasInputDataConfig in interface IssueModelOrBuilder
        Returns:
        Whether the inputDataConfig field is set.
      • getInputDataConfig

        public IssueModel.InputDataConfig getInputDataConfig()
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
        Specified by:
        getInputDataConfig in interface IssueModelOrBuilder
        Returns:
        The inputDataConfig.
      • setInputDataConfig

        public IssueModel.Builder setInputDataConfig​(IssueModel.InputDataConfig value)
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
      • setInputDataConfig

        public IssueModel.Builder setInputDataConfig​(IssueModel.InputDataConfig.Builder builderForValue)
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
      • mergeInputDataConfig

        public IssueModel.Builder mergeInputDataConfig​(IssueModel.InputDataConfig value)
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
      • clearInputDataConfig

        public IssueModel.Builder clearInputDataConfig()
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
      • getInputDataConfigBuilder

        public IssueModel.InputDataConfig.Builder getInputDataConfigBuilder()
         Configs for the input data that used to create the issue model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig input_data_config = 6;
      • hasTrainingStats

        public boolean hasTrainingStats()
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        hasTrainingStats in interface IssueModelOrBuilder
        Returns:
        Whether the trainingStats field is set.
      • getTrainingStats

        public IssueModelLabelStats getTrainingStats()
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getTrainingStats in interface IssueModelOrBuilder
        Returns:
        The trainingStats.
      • setTrainingStats

        public IssueModel.Builder setTrainingStats​(IssueModelLabelStats value)
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      • setTrainingStats

        public IssueModel.Builder setTrainingStats​(IssueModelLabelStats.Builder builderForValue)
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      • mergeTrainingStats

        public IssueModel.Builder mergeTrainingStats​(IssueModelLabelStats value)
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      • clearTrainingStats

        public IssueModel.Builder clearTrainingStats()
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      • getTrainingStatsBuilder

        public IssueModelLabelStats.Builder getTrainingStatsBuilder()
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      • getTrainingStatsOrBuilder

        public IssueModelLabelStatsOrBuilder getTrainingStatsOrBuilder()
         Output only. Immutable. The issue model's label statistics on its training
         data.
         
        .google.cloud.contactcenterinsights.v1.IssueModelLabelStats training_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getTrainingStatsOrBuilder in interface IssueModelOrBuilder
      • getModelTypeValue

        public int getModelTypeValue()
         Type of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;
        Specified by:
        getModelTypeValue in interface IssueModelOrBuilder
        Returns:
        The enum numeric value on the wire for modelType.
      • setModelTypeValue

        public IssueModel.Builder setModelTypeValue​(int value)
         Type of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;
        Parameters:
        value - The enum numeric value on the wire for modelType to set.
        Returns:
        This builder for chaining.
      • setModelType

        public IssueModel.Builder setModelType​(IssueModel.ModelType value)
         Type of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;
        Parameters:
        value - The modelType to set.
        Returns:
        This builder for chaining.
      • clearModelType

        public IssueModel.Builder clearModelType()
         Type of the model.
         
        .google.cloud.contactcenterinsights.v1.IssueModel.ModelType model_type = 9;
        Returns:
        This builder for chaining.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Language of the model.
         
        string language_code = 10;
        Specified by:
        getLanguageCodeBytes in interface IssueModelOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public IssueModel.Builder setLanguageCode​(String value)
         Language of the model.
         
        string language_code = 10;
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public IssueModel.Builder clearLanguageCode()
         Language of the model.
         
        string language_code = 10;
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public IssueModel.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Language of the model.
         
        string language_code = 10;
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final IssueModel.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>
      • mergeUnknownFields

        public final IssueModel.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IssueModel.Builder>