Class ConversationDataset.Builder

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

    public static final class ConversationDataset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ConversationDataset.Builder>
    implements ConversationDatasetOrBuilder
     Represents a conversation dataset that a user imports raw data into.
     The data inside ConversationDataset can not be changed after
     ImportConversationData finishes (and calling ImportConversationData on a
     dataset that already has data is not allowed).
     
    Protobuf type google.cloud.dialogflow.v2.ConversationDataset
    • 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<ConversationDataset.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         Output only. ConversationDataset resource name. Format:
         `projects/<Project ID>/locations/<Location
         ID>/conversationDatasets/<Conversation Dataset ID>`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface ConversationDatasetOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. ConversationDataset resource name. Format:
         `projects/<Project ID>/locations/<Location
         ID>/conversationDatasets/<Conversation Dataset ID>`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface ConversationDatasetOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ConversationDataset.Builder setName​(String value)
         Output only. ConversationDataset resource name. Format:
         `projects/<Project ID>/locations/<Location
         ID>/conversationDatasets/<Conversation Dataset ID>`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ConversationDataset.Builder clearName()
         Output only. ConversationDataset resource name. Format:
         `projects/<Project ID>/locations/<Location
         ID>/conversationDatasets/<Conversation Dataset ID>`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ConversationDataset.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. ConversationDataset resource name. Format:
         `projects/<Project ID>/locations/<Location
         ID>/conversationDatasets/<Conversation Dataset ID>`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         Required. The display name of the dataset. Maximum of 64 bytes.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayName in interface ConversationDatasetOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Required. The display name of the dataset. Maximum of 64 bytes.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDisplayNameBytes in interface ConversationDatasetOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public ConversationDataset.Builder setDisplayName​(String value)
         Required. The display name of the dataset. Maximum of 64 bytes.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public ConversationDataset.Builder clearDisplayName()
         Required. The display name of the dataset. Maximum of 64 bytes.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public ConversationDataset.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Required. The display name of the dataset. Maximum of 64 bytes.
         
        string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Optional. The description of the dataset. Maximum of 10000 bytes.
         
        string description = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface ConversationDatasetOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. The description of the dataset. Maximum of 10000 bytes.
         
        string description = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface ConversationDatasetOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public ConversationDataset.Builder setDescription​(String value)
         Optional. The description of the dataset. Maximum of 10000 bytes.
         
        string description = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public ConversationDataset.Builder clearDescription()
         Optional. The description of the dataset. Maximum of 10000 bytes.
         
        string description = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public ConversationDataset.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional. The description of the dataset. Maximum of 10000 bytes.
         
        string description = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface ConversationDatasetOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface ConversationDatasetOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public ConversationDataset.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public ConversationDataset.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public ConversationDataset.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public ConversationDataset.Builder clearCreateTime()
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Creation time of this dataset.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface ConversationDatasetOrBuilder
      • hasInputConfig

        public boolean hasInputConfig()
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasInputConfig in interface ConversationDatasetOrBuilder
        Returns:
        Whether the inputConfig field is set.
      • getInputConfig

        public InputConfig getInputConfig()
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getInputConfig in interface ConversationDatasetOrBuilder
        Returns:
        The inputConfig.
      • setInputConfig

        public ConversationDataset.Builder setInputConfig​(InputConfig value)
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setInputConfig

        public ConversationDataset.Builder setInputConfig​(InputConfig.Builder builderForValue)
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeInputConfig

        public ConversationDataset.Builder mergeInputConfig​(InputConfig value)
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearInputConfig

        public ConversationDataset.Builder clearInputConfig()
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getInputConfigBuilder

        public InputConfig.Builder getInputConfigBuilder()
         Output only. Input configurations set during conversation data import.
         
        .google.cloud.dialogflow.v2.InputConfig input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasConversationInfo

        public boolean hasConversationInfo()
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasConversationInfo in interface ConversationDatasetOrBuilder
        Returns:
        Whether the conversationInfo field is set.
      • getConversationInfo

        public ConversationInfo getConversationInfo()
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConversationInfo in interface ConversationDatasetOrBuilder
        Returns:
        The conversationInfo.
      • setConversationInfo

        public ConversationDataset.Builder setConversationInfo​(ConversationInfo value)
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setConversationInfo

        public ConversationDataset.Builder setConversationInfo​(ConversationInfo.Builder builderForValue)
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeConversationInfo

        public ConversationDataset.Builder mergeConversationInfo​(ConversationInfo value)
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearConversationInfo

        public ConversationDataset.Builder clearConversationInfo()
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getConversationInfoBuilder

        public ConversationInfo.Builder getConversationInfoBuilder()
         Output only. Metadata set during conversation data import.
         
        .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getConversationCount

        public long getConversationCount()
         Output only. The number of conversations this conversation dataset
         contains.
         
        int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getConversationCount in interface ConversationDatasetOrBuilder
        Returns:
        The conversationCount.
      • setConversationCount

        public ConversationDataset.Builder setConversationCount​(long value)
         Output only. The number of conversations this conversation dataset
         contains.
         
        int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The conversationCount to set.
        Returns:
        This builder for chaining.
      • clearConversationCount

        public ConversationDataset.Builder clearConversationCount()
         Output only. The number of conversations this conversation dataset
         contains.
         
        int64 conversation_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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