public interface RestoreAgentRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
RestoreAgentRequest.AgentCase |
getAgentCase() |
com.google.protobuf.ByteString |
getAgentContent()
The agent to restore.
|
String |
getAgentUri()
The URI to a Google Cloud Storage file containing the agent to restore.
|
com.google.protobuf.ByteString |
getAgentUriBytes()
The URI to a Google Cloud Storage file containing the agent to restore.
|
String |
getParent()
Required.
|
com.google.protobuf.ByteString |
getParentBytes()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getParent()
Required. The project that the agent to restore is associated with. Format: `projects/<Project ID>`.
string parent = 1;com.google.protobuf.ByteString getParentBytes()
Required. The project that the agent to restore is associated with. Format: `projects/<Project ID>`.
string parent = 1;String getAgentUri()
The URI to a Google Cloud Storage file containing the agent to restore. Note: The URI must start with "gs://".
string agent_uri = 2;com.google.protobuf.ByteString getAgentUriBytes()
The URI to a Google Cloud Storage file containing the agent to restore. Note: The URI must start with "gs://".
string agent_uri = 2;com.google.protobuf.ByteString getAgentContent()
The agent to restore.
Example for how to restore an agent via the command line:
<pre>curl \
'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/agent:restore\
-X POST \
-H 'Authorization: Bearer '$(gcloud auth application-default
print-access-token) \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--compressed \
--data-binary "{
'agentContent': '$(cat <agent zip file> | base64 -w 0)'
}"</pre>
bytes agent_content = 3;RestoreAgentRequest.AgentCase getAgentCase()
Copyright © 2019 Google LLC. All rights reserved.