public interface ExportAgentResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
ExportAgentResponse.AgentCase |
getAgentCase() |
com.google.protobuf.ByteString |
getAgentContent()
The exported agent.
|
String |
getAgentUri()
The URI to a file containing the exported agent.
|
com.google.protobuf.ByteString |
getAgentUriBytes()
The URI to a file containing the exported agent.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getAgentUri()
The URI to a file containing the exported agent. This field is populated only if `agent_uri` is specified in `ExportAgentRequest`.
string agent_uri = 1;com.google.protobuf.ByteString getAgentUriBytes()
The URI to a file containing the exported agent. This field is populated only if `agent_uri` is specified in `ExportAgentRequest`.
string agent_uri = 1;com.google.protobuf.ByteString getAgentContent()
The exported agent.
Example for how to export an agent to a zip file via a command line:
<pre>curl \
'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:export'\
-X POST \
-H 'Authorization: Bearer '$(gcloud auth application-default
print-access-token) \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--compressed \
--data-binary '{}' \
| grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
| base64 --decode > <agent zip file></pre>
bytes agent_content = 2;ExportAgentResponse.AgentCase getAgentCase()
Copyright © 2019 Google LLC. All rights reserved.