Class ExportToolsRequest.Builder

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

public static final class ExportToolsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportToolsRequest.Builder> implements ExportToolsRequestOrBuilder
 The request message for
 [Tools.ExportTools][google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest
  • 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<ExportToolsRequest.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<ExportToolsRequest.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<ExportToolsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ExportToolsRequest.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<ExportToolsRequest.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<ExportToolsRequest.Builder>
    • mergeFrom

      public ExportToolsRequest.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<ExportToolsRequest.Builder>
      Throws:
      IOException
    • getDestinationCase

      public ExportToolsRequest.DestinationCase getDestinationCase()
      Specified by:
      getDestinationCase in interface ExportToolsRequestOrBuilder
    • clearDestination

      public ExportToolsRequest.Builder clearDestination()
    • getParent

      public String getParent()
       Required. The agent to export tools from.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ExportToolsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The agent to export tools from.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ExportToolsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ExportToolsRequest.Builder setParent(String value)
       Required. The agent to export tools from.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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 ExportToolsRequest.Builder clearParent()
       Required. The agent to export tools from.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ExportToolsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to export tools from.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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.
    • getToolsList

      public com.google.protobuf.ProtocolStringList getToolsList()
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolsList in interface ExportToolsRequestOrBuilder
      Returns:
      A list containing the tools.
    • getToolsCount

      public int getToolsCount()
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolsCount in interface ExportToolsRequestOrBuilder
      Returns:
      The count of tools.
    • getTools

      public String getTools(int index)
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getTools in interface ExportToolsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tools at the given index.
    • getToolsBytes

      public com.google.protobuf.ByteString getToolsBytes(int index)
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getToolsBytes in interface ExportToolsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tools at the given index.
    • setTools

      public ExportToolsRequest.Builder setTools(int index, String value)
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The tools to set.
      Returns:
      This builder for chaining.
    • addTools

      public ExportToolsRequest.Builder addTools(String value)
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The tools to add.
      Returns:
      This builder for chaining.
    • addAllTools

      public ExportToolsRequest.Builder addAllTools(Iterable<String> values)
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The tools to add.
      Returns:
      This builder for chaining.
    • clearTools

      public ExportToolsRequest.Builder clearTools()
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addToolsBytes

      public ExportToolsRequest.Builder addToolsBytes(com.google.protobuf.ByteString value)
       Required. The name of the tools to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
       
      repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the tools to add.
      Returns:
      This builder for chaining.
    • hasToolsUri

      public boolean hasToolsUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the tools
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
      
       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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasToolsUri in interface ExportToolsRequestOrBuilder
      Returns:
      Whether the toolsUri field is set.
    • getToolsUri

      public String getToolsUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the tools
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
      
       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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsUri in interface ExportToolsRequestOrBuilder
      Returns:
      The toolsUri.
    • getToolsUriBytes

      public com.google.protobuf.ByteString getToolsUriBytes()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the tools
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
      
       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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsUriBytes in interface ExportToolsRequestOrBuilder
      Returns:
      The bytes for toolsUri.
    • setToolsUri

      public ExportToolsRequest.Builder setToolsUri(String value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the tools
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
      
       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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The toolsUri to set.
      Returns:
      This builder for chaining.
    • clearToolsUri

      public ExportToolsRequest.Builder clearToolsUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the tools
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
      
       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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setToolsUriBytes

      public ExportToolsRequest.Builder setToolsUriBytes(com.google.protobuf.ByteString value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the tools
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
      
       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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for toolsUri to set.
      Returns:
      This builder for chaining.
    • hasToolsContentInline

      public boolean hasToolsContentInline()
       Optional. The option to return the serialized tools inline.
       
      bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasToolsContentInline in interface ExportToolsRequestOrBuilder
      Returns:
      Whether the toolsContentInline field is set.
    • getToolsContentInline

      public boolean getToolsContentInline()
       Optional. The option to return the serialized tools inline.
       
      bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsContentInline in interface ExportToolsRequestOrBuilder
      Returns:
      The toolsContentInline.
    • setToolsContentInline

      public ExportToolsRequest.Builder setToolsContentInline(boolean value)
       Optional. The option to return the serialized tools inline.
       
      bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The toolsContentInline to set.
      Returns:
      This builder for chaining.
    • clearToolsContentInline

      public ExportToolsRequest.Builder clearToolsContentInline()
       Optional. The option to return the serialized tools inline.
       
      bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDataFormatValue

      public int getDataFormatValue()
       Optional. The data format of the exported tools. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormatValue in interface ExportToolsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for dataFormat.
    • setDataFormatValue

      public ExportToolsRequest.Builder setDataFormatValue(int value)
       Optional. The data format of the exported tools. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for dataFormat to set.
      Returns:
      This builder for chaining.
    • getDataFormat

      public ExportToolsRequest.DataFormat getDataFormat()
       Optional. The data format of the exported tools. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormat in interface ExportToolsRequestOrBuilder
      Returns:
      The dataFormat.
    • setDataFormat

       Optional. The data format of the exported tools. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataFormat to set.
      Returns:
      This builder for chaining.
    • clearDataFormat

      public ExportToolsRequest.Builder clearDataFormat()
       Optional. The data format of the exported tools. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.