Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Conversation::ContextReference.
Represents a section of ingested context information.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#context_contents
def context_contents() -> ::Array<::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent>
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent>) — Required. The list of content updates for a context reference.
#context_contents=
def context_contents=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent>
Parameter
- value (::Array<::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent>) — Required. The list of content updates for a context reference.
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::ContextContent>) — Required. The list of content updates for a context reference.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The time the context reference was first created.
#language_code
def language_code() -> ::String
Returns
- (::String) — Optional. The language of the information ingested, defaults to "en-US" if not set.
#language_code=
def language_code=(value) -> ::String
Parameter
- value (::String) — Optional. The language of the information ingested, defaults to "en-US" if not set.
Returns
- (::String) — Optional. The language of the information ingested, defaults to "en-US" if not set.
#update_mode
def update_mode() -> ::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::UpdateMode
Returns
- (::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::UpdateMode) — Required. The mode in which context reference contents are updated.
#update_mode=
def update_mode=(value) -> ::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::UpdateMode
Parameter
- value (::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::UpdateMode) — Required. The mode in which context reference contents are updated.
Returns
- (::Google::Cloud::Dialogflow::V2::Conversation::ContextReference::UpdateMode) — Required. The mode in which context reference contents are updated.