Class PlaybookImportStrategy.Builder

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

public static final class PlaybookImportStrategy.Builder extends com.google.protobuf.GeneratedMessage.Builder<PlaybookImportStrategy.Builder> implements PlaybookImportStrategyOrBuilder
 The playbook import strategy used for resource conflict resolution associated
 with an
 [ImportPlaybookRequest][google.cloud.dialogflow.cx.v3beta1.ImportPlaybookRequest].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.PlaybookImportStrategy
  • 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<PlaybookImportStrategy.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<PlaybookImportStrategy.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<PlaybookImportStrategy.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PlaybookImportStrategy.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<PlaybookImportStrategy.Builder>
      Throws:
      IOException
    • getMainPlaybookImportStrategyValue

      public int getMainPlaybookImportStrategyValue()
       Optional. Specifies the import strategy used when resolving conflicts with
       the main playbook. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMainPlaybookImportStrategyValue in interface PlaybookImportStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for mainPlaybookImportStrategy.
    • setMainPlaybookImportStrategyValue

      public PlaybookImportStrategy.Builder setMainPlaybookImportStrategyValue(int value)
       Optional. Specifies the import strategy used when resolving conflicts with
       the main playbook. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for mainPlaybookImportStrategy to set.
      Returns:
      This builder for chaining.
    • getMainPlaybookImportStrategy

      public ImportStrategy getMainPlaybookImportStrategy()
       Optional. Specifies the import strategy used when resolving conflicts with
       the main playbook. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMainPlaybookImportStrategy in interface PlaybookImportStrategyOrBuilder
      Returns:
      The mainPlaybookImportStrategy.
    • setMainPlaybookImportStrategy

      public PlaybookImportStrategy.Builder setMainPlaybookImportStrategy(ImportStrategy value)
       Optional. Specifies the import strategy used when resolving conflicts with
       the main playbook. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mainPlaybookImportStrategy to set.
      Returns:
      This builder for chaining.
    • clearMainPlaybookImportStrategy

      public PlaybookImportStrategy.Builder clearMainPlaybookImportStrategy()
       Optional. Specifies the import strategy used when resolving conflicts with
       the main playbook. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy main_playbook_import_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getNestedResourceImportStrategyValue

      public int getNestedResourceImportStrategyValue()
       Optional. Specifies the import strategy used when resolving referenced
       playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNestedResourceImportStrategyValue in interface PlaybookImportStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for nestedResourceImportStrategy.
    • setNestedResourceImportStrategyValue

      public PlaybookImportStrategy.Builder setNestedResourceImportStrategyValue(int value)
       Optional. Specifies the import strategy used when resolving referenced
       playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for nestedResourceImportStrategy to set.
      Returns:
      This builder for chaining.
    • getNestedResourceImportStrategy

      public ImportStrategy getNestedResourceImportStrategy()
       Optional. Specifies the import strategy used when resolving referenced
       playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNestedResourceImportStrategy in interface PlaybookImportStrategyOrBuilder
      Returns:
      The nestedResourceImportStrategy.
    • setNestedResourceImportStrategy

      public PlaybookImportStrategy.Builder setNestedResourceImportStrategy(ImportStrategy value)
       Optional. Specifies the import strategy used when resolving referenced
       playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nestedResourceImportStrategy to set.
      Returns:
      This builder for chaining.
    • clearNestedResourceImportStrategy

      public PlaybookImportStrategy.Builder clearNestedResourceImportStrategy()
       Optional. Specifies the import strategy used when resolving referenced
       playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy nested_resource_import_strategy = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getToolImportStrategyValue

      public int getToolImportStrategyValue()
       Optional. Specifies the import strategy used when resolving tool conflicts.
       If not specified, 'CREATE_NEW' is assumed. This will be applied after the
       main playbook and nested resource import strategies, meaning if the
       playbook that references the tool is skipped, the tool will also be
       skipped.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolImportStrategyValue in interface PlaybookImportStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for toolImportStrategy.
    • setToolImportStrategyValue

      public PlaybookImportStrategy.Builder setToolImportStrategyValue(int value)
       Optional. Specifies the import strategy used when resolving tool conflicts.
       If not specified, 'CREATE_NEW' is assumed. This will be applied after the
       main playbook and nested resource import strategies, meaning if the
       playbook that references the tool is skipped, the tool will also be
       skipped.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for toolImportStrategy to set.
      Returns:
      This builder for chaining.
    • getToolImportStrategy

      public ImportStrategy getToolImportStrategy()
       Optional. Specifies the import strategy used when resolving tool conflicts.
       If not specified, 'CREATE_NEW' is assumed. This will be applied after the
       main playbook and nested resource import strategies, meaning if the
       playbook that references the tool is skipped, the tool will also be
       skipped.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolImportStrategy in interface PlaybookImportStrategyOrBuilder
      Returns:
      The toolImportStrategy.
    • setToolImportStrategy

      public PlaybookImportStrategy.Builder setToolImportStrategy(ImportStrategy value)
       Optional. Specifies the import strategy used when resolving tool conflicts.
       If not specified, 'CREATE_NEW' is assumed. This will be applied after the
       main playbook and nested resource import strategies, meaning if the
       playbook that references the tool is skipped, the tool will also be
       skipped.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The toolImportStrategy to set.
      Returns:
      This builder for chaining.
    • clearToolImportStrategy

      public PlaybookImportStrategy.Builder clearToolImportStrategy()
       Optional. Specifies the import strategy used when resolving tool conflicts.
       If not specified, 'CREATE_NEW' is assumed. This will be applied after the
       main playbook and nested resource import strategies, meaning if the
       playbook that references the tool is skipped, the tool will also be
       skipped.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportStrategy tool_import_strategy = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.