Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [dialogflow-cx] added JSON_PACKAGE field to ExportAgentRequest #9025

Merged
merged 10 commits into from
Feb 2, 2023
Merged
6 changes: 3 additions & 3 deletions java-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dialogflow-cx</artifactId>
<version>0.19.0</version>
<version>0.20.0</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.19.0'
implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.20.0'
```

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

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

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,87 +135,87 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "logflow.cx.v3.AgentB\003\340A\002\022/\n\013update_mask\030"
+ "\002 \001(\0132\032.google.protobuf.FieldMask\"K\n\022Del"
+ "eteAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037d"
+ "ialogflow.googleapis.com/Agent\"\264\002\n\022Expor"
+ "ialogflow.googleapis.com/Agent\"\306\002\n\022Expor"
+ "tAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dia"
+ "logflow.googleapis.com/Agent\022\026\n\tagent_ur"
+ "i\030\002 \001(\tB\003\340A\001\022V\n\013data_format\030\003 \001(\0162<.goog"
+ "le.cloud.dialogflow.cx.v3.ExportAgentReq"
+ "uest.DataFormatB\003\340A\001\022B\n\013environment\030\005 \001("
+ "\tB-\340A\001\372A\'\n%dialogflow.googleapis.com/Env"
+ "ironment\"3\n\nDataFormat\022\033\n\027DATA_FORMAT_UN"
+ "SPECIFIED\020\000\022\010\n\004BLOB\020\001\"L\n\023ExportAgentResp"
+ "onse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_conte"
+ "nt\030\002 \001(\014H\000B\007\n\005agent\"\246\002\n\023RestoreAgentRequ"
+ "est\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.go"
+ "ogleapis.com/Agent\022\023\n\tagent_uri\030\002 \001(\tH\000\022"
+ "\027\n\ragent_content\030\003 \001(\014H\000\022X\n\016restore_opti"
+ "on\030\005 \001(\0162@.google.cloud.dialogflow.cx.v3"
+ ".RestoreAgentRequest.RestoreOption\"G\n\rRe"
+ "storeOption\022\036\n\032RESTORE_OPTION_UNSPECIFIE"
+ "D\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005agent\"d\n\024"
+ "ValidateAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372"
+ "A!\n\037dialogflow.googleapis.com/Agent\022\025\n\rl"
+ "anguage_code\030\002 \001(\t\"\177\n\037GetAgentValidation"
+ "ResultRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/dia"
+ "logflow.googleapis.com/AgentValidationRe"
+ "sult\022\025\n\rlanguage_code\030\002 \001(\t\"\372\001\n\025AgentVal"
+ "idationResult\022\014\n\004name\030\001 \001(\t\022T\n\027flow_vali"
+ "dation_results\030\002 \003(\01323.google.cloud.dial"
+ "ogflow.cx.v3.FlowValidationResult:}\352Az\n/"
+ "dialogflow.googleapis.com/AgentValidatio"
+ "nResult\022Gprojects/{project}/locations/{l"
+ "ocation}/agents/{agent}/validationResult"
+ "2\231\016\n\006Agents\022\256\001\n\nListAgents\0220.google.clou"
+ "d.dialogflow.cx.v3.ListAgentsRequest\0321.g"
+ "oogle.cloud.dialogflow.cx.v3.ListAgentsR"
+ "esponse\";\202\323\344\223\002,\022*/v3/{parent=projects/*/"
+ "locations/*}/agents\332A\006parent\022\233\001\n\010GetAgen"
+ "t\022..google.cloud.dialogflow.cx.v3.GetAge"
+ "ntRequest\032$.google.cloud.dialogflow.cx.v"
+ "3.Agent\"9\202\323\344\223\002,\022*/v3/{name=projects/*/lo"
+ "cations/*/agents/*}\332A\004name\022\260\001\n\013CreateAge"
+ "nt\0221.google.cloud.dialogflow.cx.v3.Creat"
+ "eAgentRequest\032$.google.cloud.dialogflow."
+ "cx.v3.Agent\"H\202\323\344\223\0023\"*/v3/{parent=project"
+ "s/*/locations/*}/agents:\005agent\332A\014parent,"
+ "agent\022\273\001\n\013UpdateAgent\0221.google.cloud.dia"
+ "logflow.cx.v3.UpdateAgentRequest\032$.googl"
+ "e.cloud.dialogflow.cx.v3.Agent\"S\202\323\344\223\002920"
+ "/v3/{agent.name=projects/*/locations/*/a"
+ "gents/*}:\005agent\332A\021agent,update_mask\022\223\001\n\013"
+ "DeleteAgent\0221.google.cloud.dialogflow.cx"
+ ".v3.DeleteAgentRequest\032\026.google.protobuf"
+ ".Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/loc"
+ "ations/*/agents/*}\332A\004name\022\315\001\n\013ExportAgen"
+ "t\0221.google.cloud.dialogflow.cx.v3.Export"
+ "AgentRequest\032\035.google.longrunning.Operat"
+ "ion\"l\202\323\344\223\0026\"1/v3/{name=projects/*/locati"
+ "ons/*/agents/*}:export:\001*\312A-\n\023ExportAgen"
+ "tResponse\022\026google.protobuf.Struct\022\322\001\n\014Re"
+ "storeAgent\0222.google.cloud.dialogflow.cx."
+ "v3.RestoreAgentRequest\032\035.google.longrunn"
+ "ing.Operation\"o\202\323\344\223\0027\"2/v3/{name=project"
+ "s/*/locations/*/agents/*}:restore:\001*\312A/\n"
+ "\025google.protobuf.Empty\022\026google.protobuf."
+ "Struct\022\272\001\n\rValidateAgent\0223.google.cloud."
+ "dialogflow.cx.v3.ValidateAgentRequest\0324."
+ "google.cloud.dialogflow.cx.v3.AgentValid"
+ "ationResult\">\202\323\344\223\0028\"3/v3/{name=projects/"
+ "*/locations/*/agents/*}:validate:\001*\022\334\001\n\030"
+ "GetAgentValidationResult\022>.google.cloud."
+ "dialogflow.cx.v3.GetAgentValidationResul"
+ "tRequest\0324.google.cloud.dialogflow.cx.v3"
+ ".AgentValidationResult\"J\202\323\344\223\002=\022;/v3/{nam"
+ "e=projects/*/locations/*/agents/*/valida"
+ "tionResult}\332A\004name\032x\312A\031dialogflow.google"
+ "apis.com\322AYhttps://www.googleapis.com/au"
+ "th/cloud-platform,https://www.googleapis"
+ ".com/auth/dialogflowB\260\001\n!com.google.clou"
+ "d.dialogflow.cx.v3B\nAgentProtoP\001Z1cloud."
+ "google.com/go/dialogflow/cx/apiv3/cxpb;c"
+ "xpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx"
+ ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b"
+ "\006proto3"
+ "ironment\"E\n\nDataFormat\022\033\n\027DATA_FORMAT_UN"
+ "SPECIFIED\020\000\022\010\n\004BLOB\020\001\022\020\n\014JSON_PACKAGE\020\004\""
+ "L\n\023ExportAgentResponse\022\023\n\tagent_uri\030\001 \001("
+ "\tH\000\022\027\n\ragent_content\030\002 \001(\014H\000B\007\n\005agent\"\246\002"
+ "\n\023RestoreAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002"
+ "\372A!\n\037dialogflow.googleapis.com/Agent\022\023\n\t"
+ "agent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003 \001(\014"
+ "H\000\022X\n\016restore_option\030\005 \001(\0162@.google.clou"
+ "d.dialogflow.cx.v3.RestoreAgentRequest.R"
+ "estoreOption\"G\n\rRestoreOption\022\036\n\032RESTORE"
+ "_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLB"
+ "ACK\020\002B\007\n\005agent\"d\n\024ValidateAgentRequest\0225"
+ "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googlea"
+ "pis.com/Agent\022\025\n\rlanguage_code\030\002 \001(\t\"\177\n\037"
+ "GetAgentValidationResultRequest\022E\n\004name\030"
+ "\001 \001(\tB7\340A\002\372A1\n/dialogflow.googleapis.com"
+ "/AgentValidationResult\022\025\n\rlanguage_code\030"
+ "\002 \001(\t\"\372\001\n\025AgentValidationResult\022\014\n\004name\030"
+ "\001 \001(\t\022T\n\027flow_validation_results\030\002 \003(\01323"
+ ".google.cloud.dialogflow.cx.v3.FlowValid"
+ "ationResult:}\352Az\n/dialogflow.googleapis."
+ "com/AgentValidationResult\022Gprojects/{pro"
+ "ject}/locations/{location}/agents/{agent"
+ "}/validationResult2\231\016\n\006Agents\022\256\001\n\nListAg"
+ "ents\0220.google.cloud.dialogflow.cx.v3.Lis"
+ "tAgentsRequest\0321.google.cloud.dialogflow"
+ ".cx.v3.ListAgentsResponse\";\202\323\344\223\002,\022*/v3/{"
+ "parent=projects/*/locations/*}/agents\332A\006"
+ "parent\022\233\001\n\010GetAgent\022..google.cloud.dialo"
+ "gflow.cx.v3.GetAgentRequest\032$.google.clo"
+ "ud.dialogflow.cx.v3.Agent\"9\202\323\344\223\002,\022*/v3/{"
+ "name=projects/*/locations/*/agents/*}\332A\004"
+ "name\022\260\001\n\013CreateAgent\0221.google.cloud.dial"
+ "ogflow.cx.v3.CreateAgentRequest\032$.google"
+ ".cloud.dialogflow.cx.v3.Agent\"H\202\323\344\223\0023\"*/"
+ "v3/{parent=projects/*/locations/*}/agent"
+ "s:\005agent\332A\014parent,agent\022\273\001\n\013UpdateAgent\022"
+ "1.google.cloud.dialogflow.cx.v3.UpdateAg"
+ "entRequest\032$.google.cloud.dialogflow.cx."
+ "v3.Agent\"S\202\323\344\223\002920/v3/{agent.name=projec"
+ "ts/*/locations/*/agents/*}:\005agent\332A\021agen"
+ "t,update_mask\022\223\001\n\013DeleteAgent\0221.google.c"
+ "loud.dialogflow.cx.v3.DeleteAgentRequest"
+ "\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v3/{n"
+ "ame=projects/*/locations/*/agents/*}\332A\004n"
+ "ame\022\315\001\n\013ExportAgent\0221.google.cloud.dialo"
+ "gflow.cx.v3.ExportAgentRequest\032\035.google."
+ "longrunning.Operation\"l\202\323\344\223\0026\"1/v3/{name"
+ "=projects/*/locations/*/agents/*}:export"
+ ":\001*\312A-\n\023ExportAgentResponse\022\026google.prot"
+ "obuf.Struct\022\322\001\n\014RestoreAgent\0222.google.cl"
+ "oud.dialogflow.cx.v3.RestoreAgentRequest"
+ "\032\035.google.longrunning.Operation\"o\202\323\344\223\0027\""
+ "2/v3/{name=projects/*/locations/*/agents"
+ "/*}:restore:\001*\312A/\n\025google.protobuf.Empty"
+ "\022\026google.protobuf.Struct\022\272\001\n\rValidateAge"
+ "nt\0223.google.cloud.dialogflow.cx.v3.Valid"
+ "ateAgentRequest\0324.google.cloud.dialogflo"
+ "w.cx.v3.AgentValidationResult\">\202\323\344\223\0028\"3/"
+ "v3/{name=projects/*/locations/*/agents/*"
+ "}:validate:\001*\022\334\001\n\030GetAgentValidationResu"
+ "lt\022>.google.cloud.dialogflow.cx.v3.GetAg"
+ "entValidationResultRequest\0324.google.clou"
+ "d.dialogflow.cx.v3.AgentValidationResult"
+ "\"J\202\323\344\223\002=\022;/v3/{name=projects/*/locations"
+ "/*/agents/*/validationResult}\332A\004name\032x\312A"
+ "\031dialogflow.googleapis.com\322AYhttps://www"
+ ".googleapis.com/auth/cloud-platform,http"
+ "s://www.googleapis.com/auth/dialogflowB\260"
+ "\001\n!com.google.cloud.dialogflow.cx.v3B\nAg"
+ "entProtoP\001Z1cloud.google.com/go/dialogfl"
+ "ow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.C"
+ "loud.Dialogflow.Cx.V3\352\002!Google::Cloud::D"
+ "ialogflow::CX::V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
* <code>BLOB = 1;</code>
*/
BLOB(1),
/**
*
*
* <pre>
* Agent content will be exported in JSON Package format.
* </pre>
*
* <code>JSON_PACKAGE = 4;</code>
*/
JSON_PACKAGE(4),
UNRECOGNIZED(-1),
;

Expand All @@ -124,6 +134,16 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
* <code>BLOB = 1;</code>
*/
public static final int BLOB_VALUE = 1;
/**
*
*
* <pre>
* Agent content will be exported in JSON Package format.
* </pre>
*
* <code>JSON_PACKAGE = 4;</code>
*/
public static final int JSON_PACKAGE_VALUE = 4;

public final int getNumber() {
if (this == UNRECOGNIZED) {
Expand Down Expand Up @@ -153,6 +173,8 @@ public static DataFormat forNumber(int value) {
return DATA_FORMAT_UNSPECIFIED;
case 1:
return BLOB;
case 4:
return JSON_PACKAGE;
default:
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ message ExportAgentRequest {

// Agent content will be exported as raw bytes.
BLOB = 1;

// Agent content will be exported in JSON Package format.
JSON_PACKAGE = 4;
}

// Required. The name of the agent to export.
Expand Down
Loading