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