Class ConverseConversationRequest

  • All Implemented Interfaces:
    ConverseConversationRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ConverseConversationRequest
    extends com.google.protobuf.GeneratedMessageV3
    implements ConverseConversationRequestOrBuilder
     Request message for
     [ConversationalSearchService.ConverseConversation][google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation]
     method.
     
    Protobuf type google.cloud.discoveryengine.v1beta.ConverseConversationRequest
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

        public String getName()
         Required. The resource name of the Conversation to get. Format:
         `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
         Use
         `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
         to activate auto session mode, which automatically creates a new
         conversation inside a ConverseConversation session.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface ConverseConversationRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the Conversation to get. Format:
         `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`.
         Use
         `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/conversations/-`
         to activate auto session mode, which automatically creates a new
         conversation inside a ConverseConversation session.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface ConverseConversationRequestOrBuilder
        Returns:
        The bytes for name.
      • hasQuery

        public boolean hasQuery()
         Required. Current user input.
         
        .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasQuery in interface ConverseConversationRequestOrBuilder
        Returns:
        Whether the query field is set.
      • getQuery

        public TextInput getQuery()
         Required. Current user input.
         
        .google.cloud.discoveryengine.v1beta.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getQuery in interface ConverseConversationRequestOrBuilder
        Returns:
        The query.
      • getServingConfig

        public String getServingConfig()
         The resource name of the Serving Config to use. Format:
         `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
         If this is not set, the default serving config will be used.
         
        string serving_config = 3 [(.google.api.resource_reference) = { ... }
        Specified by:
        getServingConfig in interface ConverseConversationRequestOrBuilder
        Returns:
        The servingConfig.
      • getServingConfigBytes

        public com.google.protobuf.ByteString getServingConfigBytes()
         The resource name of the Serving Config to use. Format:
         `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
         If this is not set, the default serving config will be used.
         
        string serving_config = 3 [(.google.api.resource_reference) = { ... }
        Specified by:
        getServingConfigBytes in interface ConverseConversationRequestOrBuilder
        Returns:
        The bytes for servingConfig.
      • hasConversation

        public boolean hasConversation()
         The conversation to be used by auto session only. The name field will be
         ignored as we automatically assign new name for the conversation in auto
         session.
         
        .google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
        Specified by:
        hasConversation in interface ConverseConversationRequestOrBuilder
        Returns:
        Whether the conversation field is set.
      • getConversation

        public Conversation getConversation()
         The conversation to be used by auto session only. The name field will be
         ignored as we automatically assign new name for the conversation in auto
         session.
         
        .google.cloud.discoveryengine.v1beta.Conversation conversation = 5;
        Specified by:
        getConversation in interface ConverseConversationRequestOrBuilder
        Returns:
        The conversation.
      • getUserLabelsCount

        public int getUserLabelsCount()
        Description copied from interface: ConverseConversationRequestOrBuilder
         The user labels applied to a resource must meet the following requirements:
        
         * Each resource can have multiple labels, up to a maximum of 64.
         * Each label must be a key-value pair.
         * Keys have a minimum length of 1 character and a maximum length of 63
           characters and cannot be empty. Values can be empty and have a maximum
           length of 63 characters.
         * Keys and values can contain only lowercase letters, numeric characters,
           underscores, and dashes. All characters must use UTF-8 encoding, and
           international characters are allowed.
         * The key portion of a label must be unique. However, you can use the same
           key with multiple resources.
         * Keys must start with a lowercase letter or international character.
        
         See [Google Cloud
         Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
         for more details.
         
        map<string, string> user_labels = 7;
        Specified by:
        getUserLabelsCount in interface ConverseConversationRequestOrBuilder
      • containsUserLabels

        public boolean containsUserLabels​(String key)
         The user labels applied to a resource must meet the following requirements:
        
         * Each resource can have multiple labels, up to a maximum of 64.
         * Each label must be a key-value pair.
         * Keys have a minimum length of 1 character and a maximum length of 63
           characters and cannot be empty. Values can be empty and have a maximum
           length of 63 characters.
         * Keys and values can contain only lowercase letters, numeric characters,
           underscores, and dashes. All characters must use UTF-8 encoding, and
           international characters are allowed.
         * The key portion of a label must be unique. However, you can use the same
           key with multiple resources.
         * Keys must start with a lowercase letter or international character.
        
         See [Google Cloud
         Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
         for more details.
         
        map<string, string> user_labels = 7;
        Specified by:
        containsUserLabels in interface ConverseConversationRequestOrBuilder
      • getUserLabelsMap

        public Map<String,​String> getUserLabelsMap()
         The user labels applied to a resource must meet the following requirements:
        
         * Each resource can have multiple labels, up to a maximum of 64.
         * Each label must be a key-value pair.
         * Keys have a minimum length of 1 character and a maximum length of 63
           characters and cannot be empty. Values can be empty and have a maximum
           length of 63 characters.
         * Keys and values can contain only lowercase letters, numeric characters,
           underscores, and dashes. All characters must use UTF-8 encoding, and
           international characters are allowed.
         * The key portion of a label must be unique. However, you can use the same
           key with multiple resources.
         * Keys must start with a lowercase letter or international character.
        
         See [Google Cloud
         Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
         for more details.
         
        map<string, string> user_labels = 7;
        Specified by:
        getUserLabelsMap in interface ConverseConversationRequestOrBuilder
      • getUserLabelsOrDefault

        public String getUserLabelsOrDefault​(String key,
                                             String defaultValue)
         The user labels applied to a resource must meet the following requirements:
        
         * Each resource can have multiple labels, up to a maximum of 64.
         * Each label must be a key-value pair.
         * Keys have a minimum length of 1 character and a maximum length of 63
           characters and cannot be empty. Values can be empty and have a maximum
           length of 63 characters.
         * Keys and values can contain only lowercase letters, numeric characters,
           underscores, and dashes. All characters must use UTF-8 encoding, and
           international characters are allowed.
         * The key portion of a label must be unique. However, you can use the same
           key with multiple resources.
         * Keys must start with a lowercase letter or international character.
        
         See [Google Cloud
         Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
         for more details.
         
        map<string, string> user_labels = 7;
        Specified by:
        getUserLabelsOrDefault in interface ConverseConversationRequestOrBuilder
      • getUserLabelsOrThrow

        public String getUserLabelsOrThrow​(String key)
         The user labels applied to a resource must meet the following requirements:
        
         * Each resource can have multiple labels, up to a maximum of 64.
         * Each label must be a key-value pair.
         * Keys have a minimum length of 1 character and a maximum length of 63
           characters and cannot be empty. Values can be empty and have a maximum
           length of 63 characters.
         * Keys and values can contain only lowercase letters, numeric characters,
           underscores, and dashes. All characters must use UTF-8 encoding, and
           international characters are allowed.
         * The key portion of a label must be unique. However, you can use the same
           key with multiple resources.
         * Keys must start with a lowercase letter or international character.
        
         See [Google Cloud
         Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
         for more details.
         
        map<string, string> user_labels = 7;
        Specified by:
        getUserLabelsOrThrow in interface ConverseConversationRequestOrBuilder
      • hasSummarySpec

        public boolean hasSummarySpec()
         A specification for configuring the summary returned in the response.
         
        .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8;
        Specified by:
        hasSummarySpec in interface ConverseConversationRequestOrBuilder
        Returns:
        Whether the summarySpec field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 ConverseConversationRequest parseFrom​(ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected ConverseConversationRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ConverseConversationRequest> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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