public static final class ExportAgentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder> implements ExportAgentResponseOrBuilder
The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].Protobuf type
google.cloud.dialogflow.v2beta1.ExportAgentResponse| Modifier and Type | Method and Description |
|---|---|
ExportAgentResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExportAgentResponse |
build() |
ExportAgentResponse |
buildPartial() |
ExportAgentResponse.Builder |
clear() |
ExportAgentResponse.Builder |
clearAgent() |
ExportAgentResponse.Builder |
clearAgentContent()
The exported agent.
|
ExportAgentResponse.Builder |
clearAgentUri()
The URI to a file containing the exported agent.
|
ExportAgentResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ExportAgentResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ExportAgentResponse.Builder |
clone() |
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.
|
ExportAgentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ExportAgentResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ExportAgentResponse.Builder |
mergeFrom(ExportAgentResponse other) |
ExportAgentResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
ExportAgentResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ExportAgentResponse.Builder |
setAgentContent(com.google.protobuf.ByteString value)
The exported agent.
|
ExportAgentResponse.Builder |
setAgentUri(String value)
The URI to a file containing the exported agent.
|
ExportAgentResponse.Builder |
setAgentUriBytes(com.google.protobuf.ByteString value)
The URI to a file containing the exported agent.
|
ExportAgentResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ExportAgentResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ExportAgentResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ExportAgentResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ExportAgentResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ExportAgentResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder mergeFrom(ExportAgentResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public ExportAgentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportAgentResponse.Builder>IOExceptionpublic ExportAgentResponse.AgentCase getAgentCase()
getAgentCase in interface ExportAgentResponseOrBuilderpublic ExportAgentResponse.Builder clearAgent()
public String 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;getAgentUri in interface ExportAgentResponseOrBuilderpublic 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;getAgentUriBytes in interface ExportAgentResponseOrBuilderpublic ExportAgentResponse.Builder setAgentUri(String value)
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;public ExportAgentResponse.Builder clearAgentUri()
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;public ExportAgentResponse.Builder setAgentUriBytes(com.google.protobuf.ByteString value)
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;public 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;getAgentContent in interface ExportAgentResponseOrBuilderpublic ExportAgentResponse.Builder setAgentContent(com.google.protobuf.ByteString value)
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;public ExportAgentResponse.Builder clearAgentContent()
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;public final ExportAgentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>public final ExportAgentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExportAgentResponse.Builder>Copyright © 2019 Google LLC. All rights reserved.