Class ImportFlowRequest.Builder

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

public static final class ImportFlowRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportFlowRequest.Builder> implements ImportFlowRequestOrBuilder
 The request message for
 [Flows.ImportFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlow].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest
  • 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<ImportFlowRequest.Builder>
    • clear

      public ImportFlowRequest.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<ImportFlowRequest.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<ImportFlowRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ImportFlowRequest.Builder mergeFrom(ImportFlowRequest other)
    • isInitialized

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

      public ImportFlowRequest.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<ImportFlowRequest.Builder>
      Throws:
      IOException
    • getFlowCase

      public ImportFlowRequest.FlowCase getFlowCase()
      Specified by:
      getFlowCase in interface ImportFlowRequestOrBuilder
    • clearFlow

      public ImportFlowRequest.Builder clearFlow()
    • getParent

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

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

      public ImportFlowRequest.Builder setParent(String value)
       Required. The agent to import the flow into.
       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 ImportFlowRequest.Builder clearParent()
       Required. The agent to import the flow into.
       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 ImportFlowRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to import the flow into.
       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.
    • hasFlowUri

      public boolean hasFlowUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import flow from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string flow_uri = 2;
      Specified by:
      hasFlowUri in interface ImportFlowRequestOrBuilder
      Returns:
      Whether the flowUri field is set.
    • getFlowUri

      public String getFlowUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import flow from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string flow_uri = 2;
      Specified by:
      getFlowUri in interface ImportFlowRequestOrBuilder
      Returns:
      The flowUri.
    • getFlowUriBytes

      public com.google.protobuf.ByteString getFlowUriBytes()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import flow from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string flow_uri = 2;
      Specified by:
      getFlowUriBytes in interface ImportFlowRequestOrBuilder
      Returns:
      The bytes for flowUri.
    • setFlowUri

      public ImportFlowRequest.Builder setFlowUri(String value)
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import flow from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string flow_uri = 2;
      Parameters:
      value - The flowUri to set.
      Returns:
      This builder for chaining.
    • clearFlowUri

      public ImportFlowRequest.Builder clearFlowUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import flow from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string flow_uri = 2;
      Returns:
      This builder for chaining.
    • setFlowUriBytes

      public ImportFlowRequest.Builder setFlowUriBytes(com.google.protobuf.ByteString value)
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import flow from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string flow_uri = 2;
      Parameters:
      value - The bytes for flowUri to set.
      Returns:
      This builder for chaining.
    • hasFlowContent

      public boolean hasFlowContent()
       Uncompressed raw byte content for flow.
       
      bytes flow_content = 3;
      Specified by:
      hasFlowContent in interface ImportFlowRequestOrBuilder
      Returns:
      Whether the flowContent field is set.
    • getFlowContent

      public com.google.protobuf.ByteString getFlowContent()
       Uncompressed raw byte content for flow.
       
      bytes flow_content = 3;
      Specified by:
      getFlowContent in interface ImportFlowRequestOrBuilder
      Returns:
      The flowContent.
    • setFlowContent

      public ImportFlowRequest.Builder setFlowContent(com.google.protobuf.ByteString value)
       Uncompressed raw byte content for flow.
       
      bytes flow_content = 3;
      Parameters:
      value - The flowContent to set.
      Returns:
      This builder for chaining.
    • clearFlowContent

      public ImportFlowRequest.Builder clearFlowContent()
       Uncompressed raw byte content for flow.
       
      bytes flow_content = 3;
      Returns:
      This builder for chaining.
    • getImportOptionValue

      public int getImportOptionValue()
       Flow import mode. If not specified, `KEEP` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4;
      Specified by:
      getImportOptionValue in interface ImportFlowRequestOrBuilder
      Returns:
      The enum numeric value on the wire for importOption.
    • setImportOptionValue

      public ImportFlowRequest.Builder setImportOptionValue(int value)
       Flow import mode. If not specified, `KEEP` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4;
      Parameters:
      value - The enum numeric value on the wire for importOption to set.
      Returns:
      This builder for chaining.
    • getImportOption

      public ImportFlowRequest.ImportOption getImportOption()
       Flow import mode. If not specified, `KEEP` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4;
      Specified by:
      getImportOption in interface ImportFlowRequestOrBuilder
      Returns:
      The importOption.
    • setImportOption

       Flow import mode. If not specified, `KEEP` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4;
      Parameters:
      value - The importOption to set.
      Returns:
      This builder for chaining.
    • clearImportOption

      public ImportFlowRequest.Builder clearImportOption()
       Flow import mode. If not specified, `KEEP` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption import_option = 4;
      Returns:
      This builder for chaining.
    • hasFlowImportStrategy

      public boolean hasFlowImportStrategy()
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFlowImportStrategy in interface ImportFlowRequestOrBuilder
      Returns:
      Whether the flowImportStrategy field is set.
    • getFlowImportStrategy

      public FlowImportStrategy getFlowImportStrategy()
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlowImportStrategy in interface ImportFlowRequestOrBuilder
      Returns:
      The flowImportStrategy.
    • setFlowImportStrategy

      public ImportFlowRequest.Builder setFlowImportStrategy(FlowImportStrategy value)
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setFlowImportStrategy

      public ImportFlowRequest.Builder setFlowImportStrategy(FlowImportStrategy.Builder builderForValue)
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFlowImportStrategy

      public ImportFlowRequest.Builder mergeFlowImportStrategy(FlowImportStrategy value)
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearFlowImportStrategy

      public ImportFlowRequest.Builder clearFlowImportStrategy()
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getFlowImportStrategyBuilder

      public FlowImportStrategy.Builder getFlowImportStrategyBuilder()
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getFlowImportStrategyOrBuilder

      public FlowImportStrategyOrBuilder getFlowImportStrategyOrBuilder()
       Optional. Specifies the import strategy used when resolving resource
       conflicts.
       
      .google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy flow_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFlowImportStrategyOrBuilder in interface ImportFlowRequestOrBuilder