Class ExportAgentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportAgentRequest.Builder>
com.google.cloud.dialogflow.v2.ExportAgentRequest.Builder
All Implemented Interfaces:
ExportAgentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExportAgentRequest

public static final class ExportAgentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportAgentRequest.Builder> implements ExportAgentRequestOrBuilder
 The request message for
 [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
 
Protobuf type google.cloud.dialogflow.v2.ExportAgentRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExportAgentRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExportAgentRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExportAgentRequest.Builder>
    • getDefaultInstanceForType

      public ExportAgentRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ExportAgentRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExportAgentRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExportAgentRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportAgentRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExportAgentRequest.Builder>
    • mergeFrom

      public ExportAgentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportAgentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The project that the agent to export is associated with.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ExportAgentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project that the agent to export is associated with.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ExportAgentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ExportAgentRequest.Builder setParent(String value)
       Required. The project that the agent to export is associated with.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ExportAgentRequest.Builder clearParent()
       Required. The project that the agent to export is associated with.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ExportAgentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project that the agent to export is associated with.
       Format: `projects/<Project ID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getAgentUri

      public String getAgentUri()
       Required. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentUri in interface ExportAgentRequestOrBuilder
      Returns:
      The agentUri.
    • getAgentUriBytes

      public com.google.protobuf.ByteString getAgentUriBytes()
       Required. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentUriBytes in interface ExportAgentRequestOrBuilder
      Returns:
      The bytes for agentUri.
    • setAgentUri

      public ExportAgentRequest.Builder setAgentUri(String value)
       Required. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The agentUri to set.
      Returns:
      This builder for chaining.
    • clearAgentUri

      public ExportAgentRequest.Builder clearAgentUri()
       Required. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAgentUriBytes

      public ExportAgentRequest.Builder setAgentUriBytes(com.google.protobuf.ByteString value)
       Required. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string agent_uri = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for agentUri to set.
      Returns:
      This builder for chaining.