Skip to content

Commit 10bb0cb

Browse files
feat: [dialogflow-cx] added JSON_PACKAGE field to ExportAgentRequest (#9025)
* feat: added JSON_PACKAGE field to ExportAgentRequest PiperOrigin-RevId: 504031208 Source-Link: googleapis/googleapis@c6af392 Source-Link: https://github.com/googleapis/googleapis-gen/commit/784976477762d98a9c30834dc4585d815af2fbfb Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI3ODQ5NzY0Nzc3NjJkOThhOWMzMDgzNGRjNDU4NWQ4MTVhZjJmYmZiIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added JSON_PACKAGE field to ExportAgentRequest PiperOrigin-RevId: 504306290 Source-Link: googleapis/googleapis@ce6911f Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ade5ce87506d311df331a640804eb42924588c4 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI1YWRlNWNlODc1MDZkMzExZGYzMzFhNjQwODA0ZWI0MjkyNDU4OGM0In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 7d96c4e commit 10bb0cb

7 files changed

Lines changed: 207 additions & 157 deletions

File tree

java-dialogflow-cx/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
2222
<dependency>
2323
<groupId>com.google.cloud</groupId>
2424
<artifactId>google-cloud-dialogflow-cx</artifactId>
25-
<version>0.19.0</version>
25+
<version>0.20.0</version>
2626
</dependency>
2727
```
2828

2929
If you are using Gradle without BOM, add this to your dependencies:
3030

3131
```Groovy
32-
implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.19.0'
32+
implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.20.0'
3333
```
3434

3535
If you are using SBT, add this to your dependencies:
3636

3737
```Scala
38-
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.19.0"
38+
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.20.0"
3939
```
4040

4141
## Authentication

java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -135,87 +135,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
135135
+ "logflow.cx.v3.AgentB\003\340A\002\022/\n\013update_mask\030"
136136
+ "\002 \001(\0132\032.google.protobuf.FieldMask\"K\n\022Del"
137137
+ "eteAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037d"
138-
+ "ialogflow.googleapis.com/Agent\"\264\002\n\022Expor"
138+
+ "ialogflow.googleapis.com/Agent\"\306\002\n\022Expor"
139139
+ "tAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dia"
140140
+ "logflow.googleapis.com/Agent\022\026\n\tagent_ur"
141141
+ "i\030\002 \001(\tB\003\340A\001\022V\n\013data_format\030\003 \001(\0162<.goog"
142142
+ "le.cloud.dialogflow.cx.v3.ExportAgentReq"
143143
+ "uest.DataFormatB\003\340A\001\022B\n\013environment\030\005 \001("
144144
+ "\tB-\340A\001\372A\'\n%dialogflow.googleapis.com/Env"
145-
+ "ironment\"3\n\nDataFormat\022\033\n\027DATA_FORMAT_UN"
146-
+ "SPECIFIED\020\000\022\010\n\004BLOB\020\001\"L\n\023ExportAgentResp"
147-
+ "onse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_conte"
148-
+ "nt\030\002 \001(\014H\000B\007\n\005agent\"\246\002\n\023RestoreAgentRequ"
149-
+ "est\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.go"
150-
+ "ogleapis.com/Agent\022\023\n\tagent_uri\030\002 \001(\tH\000\022"
151-
+ "\027\n\ragent_content\030\003 \001(\014H\000\022X\n\016restore_opti"
152-
+ "on\030\005 \001(\016[email protected].cloud.dialogflow.cx.v3"
153-
+ ".RestoreAgentRequest.RestoreOption\"G\n\rRe"
154-
+ "storeOption\022\036\n\032RESTORE_OPTION_UNSPECIFIE"
155-
+ "D\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005agent\"d\n\024"
156-
+ "ValidateAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372"
157-
+ "A!\n\037dialogflow.googleapis.com/Agent\022\025\n\rl"
158-
+ "anguage_code\030\002 \001(\t\"\177\n\037GetAgentValidation"
159-
+ "ResultRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/dia"
160-
+ "logflow.googleapis.com/AgentValidationRe"
161-
+ "sult\022\025\n\rlanguage_code\030\002 \001(\t\"\372\001\n\025AgentVal"
162-
+ "idationResult\022\014\n\004name\030\001 \001(\t\022T\n\027flow_vali"
163-
+ "dation_results\030\002 \003(\01323.google.cloud.dial"
164-
+ "ogflow.cx.v3.FlowValidationResult:}\352Az\n/"
165-
+ "dialogflow.googleapis.com/AgentValidatio"
166-
+ "nResult\022Gprojects/{project}/locations/{l"
167-
+ "ocation}/agents/{agent}/validationResult"
168-
+ "2\231\016\n\006Agents\022\256\001\n\nListAgents\0220.google.clou"
169-
+ "d.dialogflow.cx.v3.ListAgentsRequest\0321.g"
170-
+ "oogle.cloud.dialogflow.cx.v3.ListAgentsR"
171-
+ "esponse\";\202\323\344\223\002,\022*/v3/{parent=projects/*/"
172-
+ "locations/*}/agents\332A\006parent\022\233\001\n\010GetAgen"
173-
+ "t\022..google.cloud.dialogflow.cx.v3.GetAge"
174-
+ "ntRequest\032$.google.cloud.dialogflow.cx.v"
175-
+ "3.Agent\"9\202\323\344\223\002,\022*/v3/{name=projects/*/lo"
176-
+ "cations/*/agents/*}\332A\004name\022\260\001\n\013CreateAge"
177-
+ "nt\0221.google.cloud.dialogflow.cx.v3.Creat"
178-
+ "eAgentRequest\032$.google.cloud.dialogflow."
179-
+ "cx.v3.Agent\"H\202\323\344\223\0023\"*/v3/{parent=project"
180-
+ "s/*/locations/*}/agents:\005agent\332A\014parent,"
181-
+ "agent\022\273\001\n\013UpdateAgent\0221.google.cloud.dia"
182-
+ "logflow.cx.v3.UpdateAgentRequest\032$.googl"
183-
+ "e.cloud.dialogflow.cx.v3.Agent\"S\202\323\344\223\002920"
184-
+ "/v3/{agent.name=projects/*/locations/*/a"
185-
+ "gents/*}:\005agent\332A\021agent,update_mask\022\223\001\n\013"
186-
+ "DeleteAgent\0221.google.cloud.dialogflow.cx"
187-
+ ".v3.DeleteAgentRequest\032\026.google.protobuf"
188-
+ ".Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/loc"
189-
+ "ations/*/agents/*}\332A\004name\022\315\001\n\013ExportAgen"
190-
+ "t\0221.google.cloud.dialogflow.cx.v3.Export"
191-
+ "AgentRequest\032\035.google.longrunning.Operat"
192-
+ "ion\"l\202\323\344\223\0026\"1/v3/{name=projects/*/locati"
193-
+ "ons/*/agents/*}:export:\001*\312A-\n\023ExportAgen"
194-
+ "tResponse\022\026google.protobuf.Struct\022\322\001\n\014Re"
195-
+ "storeAgent\0222.google.cloud.dialogflow.cx."
196-
+ "v3.RestoreAgentRequest\032\035.google.longrunn"
197-
+ "ing.Operation\"o\202\323\344\223\0027\"2/v3/{name=project"
198-
+ "s/*/locations/*/agents/*}:restore:\001*\312A/\n"
199-
+ "\025google.protobuf.Empty\022\026google.protobuf."
200-
+ "Struct\022\272\001\n\rValidateAgent\0223.google.cloud."
201-
+ "dialogflow.cx.v3.ValidateAgentRequest\0324."
202-
+ "google.cloud.dialogflow.cx.v3.AgentValid"
203-
+ "ationResult\">\202\323\344\223\0028\"3/v3/{name=projects/"
204-
+ "*/locations/*/agents/*}:validate:\001*\022\334\001\n\030"
205-
+ "GetAgentValidationResult\022>.google.cloud."
206-
+ "dialogflow.cx.v3.GetAgentValidationResul"
207-
+ "tRequest\0324.google.cloud.dialogflow.cx.v3"
208-
+ ".AgentValidationResult\"J\202\323\344\223\002=\022;/v3/{nam"
209-
+ "e=projects/*/locations/*/agents/*/valida"
210-
+ "tionResult}\332A\004name\032x\312A\031dialogflow.google"
211-
+ "apis.com\322AYhttps://www.googleapis.com/au"
212-
+ "th/cloud-platform,https://www.googleapis"
213-
+ ".com/auth/dialogflowB\260\001\n!com.google.clou"
214-
+ "d.dialogflow.cx.v3B\nAgentProtoP\001Z1cloud."
215-
+ "google.com/go/dialogflow/cx/apiv3/cxpb;c"
216-
+ "xpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx"
217-
+ ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b"
218-
+ "\006proto3"
145+
+ "ironment\"E\n\nDataFormat\022\033\n\027DATA_FORMAT_UN"
146+
+ "SPECIFIED\020\000\022\010\n\004BLOB\020\001\022\020\n\014JSON_PACKAGE\020\004\""
147+
+ "L\n\023ExportAgentResponse\022\023\n\tagent_uri\030\001 \001("
148+
+ "\tH\000\022\027\n\ragent_content\030\002 \001(\014H\000B\007\n\005agent\"\246\002"
149+
+ "\n\023RestoreAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002"
150+
+ "\372A!\n\037dialogflow.googleapis.com/Agent\022\023\n\t"
151+
+ "agent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014"
152+
+ "H\000\022X\n\016restore_option\030\005 \001(\016[email protected].clou"
153+
+ "d.dialogflow.cx.v3.RestoreAgentRequest.R"
154+
+ "estoreOption\"G\n\rRestoreOption\022\036\n\032RESTORE"
155+
+ "_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLB"
156+
+ "ACK\020\002B\007\n\005agent\"d\n\024ValidateAgentRequest\0225"
157+
+ "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googlea"
158+
+ "pis.com/Agent\022\025\n\rlanguage_code\030\002 \001(\t\"\177\n\037"
159+
+ "GetAgentValidationResultRequest\022E\n\004name\030"
160+
+ "\001 \001(\tB7\340A\002\372A1\n/dialogflow.googleapis.com"
161+
+ "/AgentValidationResult\022\025\n\rlanguage_code\030"
162+
+ "\002 \001(\t\"\372\001\n\025AgentValidationResult\022\014\n\004name\030"
163+
+ "\001 \001(\t\022T\n\027flow_validation_results\030\002 \003(\01323"
164+
+ ".google.cloud.dialogflow.cx.v3.FlowValid"
165+
+ "ationResult:}\352Az\n/dialogflow.googleapis."
166+
+ "com/AgentValidationResult\022Gprojects/{pro"
167+
+ "ject}/locations/{location}/agents/{agent"
168+
+ "}/validationResult2\231\016\n\006Agents\022\256\001\n\nListAg"
169+
+ "ents\0220.google.cloud.dialogflow.cx.v3.Lis"
170+
+ "tAgentsRequest\0321.google.cloud.dialogflow"
171+
+ ".cx.v3.ListAgentsResponse\";\202\323\344\223\002,\022*/v3/{"
172+
+ "parent=projects/*/locations/*}/agents\332A\006"
173+
+ "parent\022\233\001\n\010GetAgent\022..google.cloud.dialo"
174+
+ "gflow.cx.v3.GetAgentRequest\032$.google.clo"
175+
+ "ud.dialogflow.cx.v3.Agent\"9\202\323\344\223\002,\022*/v3/{"
176+
+ "name=projects/*/locations/*/agents/*}\332A\004"
177+
+ "name\022\260\001\n\013CreateAgent\0221.google.cloud.dial"
178+
+ "ogflow.cx.v3.CreateAgentRequest\032$.google"
179+
+ ".cloud.dialogflow.cx.v3.Agent\"H\202\323\344\223\0023\"*/"
180+
+ "v3/{parent=projects/*/locations/*}/agent"
181+
+ "s:\005agent\332A\014parent,agent\022\273\001\n\013UpdateAgent\022"
182+
+ "1.google.cloud.dialogflow.cx.v3.UpdateAg"
183+
+ "entRequest\032$.google.cloud.dialogflow.cx."
184+
+ "v3.Agent\"S\202\323\344\223\002920/v3/{agent.name=projec"
185+
+ "ts/*/locations/*/agents/*}:\005agent\332A\021agen"
186+
+ "t,update_mask\022\223\001\n\013DeleteAgent\0221.google.c"
187+
+ "loud.dialogflow.cx.v3.DeleteAgentRequest"
188+
+ "\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v3/{n"
189+
+ "ame=projects/*/locations/*/agents/*}\332A\004n"
190+
+ "ame\022\315\001\n\013ExportAgent\0221.google.cloud.dialo"
191+
+ "gflow.cx.v3.ExportAgentRequest\032\035.google."
192+
+ "longrunning.Operation\"l\202\323\344\223\0026\"1/v3/{name"
193+
+ "=projects/*/locations/*/agents/*}:export"
194+
+ ":\001*\312A-\n\023ExportAgentResponse\022\026google.prot"
195+
+ "obuf.Struct\022\322\001\n\014RestoreAgent\0222.google.cl"
196+
+ "oud.dialogflow.cx.v3.RestoreAgentRequest"
197+
+ "\032\035.google.longrunning.Operation\"o\202\323\344\223\0027\""
198+
+ "2/v3/{name=projects/*/locations/*/agents"
199+
+ "/*}:restore:\001*\312A/\n\025google.protobuf.Empty"
200+
+ "\022\026google.protobuf.Struct\022\272\001\n\rValidateAge"
201+
+ "nt\0223.google.cloud.dialogflow.cx.v3.Valid"
202+
+ "ateAgentRequest\0324.google.cloud.dialogflo"
203+
+ "w.cx.v3.AgentValidationResult\">\202\323\344\223\0028\"3/"
204+
+ "v3/{name=projects/*/locations/*/agents/*"
205+
+ "}:validate:\001*\022\334\001\n\030GetAgentValidationResu"
206+
+ "lt\022>.google.cloud.dialogflow.cx.v3.GetAg"
207+
+ "entValidationResultRequest\0324.google.clou"
208+
+ "d.dialogflow.cx.v3.AgentValidationResult"
209+
+ "\"J\202\323\344\223\002=\022;/v3/{name=projects/*/locations"
210+
+ "/*/agents/*/validationResult}\332A\004name\032x\312A"
211+
+ "\031dialogflow.googleapis.com\322AYhttps://www"
212+
+ ".googleapis.com/auth/cloud-platform,http"
213+
+ "s://www.googleapis.com/auth/dialogflowB\260"
214+
+ "\001\n!com.google.cloud.dialogflow.cx.v3B\nAg"
215+
+ "entProtoP\001Z1cloud.google.com/go/dialogfl"
216+
+ "ow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.C"
217+
+ "loud.Dialogflow.Cx.V3\352\002!Google::Cloud::D"
218+
+ "ialogflow::CX::V3b\006proto3"
219219
};
220220
descriptor =
221221
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(

java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
101101
* <code>BLOB = 1;</code>
102102
*/
103103
BLOB(1),
104+
/**
105+
*
106+
*
107+
* <pre>
108+
* Agent content will be exported in JSON Package format.
109+
* </pre>
110+
*
111+
* <code>JSON_PACKAGE = 4;</code>
112+
*/
113+
JSON_PACKAGE(4),
104114
UNRECOGNIZED(-1),
105115
;
106116

@@ -124,6 +134,16 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
124134
* <code>BLOB = 1;</code>
125135
*/
126136
public static final int BLOB_VALUE = 1;
137+
/**
138+
*
139+
*
140+
* <pre>
141+
* Agent content will be exported in JSON Package format.
142+
* </pre>
143+
*
144+
* <code>JSON_PACKAGE = 4;</code>
145+
*/
146+
public static final int JSON_PACKAGE_VALUE = 4;
127147

128148
public final int getNumber() {
129149
if (this == UNRECOGNIZED) {
@@ -153,6 +173,8 @@ public static DataFormat forNumber(int value) {
153173
return DATA_FORMAT_UNSPECIFIED;
154174
case 1:
155175
return BLOB;
176+
case 4:
177+
return JSON_PACKAGE;
156178
default:
157179
return null;
158180
}

java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ message ExportAgentRequest {
363363

364364
// Agent content will be exported as raw bytes.
365365
BLOB = 1;
366+
367+
// Agent content will be exported in JSON Package format.
368+
JSON_PACKAGE = 4;
366369
}
367370

368371
// Required. The name of the agent to export.

0 commit comments

Comments
 (0)