Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dialogflow
version: 2.46.0
last_generated_commit: 256b575f6915282b20795c13414b21f2c0af65db
last_generated_commit: 59d5f2b46924714af627ac29ea6de78641a00835
apis:
- path: google/cloud/dialogflow/v2beta1
service_config: dialogflow_v2beta1.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
TelephonyDtmfEvents,
VoiceSelectionParams,
)
from google.cloud.dialogflow_v2.types.ces_app import CesAppSpec
from google.cloud.dialogflow_v2.types.ces_tool import CesToolSpec
from google.cloud.dialogflow_v2.types.context import (
Context,
CreateContextRequest,
Expand Down Expand Up @@ -186,6 +188,7 @@
ListMessagesRequest,
ListMessagesResponse,
SearchKnowledgeAnswer,
SearchKnowledgeDebugInfo,
SearchKnowledgeRequest,
SearchKnowledgeResponse,
SuggestConversationSummaryRequest,
Expand Down Expand Up @@ -382,20 +385,24 @@
AudioInput,
AutomatedAgentReply,
CreateParticipantRequest,
DatastoreResponseReason,
DialogflowAssistAnswer,
DtmfParameters,
FaqAnswer,
GenerateSuggestionsResponse,
GetParticipantRequest,
IngestedContextReferenceDebugInfo,
InputTextConfig,
IntentSuggestion,
KnowledgeAssistAnswer,
KnowledgeAssistDebugInfo,
ListParticipantsRequest,
ListParticipantsResponse,
Message,
MessageAnnotation,
OutputAudio,
Participant,
ServiceLatency,
SmartReplyAnswer,
StreamingAnalyzeContentRequest,
StreamingAnalyzeContentResponse,
Expand Down Expand Up @@ -456,6 +463,7 @@
UpdateToolRequest,
)
from google.cloud.dialogflow_v2.types.tool_call import ToolCall, ToolCallResult
from google.cloud.dialogflow_v2.types.toolset import ToolsetTool
from google.cloud.dialogflow_v2.types.validation_result import (
ValidationError,
ValidationResult,
Expand Down Expand Up @@ -554,6 +562,8 @@
"SpeechModelVariant",
"SsmlVoiceGender",
"TelephonyDtmf",
"CesAppSpec",
"CesToolSpec",
"Context",
"CreateContextRequest",
"DeleteAllContextsRequest",
Expand All @@ -579,6 +589,7 @@
"ListMessagesRequest",
"ListMessagesResponse",
"SearchKnowledgeAnswer",
"SearchKnowledgeDebugInfo",
"SearchKnowledgeRequest",
"SearchKnowledgeResponse",
"SuggestConversationSummaryRequest",
Expand Down Expand Up @@ -751,15 +762,18 @@
"FaqAnswer",
"GenerateSuggestionsResponse",
"GetParticipantRequest",
"IngestedContextReferenceDebugInfo",
"InputTextConfig",
"IntentSuggestion",
"KnowledgeAssistAnswer",
"KnowledgeAssistDebugInfo",
"ListParticipantsRequest",
"ListParticipantsResponse",
"Message",
"MessageAnnotation",
"OutputAudio",
"Participant",
"ServiceLatency",
"SmartReplyAnswer",
"StreamingAnalyzeContentRequest",
"StreamingAnalyzeContentResponse",
Expand All @@ -774,6 +788,7 @@
"SuggestSmartRepliesRequest",
"SuggestSmartRepliesResponse",
"UpdateParticipantRequest",
"DatastoreResponseReason",
"CloudConversationDebuggingInfo",
"DetectIntentRequest",
"DetectIntentResponse",
Expand Down Expand Up @@ -812,6 +827,7 @@
"UpdateToolRequest",
"ToolCall",
"ToolCallResult",
"ToolsetTool",
"ValidationError",
"ValidationResult",
"CreateVersionRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@
TelephonyDtmfEvents,
VoiceSelectionParams,
)
from .types.ces_app import CesAppSpec
from .types.ces_tool import CesToolSpec
from .types.context import (
Context,
CreateContextRequest,
Expand Down Expand Up @@ -137,6 +139,7 @@
ListMessagesRequest,
ListMessagesResponse,
SearchKnowledgeAnswer,
SearchKnowledgeDebugInfo,
SearchKnowledgeRequest,
SearchKnowledgeResponse,
SuggestConversationSummaryRequest,
Expand Down Expand Up @@ -329,20 +332,24 @@
AudioInput,
AutomatedAgentReply,
CreateParticipantRequest,
DatastoreResponseReason,
DialogflowAssistAnswer,
DtmfParameters,
FaqAnswer,
GenerateSuggestionsResponse,
GetParticipantRequest,
IngestedContextReferenceDebugInfo,
InputTextConfig,
IntentSuggestion,
KnowledgeAssistAnswer,
KnowledgeAssistDebugInfo,
ListParticipantsRequest,
ListParticipantsResponse,
Message,
MessageAnnotation,
OutputAudio,
Participant,
ServiceLatency,
SmartReplyAnswer,
StreamingAnalyzeContentRequest,
StreamingAnalyzeContentResponse,
Expand Down Expand Up @@ -403,6 +410,7 @@
UpdateToolRequest,
)
from .types.tool_call import ToolCall, ToolCallResult
from .types.toolset import ToolsetTool
from .types.validation_result import ValidationError, ValidationResult
from .types.version import (
CreateVersionRequest,
Expand Down Expand Up @@ -561,6 +569,8 @@ def _get_version(dependency_name):
"BatchUpdateEntityTypesResponse",
"BatchUpdateIntentsRequest",
"BatchUpdateIntentsResponse",
"CesAppSpec",
"CesToolSpec",
"ClearSuggestionFeatureConfigOperationMetadata",
"ClearSuggestionFeatureConfigRequest",
"CloudConversationDebuggingInfo",
Expand Down Expand Up @@ -603,6 +613,7 @@ def _get_version(dependency_name):
"CreateToolRequest",
"CreateVersionRequest",
"CustomPronunciationParams",
"DatastoreResponseReason",
"DeleteAgentRequest",
"DeleteAllContextsRequest",
"DeleteContextRequest",
Expand Down Expand Up @@ -702,6 +713,7 @@ def _get_version(dependency_name):
"InferenceParameter",
"IngestContextReferencesRequest",
"IngestContextReferencesResponse",
"IngestedContextReferenceDebugInfo",
"InitializeEncryptionSpecMetadata",
"InitializeEncryptionSpecRequest",
"InitializeEncryptionSpecResponse",
Expand All @@ -715,6 +727,7 @@ def _get_version(dependency_name):
"IntentView",
"IntentsClient",
"KnowledgeAssistAnswer",
"KnowledgeAssistDebugInfo",
"KnowledgeBase",
"KnowledgeBasesClient",
"KnowledgeOperationMetadata",
Expand Down Expand Up @@ -778,11 +791,13 @@ def _get_version(dependency_name):
"SearchAgentsRequest",
"SearchAgentsResponse",
"SearchKnowledgeAnswer",
"SearchKnowledgeDebugInfo",
"SearchKnowledgeRequest",
"SearchKnowledgeResponse",
"Sentiment",
"SentimentAnalysisRequestConfig",
"SentimentAnalysisResult",
"ServiceLatency",
"SessionEntityType",
"SessionEntityTypesClient",
"SessionsClient",
Expand Down Expand Up @@ -832,6 +847,7 @@ def _get_version(dependency_name):
"ToolCall",
"ToolCallResult",
"ToolsClient",
"ToolsetTool",
"TrainAgentRequest",
"TriggerEvent",
"UndeployConversationModelOperationMetadata",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,18 @@ class AnswerRecordsAsyncClient:
parse_answer_record_path = staticmethod(
AnswerRecordsClient.parse_answer_record_path
)
app_path = staticmethod(AnswerRecordsClient.app_path)
parse_app_path = staticmethod(AnswerRecordsClient.parse_app_path)
context_path = staticmethod(AnswerRecordsClient.context_path)
parse_context_path = staticmethod(AnswerRecordsClient.parse_context_path)
intent_path = staticmethod(AnswerRecordsClient.intent_path)
parse_intent_path = staticmethod(AnswerRecordsClient.parse_intent_path)
tool_path = staticmethod(AnswerRecordsClient.tool_path)
parse_tool_path = staticmethod(AnswerRecordsClient.parse_tool_path)
tool_path = staticmethod(AnswerRecordsClient.tool_path)
parse_tool_path = staticmethod(AnswerRecordsClient.parse_tool_path)
toolset_path = staticmethod(AnswerRecordsClient.toolset_path)
parse_toolset_path = staticmethod(AnswerRecordsClient.parse_toolset_path)
common_billing_account_path = staticmethod(
AnswerRecordsClient.common_billing_account_path
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,28 @@ def parse_answer_record_path(path: str) -> Dict[str, str]:
)
return m.groupdict() if m else {}

@staticmethod
def app_path(
project: str,
location: str,
app: str,
) -> str:
"""Returns a fully-qualified app string."""
return "projects/{project}/locations/{location}/apps/{app}".format(
project=project,
location=location,
app=app,
)

@staticmethod
def parse_app_path(path: str) -> Dict[str, str]:
"""Parses a app path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/apps/(?P<app>.+?)$",
path,
)
return m.groupdict() if m else {}

@staticmethod
def context_path(
project: str,
Expand Down Expand Up @@ -313,6 +335,54 @@ def parse_tool_path(path: str) -> Dict[str, str]:
)
return m.groupdict() if m else {}

@staticmethod
def tool_path(
project: str,
location: str,
app: str,
tool: str,
) -> str:
"""Returns a fully-qualified tool string."""
return "projects/{project}/locations/{location}/apps/{app}/tools/{tool}".format(
project=project,
location=location,
app=app,
tool=tool,
)

@staticmethod
def parse_tool_path(path: str) -> Dict[str, str]:
"""Parses a tool path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/apps/(?P<app>.+?)/tools/(?P<tool>.+?)$",
path,
)
return m.groupdict() if m else {}

@staticmethod
def toolset_path(
project: str,
location: str,
app: str,
toolset: str,
) -> str:
"""Returns a fully-qualified toolset string."""
return "projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}".format(
project=project,
location=location,
app=app,
toolset=toolset,
)

@staticmethod
def parse_toolset_path(path: str) -> Dict[str, str]:
"""Parses a toolset path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/apps/(?P<app>.+?)/toolsets/(?P<toolset>.+?)$",
path,
)
return m.groupdict() if m else {}

@staticmethod
def common_billing_account_path(
billing_account: str,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
from google.longrunning import operations_pb2 # type: ignore

from google.cloud.dialogflow_v2.services.conversations import pagers
from google.cloud.dialogflow_v2.types import conversation, generator, participant
from google.cloud.dialogflow_v2.types import (
conversation,
conversation_profile,
generator,
participant,
)
from google.cloud.dialogflow_v2.types import conversation as gcd_conversation

from .client import ConversationsClient
Expand Down Expand Up @@ -86,6 +91,8 @@ class ConversationsAsyncClient:
parse_answer_record_path = staticmethod(
ConversationsClient.parse_answer_record_path
)
app_path = staticmethod(ConversationsClient.app_path)
parse_app_path = staticmethod(ConversationsClient.parse_app_path)
conversation_path = staticmethod(ConversationsClient.conversation_path)
parse_conversation_path = staticmethod(ConversationsClient.parse_conversation_path)
conversation_model_path = staticmethod(ConversationsClient.conversation_model_path)
Expand Down Expand Up @@ -120,6 +127,10 @@ class ConversationsAsyncClient:
parse_phrase_set_path = staticmethod(ConversationsClient.parse_phrase_set_path)
tool_path = staticmethod(ConversationsClient.tool_path)
parse_tool_path = staticmethod(ConversationsClient.parse_tool_path)
tool_path = staticmethod(ConversationsClient.tool_path)
parse_tool_path = staticmethod(ConversationsClient.parse_tool_path)
toolset_path = staticmethod(ConversationsClient.toolset_path)
parse_toolset_path = staticmethod(ConversationsClient.parse_toolset_path)
common_billing_account_path = staticmethod(
ConversationsClient.common_billing_account_path
)
Expand Down
Loading
Loading