Skip to content

Commit 71c7776

Browse files
author
Benjamin E. Coe
authored
feat!: move to v3 API surface (#35)
1 parent cf9a4f4 commit 71c7776

File tree

83 files changed

+22809
-14047
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+22809
-14047
lines changed

packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto renamed to packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/agent.proto

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@
1414

1515
syntax = "proto3";
1616

17-
package google.cloud.dialogflow.cx.v3beta1;
17+
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
23-
import "google/cloud/dialogflow/cx/v3beta1/flow.proto";
23+
import "google/cloud/dialogflow/cx/v3/flow.proto";
2424
import "google/longrunning/operations.proto";
2525
import "google/protobuf/empty.proto";
2626
import "google/protobuf/field_mask.proto";
2727

2828
option cc_enable_arenas = true;
29-
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
30-
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx";
29+
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
30+
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
3131
option java_multiple_files = true;
3232
option java_outer_classname = "AgentProto";
33-
option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
33+
option java_package = "com.google.cloud.dialogflow.cx.v3";
3434
option objc_class_prefix = "DF";
3535

36-
// Service for managing [Agents][google.cloud.dialogflow.cx.v3beta1.Agent].
36+
// Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
3737
service Agents {
3838
option (google.api.default_host) = "dialogflow.googleapis.com";
3939
option (google.api.oauth_scopes) =
@@ -43,23 +43,23 @@ service Agents {
4343
// Returns the list of all agents in the specified location.
4444
rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) {
4545
option (google.api.http) = {
46-
get: "/v3beta1/{parent=projects/*/locations/*}/agents"
46+
get: "/v3/{parent=projects/*/locations/*}/agents"
4747
};
4848
option (google.api.method_signature) = "parent";
4949
}
5050

5151
// Retrieves the specified agent.
5252
rpc GetAgent(GetAgentRequest) returns (Agent) {
5353
option (google.api.http) = {
54-
get: "/v3beta1/{name=projects/*/locations/*/agents/*}"
54+
get: "/v3/{name=projects/*/locations/*/agents/*}"
5555
};
5656
option (google.api.method_signature) = "name";
5757
}
5858

5959
// Creates an agent in the specified location.
6060
rpc CreateAgent(CreateAgentRequest) returns (Agent) {
6161
option (google.api.http) = {
62-
post: "/v3beta1/{parent=projects/*/locations/*}/agents"
62+
post: "/v3/{parent=projects/*/locations/*}/agents"
6363
body: "agent"
6464
};
6565
option (google.api.method_signature) = "parent,agent";
@@ -68,7 +68,7 @@ service Agents {
6868
// Updates the specified agent.
6969
rpc UpdateAgent(UpdateAgentRequest) returns (Agent) {
7070
option (google.api.http) = {
71-
patch: "/v3beta1/{agent.name=projects/*/locations/*/agents/*}"
71+
patch: "/v3/{agent.name=projects/*/locations/*/agents/*}"
7272
body: "agent"
7373
};
7474
option (google.api.method_signature) = "agent,update_mask";
@@ -77,15 +77,15 @@ service Agents {
7777
// Deletes the specified agent.
7878
rpc DeleteAgent(DeleteAgentRequest) returns (google.protobuf.Empty) {
7979
option (google.api.http) = {
80-
delete: "/v3beta1/{name=projects/*/locations/*/agents/*}"
80+
delete: "/v3/{name=projects/*/locations/*/agents/*}"
8181
};
8282
option (google.api.method_signature) = "name";
8383
}
8484

8585
// Exports the specified agent to a binary file.
8686
rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) {
8787
option (google.api.http) = {
88-
post: "/v3beta1/{name=projects/*/locations/*/agents/*}:export"
88+
post: "/v3/{name=projects/*/locations/*/agents/*}:export"
8989
body: "*"
9090
};
9191
option (google.longrunning.operation_info) = {
@@ -100,7 +100,7 @@ service Agents {
100100
// in agent (e.g. intents, entity types, flows) will be removed.
101101
rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) {
102102
option (google.api.http) = {
103-
post: "/v3beta1/{name=projects/*/locations/*/agents/*}:restore"
103+
post: "/v3/{name=projects/*/locations/*/agents/*}:restore"
104104
body: "*"
105105
};
106106
option (google.longrunning.operation_info) = {
@@ -121,17 +121,17 @@ message SpeechToTextSettings {
121121
// in your app, product, or service to determine user intent and respond to the
122122
// user in a natural way.
123123
//
124-
// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3beta1.Intent],
125-
// [Entity Types][google.cloud.dialogflow.cx.v3beta1.EntityType], [Flows][google.cloud.dialogflow.cx.v3beta1.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3beta1.Fulfillment],
126-
// [Webhooks][google.cloud.dialogflow.cx.v3beta1.Webhook], and so on to manage the conversation flows..
124+
// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent],
125+
// [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment],
126+
// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows..
127127
message Agent {
128128
option (google.api.resource) = {
129129
type: "dialogflow.googleapis.com/Agent"
130130
pattern: "projects/{project}/locations/{location}/agents/{agent}"
131131
};
132132

133133
// The unique identifier of the agent.
134-
// Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent]
134+
// Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
135135
// populates the name automatically.
136136
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
137137
string name = 1;
@@ -143,7 +143,7 @@ message Agent {
143143
// See [Language
144144
// Support](https://cloud.google.com/dialogflow/docs/reference/language)
145145
// for a list of the currently supported language codes.
146-
// This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
146+
// This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method.
147147
string default_language_code = 3 [(google.api.field_behavior) = IMMUTABLE];
148148

149149
// Required. The time zone of the agent from the [time zone
@@ -184,7 +184,7 @@ message Agent {
184184
bool enable_spell_correction = 20;
185185
}
186186

187-
// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents].
187+
// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
188188
message ListAgentsRequest {
189189
// Required. The location to list all agents for.
190190
// Format: `projects/<Project ID>/locations/<Location ID>`.
@@ -203,7 +203,7 @@ message ListAgentsRequest {
203203
string page_token = 3;
204204
}
205205

206-
// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents].
206+
// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
207207
message ListAgentsResponse {
208208
// The list of agents. There will be a maximum number of items returned based
209209
// on the page_size field in the request.
@@ -214,7 +214,7 @@ message ListAgentsResponse {
214214
string next_page_token = 2;
215215
}
216216

217-
// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgent].
217+
// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
218218
message GetAgentRequest {
219219
// Required. The name of the agent.
220220
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
@@ -226,7 +226,7 @@ message GetAgentRequest {
226226
];
227227
}
228228

229-
// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent].
229+
// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
230230
message CreateAgentRequest {
231231
// Required. The location to create a agent for.
232232
// Format: `projects/<Project ID>/locations/<Location ID>`.
@@ -241,7 +241,7 @@ message CreateAgentRequest {
241241
Agent agent = 2 [(google.api.field_behavior) = REQUIRED];
242242
}
243243

244-
// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent].
244+
// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
245245
message UpdateAgentRequest {
246246
// Required. The agent to update.
247247
Agent agent = 1 [(google.api.field_behavior) = REQUIRED];
@@ -251,7 +251,7 @@ message UpdateAgentRequest {
251251
google.protobuf.FieldMask update_mask = 2;
252252
}
253253

254-
// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgent].
254+
// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
255255
message DeleteAgentRequest {
256256
// Required. The name of the agent to delete.
257257
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
@@ -263,7 +263,7 @@ message DeleteAgentRequest {
263263
];
264264
}
265265

266-
// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent].
266+
// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
267267
message ExportAgentRequest {
268268
// Required. The name of the agent to export.
269269
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
@@ -281,20 +281,20 @@ message ExportAgentRequest {
281281
string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL];
282282
}
283283

284-
// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent].
284+
// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
285285
message ExportAgentResponse {
286286
// The exported agent.
287287
oneof agent {
288288
// The URI to a file containing the exported agent. This field is populated
289-
// only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
289+
// only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
290290
string agent_uri = 1;
291291

292292
// Uncompressed raw byte content for agent.
293293
bytes agent_content = 2;
294294
}
295295
}
296296

297-
// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent].
297+
// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
298298
message RestoreAgentRequest {
299299
// Required. The name of the agent to restore into.
300300
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
syntax = "proto3";
1616

17-
package google.cloud.dialogflow.cx.v3beta1;
17+
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/protobuf/duration.proto";
2222
import "google/api/annotations.proto";
2323

2424
option cc_enable_arenas = true;
25-
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
26-
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx";
25+
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
26+
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
2727
option java_multiple_files = true;
2828
option java_outer_classname = "AudioConfigProto";
29-
option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
29+
option java_package = "com.google.cloud.dialogflow.cx.v3";
3030
option objc_class_prefix = "DF";
3131

3232
// Information for a word recognized by the speech recognizer.
@@ -115,8 +115,8 @@ message InputAudioConfig {
115115
// more details.
116116
int32 sample_rate_hertz = 2;
117117

118-
// Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo] in
119-
// [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult] with information about the recognized speech
118+
// Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
119+
// [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
120120
// words, e.g. start and end time offsets. If false or unspecified, Speech
121121
// doesn't return any word-level information.
122122
bool enable_word_info = 13;
@@ -142,7 +142,7 @@ message InputAudioConfig {
142142
// for more details.
143143
string model = 7;
144144

145-
// Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] to use.
145+
// Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
146146
SpeechModelVariant model_variant = 10;
147147

148148
// Optional. If `false` (default), recognition does not cease until the
@@ -156,7 +156,7 @@ message InputAudioConfig {
156156
bool single_utterance = 8;
157157
}
158158

159-
// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] to use.
159+
// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
160160
//
161161
// See the [Cloud Speech
162162
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
@@ -185,7 +185,7 @@ enum SpeechModelVariant {
185185
// Use an enhanced model variant:
186186
//
187187
// * If an enhanced variant does not exist for the given
188-
// [model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] and request language, Dialogflow falls
188+
// [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls
189189
// back to the standard variant.
190190
//
191191
// The [Cloud Speech
@@ -203,12 +203,12 @@ enum SpeechModelVariant {
203203
message VoiceSelectionParams {
204204
// Optional. The name of the voice. If not set, the service will choose a
205205
// voice based on the other parameters such as language_code and
206-
// [ssml_gender][google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.ssml_gender].
206+
// [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender].
207207
string name = 1;
208208

209209
// Optional. The preferred gender of the voice. If not set, the service will
210210
// choose a voice based on the other parameters such as language_code and
211-
// [name][google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
211+
// [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
212212
// voice of the appropriate gender is not available, the synthesizer should
213213
// substitute a voice with a different gender rather than failing the request.
214214
SsmlVoiceGender ssml_gender = 2;

0 commit comments

Comments
 (0)