Class Analysis.Builder

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

    public static final class Analysis.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Analysis.Builder>
    implements AnalysisOrBuilder
     The analysis resource.
     
    Protobuf type google.cloud.contactcenterinsights.v1.Analysis
    • 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<Analysis.Builder>
      • clear

        public Analysis.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<Analysis.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<Analysis.Builder>
      • getDefaultInstanceForType

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

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

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

        public Analysis.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<Analysis.Builder>
      • setField

        public Analysis.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<Analysis.Builder>
      • clearField

        public Analysis.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<Analysis.Builder>
      • clearOneof

        public Analysis.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<Analysis.Builder>
      • setRepeatedField

        public Analysis.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<Analysis.Builder>
      • addRepeatedField

        public Analysis.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<Analysis.Builder>
      • mergeFrom

        public Analysis.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<Analysis.Builder>
      • isInitialized

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

        public Analysis.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<Analysis.Builder>
        Throws:
        IOException
      • getName

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

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

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

        public Analysis.Builder clearName()
         Immutable. The resource name of the analysis.
         Format:
         projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Analysis.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the analysis.
         Format:
         projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasRequestTime

        public boolean hasRequestTime()
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasRequestTime in interface AnalysisOrBuilder
        Returns:
        Whether the requestTime field is set.
      • getRequestTime

        public com.google.protobuf.Timestamp getRequestTime()
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRequestTime in interface AnalysisOrBuilder
        Returns:
        The requestTime.
      • setRequestTime

        public Analysis.Builder setRequestTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setRequestTime

        public Analysis.Builder setRequestTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeRequestTime

        public Analysis.Builder mergeRequestTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearRequestTime

        public Analysis.Builder clearRequestTime()
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRequestTimeBuilder

        public com.google.protobuf.Timestamp.Builder getRequestTimeBuilder()
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRequestTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder()
         Output only. The time at which the analysis was requested.
         
        .google.protobuf.Timestamp request_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRequestTimeOrBuilder in interface AnalysisOrBuilder
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time at which the analysis was created, which occurs when
         the long-running operation completes.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface AnalysisOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time at which the analysis was created, which occurs when
         the long-running operation completes.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface AnalysisOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Analysis.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the analysis was created, which occurs when
         the long-running operation completes.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Analysis.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time at which the analysis was created, which occurs when
         the long-running operation completes.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Analysis.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which the analysis was created, which occurs when
         the long-running operation completes.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Analysis.Builder clearCreateTime()
         Output only. The time at which the analysis was created, which occurs when
         the long-running operation completes.
         
        .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 the analysis was created, which occurs when
         the long-running operation completes.
         
        .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 the analysis was created, which occurs when
         the long-running operation completes.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface AnalysisOrBuilder
      • hasAnalysisResult

        public boolean hasAnalysisResult()
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAnalysisResult in interface AnalysisOrBuilder
        Returns:
        Whether the analysisResult field is set.
      • getAnalysisResult

        public AnalysisResult getAnalysisResult()
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAnalysisResult in interface AnalysisOrBuilder
        Returns:
        The analysisResult.
      • setAnalysisResult

        public Analysis.Builder setAnalysisResult​(AnalysisResult value)
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setAnalysisResult

        public Analysis.Builder setAnalysisResult​(AnalysisResult.Builder builderForValue)
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeAnalysisResult

        public Analysis.Builder mergeAnalysisResult​(AnalysisResult value)
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearAnalysisResult

        public Analysis.Builder clearAnalysisResult()
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAnalysisResultBuilder

        public AnalysisResult.Builder getAnalysisResultBuilder()
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getAnalysisResultOrBuilder

        public AnalysisResultOrBuilder getAnalysisResultOrBuilder()
         Output only. The result of the analysis, which is populated when the
         analysis finishes.
         
        .google.cloud.contactcenterinsights.v1.AnalysisResult analysis_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAnalysisResultOrBuilder in interface AnalysisOrBuilder
      • hasAnnotatorSelector

        public boolean hasAnnotatorSelector()
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
        Specified by:
        hasAnnotatorSelector in interface AnalysisOrBuilder
        Returns:
        Whether the annotatorSelector field is set.
      • getAnnotatorSelector

        public AnnotatorSelector getAnnotatorSelector()
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
        Specified by:
        getAnnotatorSelector in interface AnalysisOrBuilder
        Returns:
        The annotatorSelector.
      • setAnnotatorSelector

        public Analysis.Builder setAnnotatorSelector​(AnnotatorSelector value)
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
      • setAnnotatorSelector

        public Analysis.Builder setAnnotatorSelector​(AnnotatorSelector.Builder builderForValue)
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
      • mergeAnnotatorSelector

        public Analysis.Builder mergeAnnotatorSelector​(AnnotatorSelector value)
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
      • clearAnnotatorSelector

        public Analysis.Builder clearAnnotatorSelector()
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
      • getAnnotatorSelectorBuilder

        public AnnotatorSelector.Builder getAnnotatorSelectorBuilder()
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
      • getAnnotatorSelectorOrBuilder

        public AnnotatorSelectorOrBuilder getAnnotatorSelectorOrBuilder()
         To select the annotators to run and the phrase matchers to use
         (if any). If not specified, all annotators will be run.
         
        .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8;
        Specified by:
        getAnnotatorSelectorOrBuilder in interface AnalysisOrBuilder
      • setUnknownFields

        public final Analysis.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<Analysis.Builder>
      • mergeUnknownFields

        public final Analysis.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<Analysis.Builder>