Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: added fallback option when restoring an agent (#164)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/50a12256-ca5e-4f80-a8f2-ba3c4ab12a2c/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 362090097
Source-Link: googleapis/googleapis@4b16c60

docs: clarified experiment length
  • Loading branch information
yoshi-automation committed Mar 22, 2021
1 parent 31372a4 commit d38deef
Show file tree
Hide file tree
Showing 12 changed files with 609 additions and 189 deletions.
Expand Up @@ -577,6 +577,7 @@ public void restoreAgentTest() throws Exception {
Assert.assertEquals(request.getName(), actualRequest.getName());
Assert.assertEquals(request.getAgentUri(), actualRequest.getAgentUri());
Assert.assertEquals(request.getAgentContent(), actualRequest.getAgentContent());
Assert.assertEquals(request.getRestoreOption(), actualRequest.getRestoreOption());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
Expand Down
Expand Up @@ -135,72 +135,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\340A\002\372A!\n\037dialogflow.googleapis.com/Agent\022"
+ "\026\n\tagent_uri\030\002 \001(\tB\003\340A\001\"L\n\023ExportAgentRe"
+ "sponse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_con"
+ "tent\030\002 \001(\014H\000B\007\n\005agent\"\203\001\n\023RestoreAgentRe"
+ "tent\030\002 \001(\014H\000B\007\n\005agent\"\246\002\n\023RestoreAgentRe"
+ "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow."
+ "googleapis.com/Agent\022\023\n\tagent_uri\030\002 \001(\tH"
+ "\000\022\027\n\ragent_content\030\003 \001(\014H\000B\007\n\005agent\"d\n\024V"
+ "alidateAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A"
+ "!\n\037dialogflow.googleapis.com/Agent\022\025\n\rla"
+ "nguage_code\030\002 \001(\t\"\177\n\037GetAgentValidationR"
+ "esultRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/dial"
+ "ogflow.googleapis.com/AgentValidationRes"
+ "ult\022\025\n\rlanguage_code\030\002 \001(\t\"\372\001\n\025AgentVali"
+ "dationResult\022\014\n\004name\030\001 \001(\t\022T\n\027flow_valid"
+ "ation_results\030\002 \003(\01323.google.cloud.dialo"
+ "gflow.cx.v3.FlowValidationResult:}\352Az\n/d"
+ "\000\022\027\n\ragent_content\030\003 \001(\014H\000\022X\n\016restore_op"
+ "tion\030\005 \001(\0162@.google.cloud.dialogflow.cx."
+ "v3.RestoreAgentRequest.RestoreOption\"G\n\r"
+ "RestoreOption\022\036\n\032RESTORE_OPTION_UNSPECIF"
+ "IED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005agent\"d"
+ "\n\024ValidateAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A"
+ "\002\372A!\n\037dialogflow.googleapis.com/Agent\022\025\n"
+ "\rlanguage_code\030\002 \001(\t\"\177\n\037GetAgentValidati"
+ "onResultRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/d"
+ "ialogflow.googleapis.com/AgentValidation"
+ "Result\022Gprojects/{project}/locations/{lo"
+ "cation}/agents/{agent}/validationResult2"
+ "\231\016\n\006Agents\022\256\001\n\nListAgents\0220.google.cloud"
+ ".dialogflow.cx.v3.ListAgentsRequest\0321.go"
+ "ogle.cloud.dialogflow.cx.v3.ListAgentsRe"
+ "sponse\";\202\323\344\223\002,\022*/v3/{parent=projects/*/l"
+ "ocations/*}/agents\332A\006parent\022\233\001\n\010GetAgent"
+ "\022..google.cloud.dialogflow.cx.v3.GetAgen"
+ "tRequest\032$.google.cloud.dialogflow.cx.v3"
+ ".Agent\"9\202\323\344\223\002,\022*/v3/{name=projects/*/loc"
+ "ations/*/agents/*}\332A\004name\022\260\001\n\013CreateAgen"
+ "t\0221.google.cloud.dialogflow.cx.v3.Create"
+ "AgentRequest\032$.google.cloud.dialogflow.c"
+ "x.v3.Agent\"H\202\323\344\223\0023\"*/v3/{parent=projects"
+ "/*/locations/*}/agents:\005agent\332A\014parent,a"
+ "gent\022\273\001\n\013UpdateAgent\0221.google.cloud.dial"
+ "ogflow.cx.v3.UpdateAgentRequest\032$.google"
+ ".cloud.dialogflow.cx.v3.Agent\"S\202\323\344\223\002920/"
+ "v3/{agent.name=projects/*/locations/*/ag"
+ "ents/*}:\005agent\332A\021agent,update_mask\022\223\001\n\013D"
+ "eleteAgent\0221.google.cloud.dialogflow.cx."
+ "v3.DeleteAgentRequest\032\026.google.protobuf."
+ "Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/loca"
+ "tions/*/agents/*}\332A\004name\022\315\001\n\013ExportAgent"
+ "\0221.google.cloud.dialogflow.cx.v3.ExportA"
+ "gentRequest\032\035.google.longrunning.Operati"
+ "on\"l\202\323\344\223\0026\"1/v3/{name=projects/*/locatio"
+ "ns/*/agents/*}:export:\001*\312A-\n\023ExportAgent"
+ "Response\022\026google.protobuf.Struct\022\322\001\n\014Res"
+ "toreAgent\0222.google.cloud.dialogflow.cx.v"
+ "3.RestoreAgentRequest\032\035.google.longrunni"
+ "ng.Operation\"o\202\323\344\223\0027\"2/v3/{name=projects"
+ "/*/locations/*/agents/*}:restore:\001*\312A/\n\025"
+ "google.protobuf.Empty\022\026google.protobuf.S"
+ "truct\022\272\001\n\rValidateAgent\0223.google.cloud.d"
+ "ialogflow.cx.v3.ValidateAgentRequest\0324.g"
+ "oogle.cloud.dialogflow.cx.v3.AgentValida"
+ "tionResult\">\202\323\344\223\0028\"3/v3/{name=projects/*"
+ "/locations/*/agents/*}:validate:\001*\022\334\001\n\030G"
+ "etAgentValidationResult\022>.google.cloud.d"
+ "ialogflow.cx.v3.GetAgentValidationResult"
+ "Request\0324.google.cloud.dialogflow.cx.v3."
+ "AgentValidationResult\"J\202\323\344\223\002=\022;/v3/{name"
+ "=projects/*/locations/*/agents/*/validat"
+ "ionResult}\332A\004name\032x\312A\031dialogflow.googlea"
+ "pis.com\322AYhttps://www.googleapis.com/aut"
+ "h/cloud-platform,https://www.googleapis."
+ "com/auth/dialogflowB\232\001\n!com.google.cloud"
+ ".dialogflow.cx.v3B\nAgentProtoP\001Z?google."
+ "golang.org/genproto/googleapis/cloud/dia"
+ "logflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud."
+ "Dialogflow.Cx.V3b\006proto3"
+ "Result\022\025\n\rlanguage_code\030\002 \001(\t\"\372\001\n\025AgentV"
+ "alidationResult\022\014\n\004name\030\001 \001(\t\022T\n\027flow_va"
+ "lidation_results\030\002 \003(\01323.google.cloud.di"
+ "alogflow.cx.v3.FlowValidationResult:}\352Az"
+ "\n/dialogflow.googleapis.com/AgentValidat"
+ "ionResult\022Gprojects/{project}/locations/"
+ "{location}/agents/{agent}/validationResu"
+ "lt2\231\016\n\006Agents\022\256\001\n\nListAgents\0220.google.cl"
+ "oud.dialogflow.cx.v3.ListAgentsRequest\0321"
+ ".google.cloud.dialogflow.cx.v3.ListAgent"
+ "sResponse\";\202\323\344\223\002,\022*/v3/{parent=projects/"
+ "*/locations/*}/agents\332A\006parent\022\233\001\n\010GetAg"
+ "ent\022..google.cloud.dialogflow.cx.v3.GetA"
+ "gentRequest\032$.google.cloud.dialogflow.cx"
+ ".v3.Agent\"9\202\323\344\223\002,\022*/v3/{name=projects/*/"
+ "locations/*/agents/*}\332A\004name\022\260\001\n\013CreateA"
+ "gent\0221.google.cloud.dialogflow.cx.v3.Cre"
+ "ateAgentRequest\032$.google.cloud.dialogflo"
+ "w.cx.v3.Agent\"H\202\323\344\223\0023\"*/v3/{parent=proje"
+ "cts/*/locations/*}/agents:\005agent\332A\014paren"
+ "t,agent\022\273\001\n\013UpdateAgent\0221.google.cloud.d"
+ "ialogflow.cx.v3.UpdateAgentRequest\032$.goo"
+ "gle.cloud.dialogflow.cx.v3.Agent\"S\202\323\344\223\0029"
+ "20/v3/{agent.name=projects/*/locations/*"
+ "/agents/*}:\005agent\332A\021agent,update_mask\022\223\001"
+ "\n\013DeleteAgent\0221.google.cloud.dialogflow."
+ "cx.v3.DeleteAgentRequest\032\026.google.protob"
+ "uf.Empty\"9\202\323\344\223\002,**/v3/{name=projects/*/l"
+ "ocations/*/agents/*}\332A\004name\022\315\001\n\013ExportAg"
+ "ent\0221.google.cloud.dialogflow.cx.v3.Expo"
+ "rtAgentRequest\032\035.google.longrunning.Oper"
+ "ation\"l\202\323\344\223\0026\"1/v3/{name=projects/*/loca"
+ "tions/*/agents/*}:export:\001*\312A-\n\023ExportAg"
+ "entResponse\022\026google.protobuf.Struct\022\322\001\n\014"
+ "RestoreAgent\0222.google.cloud.dialogflow.c"
+ "x.v3.RestoreAgentRequest\032\035.google.longru"
+ "nning.Operation\"o\202\323\344\223\0027\"2/v3/{name=proje"
+ "cts/*/locations/*/agents/*}:restore:\001*\312A"
+ "/\n\025google.protobuf.Empty\022\026google.protobu"
+ "f.Struct\022\272\001\n\rValidateAgent\0223.google.clou"
+ "d.dialogflow.cx.v3.ValidateAgentRequest\032"
+ "4.google.cloud.dialogflow.cx.v3.AgentVal"
+ "idationResult\">\202\323\344\223\0028\"3/v3/{name=project"
+ "s/*/locations/*/agents/*}:validate:\001*\022\334\001"
+ "\n\030GetAgentValidationResult\022>.google.clou"
+ "d.dialogflow.cx.v3.GetAgentValidationRes"
+ "ultRequest\0324.google.cloud.dialogflow.cx."
+ "v3.AgentValidationResult\"J\202\323\344\223\002=\022;/v3/{n"
+ "ame=projects/*/locations/*/agents/*/vali"
+ "dationResult}\332A\004name\032x\312A\031dialogflow.goog"
+ "leapis.com\322AYhttps://www.googleapis.com/"
+ "auth/cloud-platform,https://www.googleap"
+ "is.com/auth/dialogflowB\232\001\n!com.google.cl"
+ "oud.dialogflow.cx.v3B\nAgentProtoP\001Z?goog"
+ "le.golang.org/genproto/googleapis/cloud/"
+ "dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Clo"
+ "ud.Dialogflow.Cx.V3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down Expand Up @@ -311,7 +315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_cx_v3_RestoreAgentRequest_descriptor,
new java.lang.String[] {
"Name", "AgentUri", "AgentContent", "Agent",
"Name", "AgentUri", "AgentContent", "RestoreOption", "Agent",
});
internal_static_google_cloud_dialogflow_cx_v3_ValidateAgentRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
Expand Down

0 comments on commit d38deef

Please sign in to comment.