Class Conversation.ContextReference.ContextContent.Builder

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

public static final class Conversation.ContextReference.ContextContent.Builder extends com.google.protobuf.GeneratedMessage.Builder<Conversation.ContextReference.ContextContent.Builder> implements Conversation.ContextReference.ContextContentOrBuilder
 Contents ingested.
 
Protobuf type google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent
  • 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.ContextContent.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.ContextContent.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.ContextContent.Builder>
    • getDefaultInstanceForType

      public Conversation.ContextReference.ContextContent 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

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

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

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

      public String getContent()
       Required. The information ingested in a single request.
       
      string content = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContent in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       Required. The information ingested in a single request.
       
      string content = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentBytes in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The bytes for content.
    • setContent

       Required. The information ingested in a single request.
       
      string content = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The content to set.
      Returns:
      This builder for chaining.
    • clearContent

       Required. The information ingested in a single request.
       
      string content = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setContentBytes

      public Conversation.ContextReference.ContextContent.Builder setContentBytes(com.google.protobuf.ByteString value)
       Required. The information ingested in a single request.
       
      string content = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for content to set.
      Returns:
      This builder for chaining.
    • getContentFormatValue

      public int getContentFormatValue()
       Required. The format of the ingested string.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentFormatValue in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The enum numeric value on the wire for contentFormat.
    • setContentFormatValue

      public Conversation.ContextReference.ContextContent.Builder setContentFormatValue(int value)
       Required. The format of the ingested string.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for contentFormat to set.
      Returns:
      This builder for chaining.
    • getContentFormat

       Required. The format of the ingested string.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentFormat in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The contentFormat.
    • setContentFormat

       Required. The format of the ingested string.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The contentFormat to set.
      Returns:
      This builder for chaining.
    • clearContentFormat

       Required. The format of the ingested string.
       
      .google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasIngestionTime

      public boolean hasIngestionTime()
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasIngestionTime in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      Whether the ingestionTime field is set.
    • getIngestionTime

      public com.google.protobuf.Timestamp getIngestionTime()
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIngestionTime in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The ingestionTime.
    • setIngestionTime

      public Conversation.ContextReference.ContextContent.Builder setIngestionTime(com.google.protobuf.Timestamp value)
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setIngestionTime

      public Conversation.ContextReference.ContextContent.Builder setIngestionTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeIngestionTime

      public Conversation.ContextReference.ContextContent.Builder mergeIngestionTime(com.google.protobuf.Timestamp value)
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearIngestionTime

       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getIngestionTimeBuilder

      public com.google.protobuf.Timestamp.Builder getIngestionTimeBuilder()
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getIngestionTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getIngestionTimeOrBuilder()
       Output only. The time when this information was incorporated into the
       relevant context reference.
       
      .google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIngestionTimeOrBuilder in interface Conversation.ContextReference.ContextContentOrBuilder
    • getAnswerRecord

      public String getAnswerRecord()
       If the context content was generated from a tool call, specify the
       answer record associated with the tool call.
       Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`.
       
      string answer_record = 4;
      Specified by:
      getAnswerRecord in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The answerRecord.
    • getAnswerRecordBytes

      public com.google.protobuf.ByteString getAnswerRecordBytes()
       If the context content was generated from a tool call, specify the
       answer record associated with the tool call.
       Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`.
       
      string answer_record = 4;
      Specified by:
      getAnswerRecordBytes in interface Conversation.ContextReference.ContextContentOrBuilder
      Returns:
      The bytes for answerRecord.
    • setAnswerRecord

       If the context content was generated from a tool call, specify the
       answer record associated with the tool call.
       Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`.
       
      string answer_record = 4;
      Parameters:
      value - The answerRecord to set.
      Returns:
      This builder for chaining.
    • clearAnswerRecord

       If the context content was generated from a tool call, specify the
       answer record associated with the tool call.
       Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`.
       
      string answer_record = 4;
      Returns:
      This builder for chaining.
    • setAnswerRecordBytes

      public Conversation.ContextReference.ContextContent.Builder setAnswerRecordBytes(com.google.protobuf.ByteString value)
       If the context content was generated from a tool call, specify the
       answer record associated with the tool call.
       Format: `projects/<Project ID>/locations/<Location
       ID>/answerRecords/<Answer Record ID>`.
       
      string answer_record = 4;
      Parameters:
      value - The bytes for answerRecord to set.
      Returns:
      This builder for chaining.