Class Tool.ConnectorTool.Builder

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

public static final class Tool.ConnectorTool.Builder extends com.google.protobuf.GeneratedMessage.Builder<Tool.ConnectorTool.Builder> implements Tool.ConnectorToolOrBuilder
 A ConnectorTool enabling using Integration Connectors Connections as tools.
 
Protobuf type google.cloud.dialogflow.v2.Tool.ConnectorTool
  • 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<Tool.ConnectorTool.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<Tool.ConnectorTool.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<Tool.ConnectorTool.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Tool.ConnectorTool.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<Tool.ConnectorTool.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The full resource name of the referenced Integration Connectors
       Connection. Format: 'projects/*/locations/*/connections/*'
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface Tool.ConnectorToolOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The full resource name of the referenced Integration Connectors
       Connection. Format: 'projects/*/locations/*/connections/*'
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface Tool.ConnectorToolOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Tool.ConnectorTool.Builder setName(String value)
       Required. The full resource name of the referenced Integration Connectors
       Connection. Format: 'projects/*/locations/*/connections/*'
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Tool.ConnectorTool.Builder clearName()
       Required. The full resource name of the referenced Integration Connectors
       Connection. Format: 'projects/*/locations/*/connections/*'
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Tool.ConnectorTool.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The full resource name of the referenced Integration Connectors
       Connection. Format: 'projects/*/locations/*/connections/*'
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getActionsList

      public List<Tool.ConnectorTool.Action> getActionsList()
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionsList in interface Tool.ConnectorToolOrBuilder
    • getActionsCount

      public int getActionsCount()
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionsCount in interface Tool.ConnectorToolOrBuilder
    • getActions

      public Tool.ConnectorTool.Action getActions(int index)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActions in interface Tool.ConnectorToolOrBuilder
    • setActions

      public Tool.ConnectorTool.Builder setActions(int index, Tool.ConnectorTool.Action value)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • setActions

      public Tool.ConnectorTool.Builder setActions(int index, Tool.ConnectorTool.Action.Builder builderForValue)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addActions

       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addActions

      public Tool.ConnectorTool.Builder addActions(int index, Tool.ConnectorTool.Action value)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addActions

       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addActions

      public Tool.ConnectorTool.Builder addActions(int index, Tool.ConnectorTool.Action.Builder builderForValue)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllActions

      public Tool.ConnectorTool.Builder addAllActions(Iterable<? extends Tool.ConnectorTool.Action> values)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearActions

      public Tool.ConnectorTool.Builder clearActions()
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeActions

      public Tool.ConnectorTool.Builder removeActions(int index)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getActionsBuilder

      public Tool.ConnectorTool.Action.Builder getActionsBuilder(int index)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getActionsOrBuilder

      public Tool.ConnectorTool.ActionOrBuilder getActionsOrBuilder(int index)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionsOrBuilder in interface Tool.ConnectorToolOrBuilder
    • getActionsOrBuilderList

      public List<? extends Tool.ConnectorTool.ActionOrBuilder> getActionsOrBuilderList()
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getActionsOrBuilderList in interface Tool.ConnectorToolOrBuilder
    • addActionsBuilder

      public Tool.ConnectorTool.Action.Builder addActionsBuilder()
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • addActionsBuilder

      public Tool.ConnectorTool.Action.Builder addActionsBuilder(int index)
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];
    • getActionsBuilderList

      public List<Tool.ConnectorTool.Action.Builder> getActionsBuilderList()
       Required. Actions for the tool to use.
       
      repeated .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action actions = 2 [(.google.api.field_behavior) = REQUIRED];