Class ConversationDataset.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversationDataset.Builder>
com.google.cloud.dialogflow.v2.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.GeneratedMessage.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 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.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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];
    • getInputConfigOrBuilder

      public InputConfigOrBuilder getInputConfigOrBuilder()
       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:
      getInputConfigOrBuilder in interface ConversationDatasetOrBuilder
    • 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];
    • getConversationInfoOrBuilder

      public ConversationInfoOrBuilder getConversationInfoOrBuilder()
       Output only. Metadata set during conversation data import.
       
      .google.cloud.dialogflow.v2.ConversationInfo conversation_info = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConversationInfoOrBuilder in interface ConversationDatasetOrBuilder
    • 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.
    • hasSatisfiesPzi

      public boolean hasSatisfiesPzi()
       Output only. A read only boolean field reflecting Zone Isolation status of
       the dataset.
       
      optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSatisfiesPzi in interface ConversationDatasetOrBuilder
      Returns:
      Whether the satisfiesPzi field is set.
    • getSatisfiesPzi

      public boolean getSatisfiesPzi()
       Output only. A read only boolean field reflecting Zone Isolation status of
       the dataset.
       
      optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSatisfiesPzi in interface ConversationDatasetOrBuilder
      Returns:
      The satisfiesPzi.
    • setSatisfiesPzi

      public ConversationDataset.Builder setSatisfiesPzi(boolean value)
       Output only. A read only boolean field reflecting Zone Isolation status of
       the dataset.
       
      optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The satisfiesPzi to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzi

      public ConversationDataset.Builder clearSatisfiesPzi()
       Output only. A read only boolean field reflecting Zone Isolation status of
       the dataset.
       
      optional bool satisfies_pzi = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasSatisfiesPzs

      public boolean hasSatisfiesPzs()
       Output only. A read only boolean field reflecting Zone Separation status of
       the dataset.
       
      optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasSatisfiesPzs in interface ConversationDatasetOrBuilder
      Returns:
      Whether the satisfiesPzs field is set.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. A read only boolean field reflecting Zone Separation status of
       the dataset.
       
      optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSatisfiesPzs in interface ConversationDatasetOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public ConversationDataset.Builder setSatisfiesPzs(boolean value)
       Output only. A read only boolean field reflecting Zone Separation status of
       the dataset.
       
      optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The satisfiesPzs to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzs

      public ConversationDataset.Builder clearSatisfiesPzs()
       Output only. A read only boolean field reflecting Zone Separation status of
       the dataset.
       
      optional bool satisfies_pzs = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.