Class ConversationMessage

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.ConversationMessage
All Implemented Interfaces:
ConversationMessageOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConversationMessage extends com.google.protobuf.GeneratedMessage implements ConversationMessageOrBuilder
 Defines a conversation message.
 
Protobuf type google.cloud.discoveryengine.v1beta.ConversationMessage
See Also:
  • Field Details

  • 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
    • getMessageCase

      public ConversationMessage.MessageCase getMessageCase()
      Specified by:
      getMessageCase in interface ConversationMessageOrBuilder
    • hasUserInput

      public boolean hasUserInput()
       User text input.
       
      .google.cloud.discoveryengine.v1beta.TextInput user_input = 1;
      Specified by:
      hasUserInput in interface ConversationMessageOrBuilder
      Returns:
      Whether the userInput field is set.
    • getUserInput

      public TextInput getUserInput()
       User text input.
       
      .google.cloud.discoveryengine.v1beta.TextInput user_input = 1;
      Specified by:
      getUserInput in interface ConversationMessageOrBuilder
      Returns:
      The userInput.
    • getUserInputOrBuilder

      public TextInputOrBuilder getUserInputOrBuilder()
       User text input.
       
      .google.cloud.discoveryengine.v1beta.TextInput user_input = 1;
      Specified by:
      getUserInputOrBuilder in interface ConversationMessageOrBuilder
    • hasReply

      public boolean hasReply()
       Search reply.
       
      .google.cloud.discoveryengine.v1beta.Reply reply = 2;
      Specified by:
      hasReply in interface ConversationMessageOrBuilder
      Returns:
      Whether the reply field is set.
    • getReply

      public Reply getReply()
       Search reply.
       
      .google.cloud.discoveryengine.v1beta.Reply reply = 2;
      Specified by:
      getReply in interface ConversationMessageOrBuilder
      Returns:
      The reply.
    • getReplyOrBuilder

      public ReplyOrBuilder getReplyOrBuilder()
       Search reply.
       
      .google.cloud.discoveryengine.v1beta.Reply reply = 2;
      Specified by:
      getReplyOrBuilder in interface ConversationMessageOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Message creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ConversationMessageOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Message creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ConversationMessageOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Message creation timestamp.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ConversationMessageOrBuilder
    • 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 ConversationMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ConversationMessage.Builder newBuilder()
    • newBuilder

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

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

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

      public static ConversationMessage getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ConversationMessage> 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 ConversationMessage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder