Class Conversation.ContextReference.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.Builder>
com.google.cloud.dialogflow.v2.Conversation.ContextReference.Builder
All Implemented Interfaces:
Conversation.ContextReferenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Conversation.ContextReference

public static final class Conversation.ContextReference.Builder extends com.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.Builder> implements Conversation.ContextReferenceOrBuilder
 Represents a section of ingested context information.
 
Protobuf type google.cloud.dialogflow.v2.Conversation.ContextReference
  • 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<Conversation.ContextReference.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<Conversation.ContextReference.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<Conversation.ContextReference.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Conversation.ContextReference buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public Conversation.ContextReference.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<Conversation.ContextReference.Builder>
      Throws:
      IOException
    • getContextContentsList

      public List<Conversation.ContextReference.ContextContent> getContextContentsList()
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextContentsList in interface Conversation.ContextReferenceOrBuilder
    • getContextContentsCount

      public int getContextContentsCount()
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextContentsCount in interface Conversation.ContextReferenceOrBuilder
    • getContextContents

      public Conversation.ContextReference.ContextContent getContextContents(int index)
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextContents in interface Conversation.ContextReferenceOrBuilder
    • setContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • setContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllContextContents

       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearContextContents

      public Conversation.ContextReference.Builder clearContextContents()
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeContextContents

      public Conversation.ContextReference.Builder removeContextContents(int index)
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContextContentsBuilder

      public Conversation.ContextReference.ContextContent.Builder getContextContentsBuilder(int index)
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContextContentsOrBuilder

      public Conversation.ContextReference.ContextContentOrBuilder getContextContentsOrBuilder(int index)
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextContentsOrBuilder in interface Conversation.ContextReferenceOrBuilder
    • getContextContentsOrBuilderList

      public List<? extends Conversation.ContextReference.ContextContentOrBuilder> getContextContentsOrBuilderList()
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextContentsOrBuilderList in interface Conversation.ContextReferenceOrBuilder
    • addContextContentsBuilder

      public Conversation.ContextReference.ContextContent.Builder addContextContentsBuilder()
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • addContextContentsBuilder

      public Conversation.ContextReference.ContextContent.Builder addContextContentsBuilder(int index)
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContextContentsBuilderList

      public List<Conversation.ContextReference.ContextContent.Builder> getContextContentsBuilderList()
       Required. The list of content updates for a context reference.
       
      repeated .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent context_contents = 1 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateModeValue

      public int getUpdateModeValue()
       Required. The mode in which context reference contents are updated.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.UpdateMode update_mode = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateModeValue in interface Conversation.ContextReferenceOrBuilder
      Returns:
      The enum numeric value on the wire for updateMode.
    • setUpdateModeValue

      public Conversation.ContextReference.Builder setUpdateModeValue(int value)
       Required. The mode in which context reference contents are updated.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.UpdateMode update_mode = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for updateMode to set.
      Returns:
      This builder for chaining.
    • getUpdateMode

       Required. The mode in which context reference contents are updated.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.UpdateMode update_mode = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMode in interface Conversation.ContextReferenceOrBuilder
      Returns:
      The updateMode.
    • setUpdateMode

       Required. The mode in which context reference contents are updated.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.UpdateMode update_mode = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The updateMode to set.
      Returns:
      This builder for chaining.
    • clearUpdateMode

      public Conversation.ContextReference.Builder clearUpdateMode()
       Required. The mode in which context reference contents are updated.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.UpdateMode update_mode = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       Optional. The language of the information ingested, defaults to "en-US"
       if not set.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface Conversation.ContextReferenceOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The language of the information ingested, defaults to "en-US"
       if not set.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface Conversation.ContextReferenceOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public Conversation.ContextReference.Builder setLanguageCode(String value)
       Optional. The language of the information ingested, defaults to "en-US"
       if not set.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public Conversation.ContextReference.Builder clearLanguageCode()
       Optional. The language of the information ingested, defaults to "en-US"
       if not set.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public Conversation.ContextReference.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. The language of the information ingested, defaults to "en-US"
       if not set.
       
      string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface Conversation.ContextReferenceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface Conversation.ContextReferenceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Conversation.ContextReference.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Conversation.ContextReference.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Conversation.ContextReference.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Conversation.ContextReference.Builder clearCreateTime()
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time the context reference was first created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface Conversation.ContextReferenceOrBuilder