Class Conversation

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.Conversation
All Implemented Interfaces:
ConversationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Conversation extends com.google.protobuf.GeneratedMessage implements ConversationOrBuilder
 Represents a conversation.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Conversation
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. The identifier of the conversation.
       If conversation ID is reused, interactions happened later than 48 hours of
       the conversation's create time will be ignored. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/conversations/<ConversationID>`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ConversationOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The identifier of the conversation.
       If conversation ID is reused, interactions happened later than 48 hours of
       the conversation's create time will be ignored. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/conversations/<ConversationID>`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ConversationOrBuilder
      Returns:
      The bytes for name.
    • getTypeValue

      public int getTypeValue()
       The type of the conversation.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Type type = 2;
      Specified by:
      getTypeValue in interface ConversationOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

      public Conversation.Type getType()
       The type of the conversation.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Type type = 2;
      Specified by:
      getType in interface ConversationOrBuilder
      Returns:
      The type.
    • getLanguageCode

      public String getLanguageCode()
       The language of the conversation, which is the language of the first
       request in the conversation.
       
      string language_code = 3;
      Specified by:
      getLanguageCode in interface ConversationOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       The language of the conversation, which is the language of the first
       request in the conversation.
       
      string language_code = 3;
      Specified by:
      getLanguageCodeBytes in interface ConversationOrBuilder
      Returns:
      The bytes for languageCode.
    • hasStartTime

      public boolean hasStartTime()
       Start time of the conversation, which is the time of the first request of
       the conversation.
       
      .google.protobuf.Timestamp start_time = 4;
      Specified by:
      hasStartTime in interface ConversationOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Start time of the conversation, which is the time of the first request of
       the conversation.
       
      .google.protobuf.Timestamp start_time = 4;
      Specified by:
      getStartTime in interface ConversationOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Start time of the conversation, which is the time of the first request of
       the conversation.
       
      .google.protobuf.Timestamp start_time = 4;
      Specified by:
      getStartTimeOrBuilder in interface ConversationOrBuilder
    • hasDuration

      public boolean hasDuration()
       Duration of the conversation.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      hasDuration in interface ConversationOrBuilder
      Returns:
      Whether the duration field is set.
    • getDuration

      public com.google.protobuf.Duration getDuration()
       Duration of the conversation.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      getDuration in interface ConversationOrBuilder
      Returns:
      The duration.
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       Duration of the conversation.
       
      .google.protobuf.Duration duration = 5;
      Specified by:
      getDurationOrBuilder in interface ConversationOrBuilder
    • hasMetrics

      public boolean hasMetrics()
       Conversation metrics.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics metrics = 6;
      Specified by:
      hasMetrics in interface ConversationOrBuilder
      Returns:
      Whether the metrics field is set.
    • getMetrics

      public Conversation.Metrics getMetrics()
       Conversation metrics.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics metrics = 6;
      Specified by:
      getMetrics in interface ConversationOrBuilder
      Returns:
      The metrics.
    • getMetricsOrBuilder

      public Conversation.MetricsOrBuilder getMetricsOrBuilder()
       Conversation metrics.
       
      .google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics metrics = 6;
      Specified by:
      getMetricsOrBuilder in interface ConversationOrBuilder
    • getIntentsList

      public List<Intent> getIntentsList()
       All the matched [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] in the
       conversation. Only `name` and `display_name` are filled in this message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;
      Specified by:
      getIntentsList in interface ConversationOrBuilder
    • getIntentsOrBuilderList

      public List<? extends IntentOrBuilder> getIntentsOrBuilderList()
       All the matched [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] in the
       conversation. Only `name` and `display_name` are filled in this message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;
      Specified by:
      getIntentsOrBuilderList in interface ConversationOrBuilder
    • getIntentsCount

      public int getIntentsCount()
       All the matched [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] in the
       conversation. Only `name` and `display_name` are filled in this message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;
      Specified by:
      getIntentsCount in interface ConversationOrBuilder
    • getIntents

      public Intent getIntents(int index)
       All the matched [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] in the
       conversation. Only `name` and `display_name` are filled in this message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;
      Specified by:
      getIntents in interface ConversationOrBuilder
    • getIntentsOrBuilder

      public IntentOrBuilder getIntentsOrBuilder(int index)
       All the matched [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] in the
       conversation. Only `name` and `display_name` are filled in this message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;
      Specified by:
      getIntentsOrBuilder in interface ConversationOrBuilder
    • getFlowsList

      public List<Flow> getFlowsList()
       All the [Flow][google.cloud.dialogflow.cx.v3beta1.Flow] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;
      Specified by:
      getFlowsList in interface ConversationOrBuilder
    • getFlowsOrBuilderList

      public List<? extends FlowOrBuilder> getFlowsOrBuilderList()
       All the [Flow][google.cloud.dialogflow.cx.v3beta1.Flow] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;
      Specified by:
      getFlowsOrBuilderList in interface ConversationOrBuilder
    • getFlowsCount

      public int getFlowsCount()
       All the [Flow][google.cloud.dialogflow.cx.v3beta1.Flow] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;
      Specified by:
      getFlowsCount in interface ConversationOrBuilder
    • getFlows

      public Flow getFlows(int index)
       All the [Flow][google.cloud.dialogflow.cx.v3beta1.Flow] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;
      Specified by:
      getFlows in interface ConversationOrBuilder
    • getFlowsOrBuilder

      public FlowOrBuilder getFlowsOrBuilder(int index)
       All the [Flow][google.cloud.dialogflow.cx.v3beta1.Flow] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;
      Specified by:
      getFlowsOrBuilder in interface ConversationOrBuilder
    • getPagesList

      public List<Page> getPagesList()
       All the [Page][google.cloud.dialogflow.cx.v3beta1.Page] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;
      Specified by:
      getPagesList in interface ConversationOrBuilder
    • getPagesOrBuilderList

      public List<? extends PageOrBuilder> getPagesOrBuilderList()
       All the [Page][google.cloud.dialogflow.cx.v3beta1.Page] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;
      Specified by:
      getPagesOrBuilderList in interface ConversationOrBuilder
    • getPagesCount

      public int getPagesCount()
       All the [Page][google.cloud.dialogflow.cx.v3beta1.Page] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;
      Specified by:
      getPagesCount in interface ConversationOrBuilder
    • getPages

      public Page getPages(int index)
       All the [Page][google.cloud.dialogflow.cx.v3beta1.Page] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;
      Specified by:
      getPages in interface ConversationOrBuilder
    • getPagesOrBuilder

      public PageOrBuilder getPagesOrBuilder(int index)
       All the [Page][google.cloud.dialogflow.cx.v3beta1.Page] the conversation
       has went through. Only `name` and `display_name` are filled in this
       message.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;
      Specified by:
      getPagesOrBuilder in interface ConversationOrBuilder
    • getInteractionsList

      public List<Conversation.Interaction> getInteractionsList()
       Interactions of the conversation.
       Only populated for `GetConversation` and empty for `ListConversations`.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
      Specified by:
      getInteractionsList in interface ConversationOrBuilder
    • getInteractionsOrBuilderList

      public List<? extends Conversation.InteractionOrBuilder> getInteractionsOrBuilderList()
       Interactions of the conversation.
       Only populated for `GetConversation` and empty for `ListConversations`.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
      Specified by:
      getInteractionsOrBuilderList in interface ConversationOrBuilder
    • getInteractionsCount

      public int getInteractionsCount()
       Interactions of the conversation.
       Only populated for `GetConversation` and empty for `ListConversations`.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
      Specified by:
      getInteractionsCount in interface ConversationOrBuilder
    • getInteractions

      public Conversation.Interaction getInteractions(int index)
       Interactions of the conversation.
       Only populated for `GetConversation` and empty for `ListConversations`.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
      Specified by:
      getInteractions in interface ConversationOrBuilder
    • getInteractionsOrBuilder

      public Conversation.InteractionOrBuilder getInteractionsOrBuilder(int index)
       Interactions of the conversation.
       Only populated for `GetConversation` and empty for `ListConversations`.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
      Specified by:
      getInteractionsOrBuilder in interface ConversationOrBuilder
    • hasEnvironment

      public boolean hasEnvironment()
       Environment of the conversation.
       Only `name` and `display_name` are filled in this message.
       
      .google.cloud.dialogflow.cx.v3beta1.Environment environment = 11;
      Specified by:
      hasEnvironment in interface ConversationOrBuilder
      Returns:
      Whether the environment field is set.
    • getEnvironment

      public Environment getEnvironment()
       Environment of the conversation.
       Only `name` and `display_name` are filled in this message.
       
      .google.cloud.dialogflow.cx.v3beta1.Environment environment = 11;
      Specified by:
      getEnvironment in interface ConversationOrBuilder
      Returns:
      The environment.
    • getEnvironmentOrBuilder

      public EnvironmentOrBuilder getEnvironmentOrBuilder()
       Environment of the conversation.
       Only `name` and `display_name` are filled in this message.
       
      .google.cloud.dialogflow.cx.v3beta1.Environment environment = 11;
      Specified by:
      getEnvironmentOrBuilder in interface ConversationOrBuilder
    • getFlowVersionsCount

      public int getFlowVersionsCount()
      Description copied from interface: ConversationOrBuilder
       Flow versions used in the conversation.
       
      map<string, int64> flow_versions = 12;
      Specified by:
      getFlowVersionsCount in interface ConversationOrBuilder
    • containsFlowVersions

      public boolean containsFlowVersions(String key)
       Flow versions used in the conversation.
       
      map<string, int64> flow_versions = 12;
      Specified by:
      containsFlowVersions in interface ConversationOrBuilder
    • getFlowVersions

      @Deprecated public Map<String,Long> getFlowVersions()
      Deprecated.
      Specified by:
      getFlowVersions in interface ConversationOrBuilder
    • getFlowVersionsMap

      public Map<String,Long> getFlowVersionsMap()
       Flow versions used in the conversation.
       
      map<string, int64> flow_versions = 12;
      Specified by:
      getFlowVersionsMap in interface ConversationOrBuilder
    • getFlowVersionsOrDefault

      public long getFlowVersionsOrDefault(String key, long defaultValue)
       Flow versions used in the conversation.
       
      map<string, int64> flow_versions = 12;
      Specified by:
      getFlowVersionsOrDefault in interface ConversationOrBuilder
    • getFlowVersionsOrThrow

      public long getFlowVersionsOrThrow(String key)
       Flow versions used in the conversation.
       
      map<string, int64> flow_versions = 12;
      Specified by:
      getFlowVersionsOrThrow in interface ConversationOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Conversation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Conversation parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Conversation parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Conversation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Conversation.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Conversation.Builder newBuilder()
    • newBuilder

      public static Conversation.Builder newBuilder(Conversation prototype)
    • toBuilder

      public Conversation.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Conversation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Conversation getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Conversation> parser()
    • getParserForType

      public com.google.protobuf.Parser<Conversation> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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