google-cloud-ces-v1beta 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 214b6f036af312e0148cb487c2fdb4cb5220f25191c407f57eff1dd4a2a8e592
4
- data.tar.gz: c22f9b69f3f8dfe43922d3806502079411a3990052693743883b53218e7f5231
3
+ metadata.gz: 523bc9daab12bc7082f5d05b6cb85fc7d79336e752dd5f09be32918b27b2a7d0
4
+ data.tar.gz: ed439227110d01037b9a07acc8db77f02c069b2de8c4672b2d3784df8c8c8ebb
5
5
  SHA512:
6
- metadata.gz: b39a70e2f2c8d36ffe02865a9abba84aafd3bf438c1ecebc9080f842626a52fb603cc4808eb58da8439efd649421d5eeb46ed99e17da05cac0fe32ea7a824ef1
7
- data.tar.gz: f5bdddef72524475ec1f15da38079d71dbe5d000019ff43e94d7ecbaffc967bf030bbfbac7380e44519a9266ef0d979294356187a467e4de9818775314c0be7d
6
+ metadata.gz: 488691118bfeafb8c4c7077fe2dc1f9c2f82fba6c0135796f73fe3e1741c2529309b00bbc43ff98ff1c93916c87983a7f1d54c67da50ee83c93bdd82af7f9985
7
+ data.tar.gz: d2686ebae1f2879f4de2f5f653d247f08436563e4ac08df108a35089b3321a9efe3efcf910ef7355beb4e008389a466a608198fd11ec7e968e12518038886eb7
@@ -8,6 +8,7 @@ require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
+ require 'google/api/routing_pb'
11
12
  require 'google/cloud/ces/v1beta/common_pb'
12
13
  require 'google/cloud/ces/v1beta/example_pb'
13
14
  require 'google/cloud/ces/v1beta/mocks_pb'
@@ -16,7 +17,7 @@ require 'google/protobuf/any_pb'
16
17
  require 'google/protobuf/struct_pb'
17
18
 
18
19
 
19
- descriptor_data = "\n-google/cloud/ces/v1beta/session_service.proto\x12\x17google.cloud.ces.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a#google/cloud/ces/v1beta/mocks.proto\x1a\x30google/cloud/ces/v1beta/search_suggestions.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa6\x02\n\nMockConfig\x12G\n\x11mocked_tool_calls\x18\x01 \x03(\x0b\x32\'.google.cloud.ces.v1beta.MockedToolCallB\x03\xe0\x41\x01\x12h\n\x1cunmatched_tool_call_behavior\x18\x02 \x01(\x0e\x32=.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehaviorB\x03\xe0\x41\x02\"e\n\x19UnmatchedToolCallBehavior\x12,\n(UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\x10\n\x0cPASS_THROUGH\x10\x02\"\x9d\x01\n\x10InputAudioConfig\x12\x43\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32&.google.cloud.ces.v1beta.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12$\n\x17noise_suppression_level\x18\x06 \x01(\tB\x03\xe0\x41\x01\"x\n\x11OutputAudioConfig\x12\x43\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32&.google.cloud.ces.v1beta.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\x81\x07\n\rSessionConfig\x12\x33\n\x07session\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Session\x12J\n\x12input_audio_config\x18\x02 \x01(\x0b\x32).google.cloud.ces.v1beta.InputAudioConfigB\x03\xe0\x41\x01\x12L\n\x13output_audio_config\x18\x03 \x01(\x0b\x32*.google.cloud.ces.v1beta.OutputAudioConfigB\x03\xe0\x41\x01\x12\x42\n\x13historical_contexts\x18\x05 \x03(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01\x12\x35\n\x0b\x65ntry_agent\x18\x0c \x01(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x17\n\ndeployment\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0euse_tool_fakes\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12w\n\"remote_dialogflow_query_parameters\x18\x0f \x01(\x0b\x32\x46.google.cloud.ces.v1beta.SessionConfig.RemoteDialogflowQueryParametersB\x03\xe0\x41\x01\x12\"\n\x15\x65nable_text_streaming\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xba\x02\n\x1fRemoteDialogflowQueryParameters\x12x\n\x0fwebhook_headers\x18\x01 \x03(\x0b\x32Z.google.cloud.ces.v1beta.SessionConfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\x03\xe0\x41\x01\x12-\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x37\n\x11\x65nd_user_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"G\n\tToolCalls\x12:\n\ntool_calls\x18\x01 \x03(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x01\"S\n\rToolResponses\x12\x42\n\x0etool_responses\x18\x01 \x03(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x01\"\xa6\x01\n\tCitations\x12\x43\n\x0c\x63ited_chunks\x18\x01 \x03(\x0b\x32-.google.cloud.ces.v1beta.Citations.CitedChunk\x1aT\n\nCitedChunk\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x1c\n\x14requires_attribution\x18\x04 \x01(\x08\"\x1b\n\x05\x45vent\x12\x12\n\x05\x65vent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x92\x03\n\x0cSessionInput\x12\x13\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x13\n\x04\x64tmf\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x14\n\x05\x61udio\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x45\n\x0etool_responses\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.ToolResponsesB\x03\xe0\x41\x01H\x00\x12\x34\n\x05image\x18\x04 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.ImageB\x03\xe0\x41\x01H\x00\x12\x32\n\x04\x62lob\x18\x07 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.BlobB\x03\xe0\x41\x01H\x00\x12\x31\n\tvariables\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x00\x12\x34\n\x05\x65vent\x18\t \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.EventB\x03\xe0\x41\x01H\x00\x12\x1a\n\rwill_continue\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\ninput_type\"\xea\x04\n\rSessionOutput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0f\n\x05\x61udio\x18\x02 \x01(\x0cH\x00\x12\x38\n\ntool_calls\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1beta.ToolCallsH\x00\x12\x37\n\tcitations\x18\x08 \x01(\x0b\x32\".google.cloud.ces.v1beta.CitationsH\x00\x12U\n\x19google_search_suggestions\x18\n \x01(\x0b\x32\x30.google.cloud.ces.v1beta.GoogleSearchSuggestionsH\x00\x12:\n\x0b\x65nd_session\x18\t \x01(\x0b\x32#.google.cloud.ces.v1beta.EndSessionH\x00\x12*\n\x07payload\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x12\n\nturn_index\x18\x06 \x01(\x05\x12\x16\n\x0eturn_completed\x18\x04 \x01(\x08\x12S\n\x0f\x64iagnostic_info\x18\x07 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\x03\xe0\x41\x01\x1av\n\x0e\x44iagnosticInfo\x12\x32\n\x08messages\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.Message\x12\x30\n\troot_span\x18\x03 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.SpanB\r\n\x0boutput_type\",\n\x11RecognitionResult\x12\x17\n\ntranscript\x18\x01 \x01(\tB\x03\xe0\x41\x01\"&\n\x12InterruptionSignal\x12\x10\n\x08\x62\x61rge_in\x18\x01 \x01(\x08\"<\n\nEndSession\x12.\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\x08\n\x06GoAway\"\x8c\x01\n\x11RunSessionRequest\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.SessionConfigB\x03\xe0\x41\x02\x12:\n\x06inputs\x18\x03 \x03(\x0b\x32%.google.cloud.ces.v1beta.SessionInputB\x03\xe0\x41\x02\"M\n\x12RunSessionResponse\x12\x37\n\x07outputs\x18\x01 \x03(\x0b\x32&.google.cloud.ces.v1beta.SessionOutput\"\xaf\x01\n\x18\x42idiSessionClientMessage\x12=\n\x06\x63onfig\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.SessionConfigB\x03\xe0\x41\x01H\x00\x12\x44\n\x0erealtime_input\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1beta.SessionInputB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type\"\x8b\x03\n\x18\x42idiSessionServerMessage\x12\x45\n\x0esession_output\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.SessionOutputB\x03\xe0\x41\x01H\x00\x12M\n\x12recognition_result\x18\x02 \x01(\x0b\x32*.google.cloud.ces.v1beta.RecognitionResultB\x03\xe0\x41\x01H\x00\x12O\n\x13interruption_signal\x18\x03 \x01(\x0b\x32+.google.cloud.ces.v1beta.InterruptionSignalB\x03\xe0\x41\x01H\x00\x12?\n\x0b\x65nd_session\x18\x05 \x01(\x0b\x32#.google.cloud.ces.v1beta.EndSessionB\x03\xe0\x41\x01H\x00\x12\x37\n\x07go_away\x18\x06 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.GoAwayB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type*R\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\t\n\x05MULAW\x10\x02\x12\x08\n\x04\x41LAW\x10\x03\x32\x8a\x05\n\x0eSessionService\x12\xbe\x01\n\nRunSession\x12*.google.cloud.ces.v1beta.RunSessionRequest\x1a+.google.cloud.ces.v1beta.RunSessionResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1beta/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\x01*\x12\xcc\x01\n\x10StreamRunSession\x12*.google.cloud.ces.v1beta.RunSessionRequest\x1a+.google.cloud.ces.v1beta.RunSessionResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1beta/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\x01*0\x01\x12|\n\x0e\x42idiRunSession\x12\x31.google.cloud.ces.v1beta.BidiSessionClientMessage\x1a\x31.google.cloud.ces.v1beta.BidiSessionServerMessage\"\x00(\x01\x30\x01\x1aj\xca\x41\x12\x63\x65s.googleapis.com\xd2\x41Rhttps://www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\xc9\x01\n\x1b\x63om.google.cloud.ces.v1betaB\x13SessionServiceProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\xea\x41\x63\n\x1a\x63\x65s.googleapis.com/Session\x12\x45projects/{project}/locations/{location}/apps/{app}/sessions/{session}b\x06proto3"
20
+ descriptor_data = "\n-google/cloud/ces/v1beta/session_service.proto\x12\x17google.cloud.ces.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a$google/cloud/ces/v1beta/common.proto\x1a%google/cloud/ces/v1beta/example.proto\x1a#google/cloud/ces/v1beta/mocks.proto\x1a\x30google/cloud/ces/v1beta/search_suggestions.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa6\x02\n\nMockConfig\x12G\n\x11mocked_tool_calls\x18\x01 \x03(\x0b\x32\'.google.cloud.ces.v1beta.MockedToolCallB\x03\xe0\x41\x01\x12h\n\x1cunmatched_tool_call_behavior\x18\x02 \x01(\x0e\x32=.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehaviorB\x03\xe0\x41\x02\"e\n\x19UnmatchedToolCallBehavior\x12,\n(UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46\x41IL\x10\x01\x12\x10\n\x0cPASS_THROUGH\x10\x02\"\x9d\x01\n\x10InputAudioConfig\x12\x43\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32&.google.cloud.ces.v1beta.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12$\n\x17noise_suppression_level\x18\x06 \x01(\tB\x03\xe0\x41\x01\"x\n\x11OutputAudioConfig\x12\x43\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32&.google.cloud.ces.v1beta.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\x81\x07\n\rSessionConfig\x12\x33\n\x07session\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63\x65s.googleapis.com/Session\x12J\n\x12input_audio_config\x18\x02 \x01(\x0b\x32).google.cloud.ces.v1beta.InputAudioConfigB\x03\xe0\x41\x01\x12L\n\x13output_audio_config\x18\x03 \x01(\x0b\x32*.google.cloud.ces.v1beta.OutputAudioConfigB\x03\xe0\x41\x01\x12\x42\n\x13historical_contexts\x18\x05 \x03(\x0b\x32 .google.cloud.ces.v1beta.MessageB\x03\xe0\x41\x01\x12\x35\n\x0b\x65ntry_agent\x18\x0c \x01(\tB \xe0\x41\x01\xfa\x41\x1a\n\x18\x63\x65s.googleapis.com/Agent\x12\x17\n\ndeployment\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0euse_tool_fakes\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12w\n\"remote_dialogflow_query_parameters\x18\x0f \x01(\x0b\x32\x46.google.cloud.ces.v1beta.SessionConfig.RemoteDialogflowQueryParametersB\x03\xe0\x41\x01\x12\"\n\x15\x65nable_text_streaming\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x1a\xba\x02\n\x1fRemoteDialogflowQueryParameters\x12x\n\x0fwebhook_headers\x18\x01 \x03(\x0b\x32Z.google.cloud.ces.v1beta.SessionConfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\x03\xe0\x41\x01\x12-\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x37\n\x11\x65nd_user_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"G\n\tToolCalls\x12:\n\ntool_calls\x18\x01 \x03(\x0b\x32!.google.cloud.ces.v1beta.ToolCallB\x03\xe0\x41\x01\"S\n\rToolResponses\x12\x42\n\x0etool_responses\x18\x01 \x03(\x0b\x32%.google.cloud.ces.v1beta.ToolResponseB\x03\xe0\x41\x01\"\xa6\x01\n\tCitations\x12\x43\n\x0c\x63ited_chunks\x18\x01 \x03(\x0b\x32-.google.cloud.ces.v1beta.Citations.CitedChunk\x1aT\n\nCitedChunk\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0c\n\x04text\x18\x03 \x01(\t\x12\x1c\n\x14requires_attribution\x18\x04 \x01(\x08\"\x1b\n\x05\x45vent\x12\x12\n\x05\x65vent\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x92\x03\n\x0cSessionInput\x12\x13\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x13\n\x04\x64tmf\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x14\n\x05\x61udio\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x01H\x00\x12\x45\n\x0etool_responses\x18\x03 \x01(\x0b\x32&.google.cloud.ces.v1beta.ToolResponsesB\x03\xe0\x41\x01H\x00\x12\x34\n\x05image\x18\x04 \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.ImageB\x03\xe0\x41\x01H\x00\x12\x32\n\x04\x62lob\x18\x07 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.BlobB\x03\xe0\x41\x01H\x00\x12\x31\n\tvariables\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01H\x00\x12\x34\n\x05\x65vent\x18\t \x01(\x0b\x32\x1e.google.cloud.ces.v1beta.EventB\x03\xe0\x41\x01H\x00\x12\x1a\n\rwill_continue\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\ninput_type\"\xea\x04\n\rSessionOutput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0f\n\x05\x61udio\x18\x02 \x01(\x0cH\x00\x12\x38\n\ntool_calls\x18\x03 \x01(\x0b\x32\".google.cloud.ces.v1beta.ToolCallsH\x00\x12\x37\n\tcitations\x18\x08 \x01(\x0b\x32\".google.cloud.ces.v1beta.CitationsH\x00\x12U\n\x19google_search_suggestions\x18\n \x01(\x0b\x32\x30.google.cloud.ces.v1beta.GoogleSearchSuggestionsH\x00\x12:\n\x0b\x65nd_session\x18\t \x01(\x0b\x32#.google.cloud.ces.v1beta.EndSessionH\x00\x12*\n\x07payload\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x12\n\nturn_index\x18\x06 \x01(\x05\x12\x16\n\x0eturn_completed\x18\x04 \x01(\x08\x12S\n\x0f\x64iagnostic_info\x18\x07 \x01(\x0b\x32\x35.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\x03\xe0\x41\x01\x1av\n\x0e\x44iagnosticInfo\x12\x32\n\x08messages\x18\x01 \x03(\x0b\x32 .google.cloud.ces.v1beta.Message\x12\x30\n\troot_span\x18\x03 \x01(\x0b\x32\x1d.google.cloud.ces.v1beta.SpanB\r\n\x0boutput_type\",\n\x11RecognitionResult\x12\x17\n\ntranscript\x18\x01 \x01(\tB\x03\xe0\x41\x01\"&\n\x12InterruptionSignal\x12\x10\n\x08\x62\x61rge_in\x18\x01 \x01(\x08\"<\n\nEndSession\x12.\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\x08\n\x06GoAway\"\x8c\x01\n\x11RunSessionRequest\x12;\n\x06\x63onfig\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.SessionConfigB\x03\xe0\x41\x02\x12:\n\x06inputs\x18\x03 \x03(\x0b\x32%.google.cloud.ces.v1beta.SessionInputB\x03\xe0\x41\x02\"M\n\x12RunSessionResponse\x12\x37\n\x07outputs\x18\x01 \x03(\x0b\x32&.google.cloud.ces.v1beta.SessionOutput\"\xaf\x01\n\x18\x42idiSessionClientMessage\x12=\n\x06\x63onfig\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.SessionConfigB\x03\xe0\x41\x01H\x00\x12\x44\n\x0erealtime_input\x18\x02 \x01(\x0b\x32%.google.cloud.ces.v1beta.SessionInputB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type\"\x8b\x03\n\x18\x42idiSessionServerMessage\x12\x45\n\x0esession_output\x18\x01 \x01(\x0b\x32&.google.cloud.ces.v1beta.SessionOutputB\x03\xe0\x41\x01H\x00\x12M\n\x12recognition_result\x18\x02 \x01(\x0b\x32*.google.cloud.ces.v1beta.RecognitionResultB\x03\xe0\x41\x01H\x00\x12O\n\x13interruption_signal\x18\x03 \x01(\x0b\x32+.google.cloud.ces.v1beta.InterruptionSignalB\x03\xe0\x41\x01H\x00\x12?\n\x0b\x65nd_session\x18\x05 \x01(\x0b\x32#.google.cloud.ces.v1beta.EndSessionB\x03\xe0\x41\x01H\x00\x12\x37\n\x07go_away\x18\x06 \x01(\x0b\x32\x1f.google.cloud.ces.v1beta.GoAwayB\x03\xe0\x41\x01H\x00\x42\x0e\n\x0cmessage_type*R\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\t\n\x05MULAW\x10\x02\x12\x08\n\x04\x41LAW\x10\x03\x32\xd7\x05\n\x0eSessionService\x12\xbe\x01\n\nRunSession\x12*.google.cloud.ces.v1beta.RunSessionRequest\x1a+.google.cloud.ces.v1beta.RunSessionResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1beta/{config.session=projects/*/locations/*/apps/*/sessions/*}:runSession:\x01*\x12\xcc\x01\n\x10StreamRunSession\x12*.google.cloud.ces.v1beta.RunSessionRequest\x1a+.google.cloud.ces.v1beta.RunSessionResponse\"]\x82\xd3\xe4\x93\x02W\"R/v1beta/{config.session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\x01*0\x01\x12\xc8\x01\n\x0e\x42idiRunSession\x12\x31.google.cloud.ces.v1beta.BidiSessionClientMessage\x1a\x31.google.cloud.ces.v1beta.BidiSessionServerMessage\"L\x8a\xd3\xe4\x93\x02\x46\x12\x44\n\x0e\x63onfig.session\x12\x32{session=projects/*/locations/*/apps/*/sessions/*}(\x01\x30\x01\x1aj\xca\x41\x12\x63\x65s.googleapis.com\xd2\x41Rhttps://www.googleapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\xc9\x01\n\x1b\x63om.google.cloud.ces.v1betaB\x13SessionServiceProtoP\x01Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\xea\x41\x63\n\x1a\x63\x65s.googleapis.com/Session\x12\x45projects/{project}/locations/{location}/apps/{app}/sessions/{session}b\x06proto3"
20
21
 
21
22
  pool = ::Google::Protobuf::DescriptorPool.generated_pool
22
23
  pool.add_serialized_file(descriptor_data)
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Ces
23
23
  module V1beta
24
- VERSION = "0.3.0"
24
+ VERSION = "0.3.1"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,463 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # Specifies the routing information that should be sent along with the request
23
+ # in the form of routing header.
24
+ # **NOTE:** All service configuration rules follow the "last one wins" order.
25
+ #
26
+ # The examples below will apply to an RPC which has the following request type:
27
+ #
28
+ # Message Definition:
29
+ #
30
+ # message Request {
31
+ # // The name of the Table
32
+ # // Values can be of the following formats:
33
+ # // - `projects/<project>/tables/<table>`
34
+ # // - `projects/<project>/instances/<instance>/tables/<table>`
35
+ # // - `region/<region>/zones/<zone>/tables/<table>`
36
+ # string table_name = 1;
37
+ #
38
+ # // This value specifies routing for replication.
39
+ # // It can be in the following formats:
40
+ # // - `profiles/<profile_id>`
41
+ # // - a legacy `profile_id` that can be any string
42
+ # string app_profile_id = 2;
43
+ # }
44
+ #
45
+ # Example message:
46
+ #
47
+ # {
48
+ # table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
49
+ # app_profile_id: profiles/prof_qux
50
+ # }
51
+ #
52
+ # The routing header consists of one or multiple key-value pairs. The order of
53
+ # the key-value pairs is undefined, the order of the `routing_parameters` in
54
+ # the `RoutingRule` only matters for the evaluation order of the path
55
+ # templates when `field` is the same. See the examples below for more details.
56
+ #
57
+ # Every key and value in the routing header must be percent-encoded,
58
+ # and joined together in the following format: `key1=value1&key2=value2`.
59
+ # The examples below skip the percent-encoding for readability.
60
+ #
61
+ # Example 1
62
+ #
63
+ # Extracting a field from the request to put into the routing header
64
+ # unchanged, with the key equal to the field name.
65
+ #
66
+ # annotation:
67
+ #
68
+ # option (google.api.routing) = {
69
+ # // Take the `app_profile_id`.
70
+ # routing_parameters {
71
+ # field: "app_profile_id"
72
+ # }
73
+ # };
74
+ #
75
+ # result:
76
+ #
77
+ # x-goog-request-params: app_profile_id=profiles/prof_qux
78
+ #
79
+ # Example 2
80
+ #
81
+ # Extracting a field from the request to put into the routing header
82
+ # unchanged, with the key different from the field name.
83
+ #
84
+ # annotation:
85
+ #
86
+ # option (google.api.routing) = {
87
+ # // Take the `app_profile_id`, but name it `routing_id` in the header.
88
+ # routing_parameters {
89
+ # field: "app_profile_id"
90
+ # path_template: "{routing_id=**}"
91
+ # }
92
+ # };
93
+ #
94
+ # result:
95
+ #
96
+ # x-goog-request-params: routing_id=profiles/prof_qux
97
+ #
98
+ # Example 3
99
+ #
100
+ # Extracting a field from the request to put into the routing
101
+ # header, while matching a path template syntax on the field's value.
102
+ #
103
+ # NB: it is more useful to send nothing than to send garbage for the purpose
104
+ # of dynamic routing, since garbage pollutes cache. Thus the matching.
105
+ #
106
+ # Sub-example 3a
107
+ #
108
+ # The field matches the template.
109
+ #
110
+ # annotation:
111
+ #
112
+ # option (google.api.routing) = {
113
+ # // Take the `table_name`, if it's well-formed (with project-based
114
+ # // syntax).
115
+ # routing_parameters {
116
+ # field: "table_name"
117
+ # path_template: "{table_name=projects/*/instances/*/**}"
118
+ # }
119
+ # };
120
+ #
121
+ # result:
122
+ #
123
+ # x-goog-request-params:
124
+ # table_name=projects/proj_foo/instances/instance_bar/table/table_baz
125
+ #
126
+ # Sub-example 3b
127
+ #
128
+ # The field does not match the template.
129
+ #
130
+ # annotation:
131
+ #
132
+ # option (google.api.routing) = {
133
+ # // Take the `table_name`, if it's well-formed (with region-based
134
+ # // syntax).
135
+ # routing_parameters {
136
+ # field: "table_name"
137
+ # path_template: "{table_name=regions/*/zones/*/**}"
138
+ # }
139
+ # };
140
+ #
141
+ # result:
142
+ #
143
+ # <no routing header will be sent>
144
+ #
145
+ # Sub-example 3c
146
+ #
147
+ # Multiple alternative conflictingly named path templates are
148
+ # specified. The one that matches is used to construct the header.
149
+ #
150
+ # annotation:
151
+ #
152
+ # option (google.api.routing) = {
153
+ # // Take the `table_name`, if it's well-formed, whether
154
+ # // using the region- or projects-based syntax.
155
+ #
156
+ # routing_parameters {
157
+ # field: "table_name"
158
+ # path_template: "{table_name=regions/*/zones/*/**}"
159
+ # }
160
+ # routing_parameters {
161
+ # field: "table_name"
162
+ # path_template: "{table_name=projects/*/instances/*/**}"
163
+ # }
164
+ # };
165
+ #
166
+ # result:
167
+ #
168
+ # x-goog-request-params:
169
+ # table_name=projects/proj_foo/instances/instance_bar/table/table_baz
170
+ #
171
+ # Example 4
172
+ #
173
+ # Extracting a single routing header key-value pair by matching a
174
+ # template syntax on (a part of) a single request field.
175
+ #
176
+ # annotation:
177
+ #
178
+ # option (google.api.routing) = {
179
+ # // Take just the project id from the `table_name` field.
180
+ # routing_parameters {
181
+ # field: "table_name"
182
+ # path_template: "{routing_id=projects/*}/**"
183
+ # }
184
+ # };
185
+ #
186
+ # result:
187
+ #
188
+ # x-goog-request-params: routing_id=projects/proj_foo
189
+ #
190
+ # Example 5
191
+ #
192
+ # Extracting a single routing header key-value pair by matching
193
+ # several conflictingly named path templates on (parts of) a single request
194
+ # field. The last template to match "wins" the conflict.
195
+ #
196
+ # annotation:
197
+ #
198
+ # option (google.api.routing) = {
199
+ # // If the `table_name` does not have instances information,
200
+ # // take just the project id for routing.
201
+ # // Otherwise take project + instance.
202
+ #
203
+ # routing_parameters {
204
+ # field: "table_name"
205
+ # path_template: "{routing_id=projects/*}/**"
206
+ # }
207
+ # routing_parameters {
208
+ # field: "table_name"
209
+ # path_template: "{routing_id=projects/*/instances/*}/**"
210
+ # }
211
+ # };
212
+ #
213
+ # result:
214
+ #
215
+ # x-goog-request-params:
216
+ # routing_id=projects/proj_foo/instances/instance_bar
217
+ #
218
+ # Example 6
219
+ #
220
+ # Extracting multiple routing header key-value pairs by matching
221
+ # several non-conflicting path templates on (parts of) a single request field.
222
+ #
223
+ # Sub-example 6a
224
+ #
225
+ # Make the templates strict, so that if the `table_name` does not
226
+ # have an instance information, nothing is sent.
227
+ #
228
+ # annotation:
229
+ #
230
+ # option (google.api.routing) = {
231
+ # // The routing code needs two keys instead of one composite
232
+ # // but works only for the tables with the "project-instance" name
233
+ # // syntax.
234
+ #
235
+ # routing_parameters {
236
+ # field: "table_name"
237
+ # path_template: "{project_id=projects/*}/instances/*/**"
238
+ # }
239
+ # routing_parameters {
240
+ # field: "table_name"
241
+ # path_template: "projects/*/{instance_id=instances/*}/**"
242
+ # }
243
+ # };
244
+ #
245
+ # result:
246
+ #
247
+ # x-goog-request-params:
248
+ # project_id=projects/proj_foo&instance_id=instances/instance_bar
249
+ #
250
+ # Sub-example 6b
251
+ #
252
+ # Make the templates loose, so that if the `table_name` does not
253
+ # have an instance information, just the project id part is sent.
254
+ #
255
+ # annotation:
256
+ #
257
+ # option (google.api.routing) = {
258
+ # // The routing code wants two keys instead of one composite
259
+ # // but will work with just the `project_id` for tables without
260
+ # // an instance in the `table_name`.
261
+ #
262
+ # routing_parameters {
263
+ # field: "table_name"
264
+ # path_template: "{project_id=projects/*}/**"
265
+ # }
266
+ # routing_parameters {
267
+ # field: "table_name"
268
+ # path_template: "projects/*/{instance_id=instances/*}/**"
269
+ # }
270
+ # };
271
+ #
272
+ # result (is the same as 6a for our example message because it has the instance
273
+ # information):
274
+ #
275
+ # x-goog-request-params:
276
+ # project_id=projects/proj_foo&instance_id=instances/instance_bar
277
+ #
278
+ # Example 7
279
+ #
280
+ # Extracting multiple routing header key-value pairs by matching
281
+ # several path templates on multiple request fields.
282
+ #
283
+ # NB: note that here there is no way to specify sending nothing if one of the
284
+ # fields does not match its template. E.g. if the `table_name` is in the wrong
285
+ # format, the `project_id` will not be sent, but the `routing_id` will be.
286
+ # The backend routing code has to be aware of that and be prepared to not
287
+ # receive a full complement of keys if it expects multiple.
288
+ #
289
+ # annotation:
290
+ #
291
+ # option (google.api.routing) = {
292
+ # // The routing needs both `project_id` and `routing_id`
293
+ # // (from the `app_profile_id` field) for routing.
294
+ #
295
+ # routing_parameters {
296
+ # field: "table_name"
297
+ # path_template: "{project_id=projects/*}/**"
298
+ # }
299
+ # routing_parameters {
300
+ # field: "app_profile_id"
301
+ # path_template: "{routing_id=**}"
302
+ # }
303
+ # };
304
+ #
305
+ # result:
306
+ #
307
+ # x-goog-request-params:
308
+ # project_id=projects/proj_foo&routing_id=profiles/prof_qux
309
+ #
310
+ # Example 8
311
+ #
312
+ # Extracting a single routing header key-value pair by matching
313
+ # several conflictingly named path templates on several request fields. The
314
+ # last template to match "wins" the conflict.
315
+ #
316
+ # annotation:
317
+ #
318
+ # option (google.api.routing) = {
319
+ # // The `routing_id` can be a project id or a region id depending on
320
+ # // the table name format, but only if the `app_profile_id` is not set.
321
+ # // If `app_profile_id` is set it should be used instead.
322
+ #
323
+ # routing_parameters {
324
+ # field: "table_name"
325
+ # path_template: "{routing_id=projects/*}/**"
326
+ # }
327
+ # routing_parameters {
328
+ # field: "table_name"
329
+ # path_template: "{routing_id=regions/*}/**"
330
+ # }
331
+ # routing_parameters {
332
+ # field: "app_profile_id"
333
+ # path_template: "{routing_id=**}"
334
+ # }
335
+ # };
336
+ #
337
+ # result:
338
+ #
339
+ # x-goog-request-params: routing_id=profiles/prof_qux
340
+ #
341
+ # Example 9
342
+ #
343
+ # Bringing it all together.
344
+ #
345
+ # annotation:
346
+ #
347
+ # option (google.api.routing) = {
348
+ # // For routing both `table_location` and a `routing_id` are needed.
349
+ # //
350
+ # // table_location can be either an instance id or a region+zone id.
351
+ # //
352
+ # // For `routing_id`, take the value of `app_profile_id`
353
+ # // - If it's in the format `profiles/<profile_id>`, send
354
+ # // just the `<profile_id>` part.
355
+ # // - If it's any other literal, send it as is.
356
+ # // If the `app_profile_id` is empty, and the `table_name` starts with
357
+ # // the project_id, send that instead.
358
+ #
359
+ # routing_parameters {
360
+ # field: "table_name"
361
+ # path_template: "projects/*/{table_location=instances/*}/tables/*"
362
+ # }
363
+ # routing_parameters {
364
+ # field: "table_name"
365
+ # path_template: "{table_location=regions/*/zones/*}/tables/*"
366
+ # }
367
+ # routing_parameters {
368
+ # field: "table_name"
369
+ # path_template: "{routing_id=projects/*}/**"
370
+ # }
371
+ # routing_parameters {
372
+ # field: "app_profile_id"
373
+ # path_template: "{routing_id=**}"
374
+ # }
375
+ # routing_parameters {
376
+ # field: "app_profile_id"
377
+ # path_template: "profiles/{routing_id=*}"
378
+ # }
379
+ # };
380
+ #
381
+ # result:
382
+ #
383
+ # x-goog-request-params:
384
+ # table_location=instances/instance_bar&routing_id=prof_qux
385
+ # @!attribute [rw] routing_parameters
386
+ # @return [::Array<::Google::Api::RoutingParameter>]
387
+ # A collection of Routing Parameter specifications.
388
+ # **NOTE:** If multiple Routing Parameters describe the same key
389
+ # (via the `path_template` field or via the `field` field when
390
+ # `path_template` is not provided), "last one wins" rule
391
+ # determines which Parameter gets used.
392
+ # See the examples for more details.
393
+ class RoutingRule
394
+ include ::Google::Protobuf::MessageExts
395
+ extend ::Google::Protobuf::MessageExts::ClassMethods
396
+ end
397
+
398
+ # A projection from an input message to the GRPC or REST header.
399
+ # @!attribute [rw] field
400
+ # @return [::String]
401
+ # A request field to extract the header key-value pair from.
402
+ # @!attribute [rw] path_template
403
+ # @return [::String]
404
+ # A pattern matching the key-value field. Optional.
405
+ # If not specified, the whole field specified in the `field` field will be
406
+ # taken as value, and its name used as key. If specified, it MUST contain
407
+ # exactly one named segment (along with any number of unnamed segments) The
408
+ # pattern will be matched over the field specified in the `field` field, then
409
+ # if the match is successful:
410
+ # - the name of the single named segment will be used as a header name,
411
+ # - the match value of the segment will be used as a header value;
412
+ # if the match is NOT successful, nothing will be sent.
413
+ #
414
+ # Example:
415
+ #
416
+ # -- This is a field in the request message
417
+ # | that the header value will be extracted from.
418
+ # |
419
+ # | -- This is the key name in the
420
+ # | | routing header.
421
+ # V |
422
+ # field: "table_name" v
423
+ # path_template: "projects/*/{table_location=instances/*}/tables/*"
424
+ # ^ ^
425
+ # | |
426
+ # In the {} brackets is the pattern that -- |
427
+ # specifies what to extract from the |
428
+ # field as a value to be sent. |
429
+ # |
430
+ # The string in the field must match the whole pattern --
431
+ # before brackets, inside brackets, after brackets.
432
+ #
433
+ # When looking at this specific example, we can see that:
434
+ # - A key-value pair with the key `table_location`
435
+ # and the value matching `instances/*` should be added
436
+ # to the x-goog-request-params routing header.
437
+ # - The value is extracted from the request message's `table_name` field
438
+ # if it matches the full pattern specified:
439
+ # `projects/*/instances/*/tables/*`.
440
+ #
441
+ # **NB:** If the `path_template` field is not provided, the key name is
442
+ # equal to the field name, and the whole field should be sent as a value.
443
+ # This makes the pattern for the field and the value functionally equivalent
444
+ # to `**`, and the configuration
445
+ #
446
+ # {
447
+ # field: "table_name"
448
+ # }
449
+ #
450
+ # is a functionally equivalent shorthand to:
451
+ #
452
+ # {
453
+ # field: "table_name"
454
+ # path_template: "{table_name=**}"
455
+ # }
456
+ #
457
+ # See Example 1 for more details.
458
+ class RoutingParameter
459
+ include ::Google::Protobuf::MessageExts
460
+ extend ::Google::Protobuf::MessageExts::ClassMethods
461
+ end
462
+ end
463
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-ces-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -165,6 +165,7 @@ files:
165
165
  - proto_docs/google/api/field_behavior.rb
166
166
  - proto_docs/google/api/launch_stage.rb
167
167
  - proto_docs/google/api/resource.rb
168
+ - proto_docs/google/api/routing.rb
168
169
  - proto_docs/google/cloud/ces/v1beta/agent.rb
169
170
  - proto_docs/google/cloud/ces/v1beta/agent_card.rb
170
171
  - proto_docs/google/cloud/ces/v1beta/agent_service.rb