Class Tool.ConnectorTool.Action.Builder

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

public static final class Tool.ConnectorTool.Action.Builder extends com.google.protobuf.GeneratedMessage.Builder<Tool.ConnectorTool.Action.Builder> implements Tool.ConnectorTool.ActionOrBuilder
 Configuration of a Connection operation for the tool to use.
 
Protobuf type google.cloud.dialogflow.v2.Tool.ConnectorTool.Action
  • 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.Action.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.Action.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.Action.Builder>
    • getDefaultInstanceForType

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

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

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

      public Tool.ConnectorTool.Action.ActionSpecCase getActionSpecCase()
      Specified by:
      getActionSpecCase in interface Tool.ConnectorTool.ActionOrBuilder
    • clearActionSpec

      public Tool.ConnectorTool.Action.Builder clearActionSpec()
    • hasConnectionActionId

      public boolean hasConnectionActionId()
       ID of a Connection action for the tool to use.
       
      string connection_action_id = 4;
      Specified by:
      hasConnectionActionId in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      Whether the connectionActionId field is set.
    • getConnectionActionId

      public String getConnectionActionId()
       ID of a Connection action for the tool to use.
       
      string connection_action_id = 4;
      Specified by:
      getConnectionActionId in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      The connectionActionId.
    • getConnectionActionIdBytes

      public com.google.protobuf.ByteString getConnectionActionIdBytes()
       ID of a Connection action for the tool to use.
       
      string connection_action_id = 4;
      Specified by:
      getConnectionActionIdBytes in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      The bytes for connectionActionId.
    • setConnectionActionId

      public Tool.ConnectorTool.Action.Builder setConnectionActionId(String value)
       ID of a Connection action for the tool to use.
       
      string connection_action_id = 4;
      Parameters:
      value - The connectionActionId to set.
      Returns:
      This builder for chaining.
    • clearConnectionActionId

      public Tool.ConnectorTool.Action.Builder clearConnectionActionId()
       ID of a Connection action for the tool to use.
       
      string connection_action_id = 4;
      Returns:
      This builder for chaining.
    • setConnectionActionIdBytes

      public Tool.ConnectorTool.Action.Builder setConnectionActionIdBytes(com.google.protobuf.ByteString value)
       ID of a Connection action for the tool to use.
       
      string connection_action_id = 4;
      Parameters:
      value - The bytes for connectionActionId to set.
      Returns:
      This builder for chaining.
    • hasEntityOperation

      public boolean hasEntityOperation()
       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
      Specified by:
      hasEntityOperation in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      Whether the entityOperation field is set.
    • getEntityOperation

      public Tool.ConnectorTool.Action.EntityOperation getEntityOperation()
       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
      Specified by:
      getEntityOperation in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      The entityOperation.
    • setEntityOperation

       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
    • setEntityOperation

       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
    • mergeEntityOperation

       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
    • clearEntityOperation

      public Tool.ConnectorTool.Action.Builder clearEntityOperation()
       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
    • getEntityOperationBuilder

      public Tool.ConnectorTool.Action.EntityOperation.Builder getEntityOperationBuilder()
       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
    • getEntityOperationOrBuilder

      public Tool.ConnectorTool.Action.EntityOperationOrBuilder getEntityOperationOrBuilder()
       Entity operation configuration for the tool to use.
       
      .google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;
      Specified by:
      getEntityOperationOrBuilder in interface Tool.ConnectorTool.ActionOrBuilder
    • getInputFieldsList

      public com.google.protobuf.ProtocolStringList getInputFieldsList()
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputFieldsList in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      A list containing the inputFields.
    • getInputFieldsCount

      public int getInputFieldsCount()
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputFieldsCount in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      The count of inputFields.
    • getInputFields

      public String getInputFields(int index)
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputFields in interface Tool.ConnectorTool.ActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inputFields at the given index.
    • getInputFieldsBytes

      public com.google.protobuf.ByteString getInputFieldsBytes(int index)
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputFieldsBytes in interface Tool.ConnectorTool.ActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the inputFields at the given index.
    • setInputFields

      public Tool.ConnectorTool.Action.Builder setInputFields(int index, String value)
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The inputFields to set.
      Returns:
      This builder for chaining.
    • addInputFields

      public Tool.ConnectorTool.Action.Builder addInputFields(String value)
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The inputFields to add.
      Returns:
      This builder for chaining.
    • addAllInputFields

      public Tool.ConnectorTool.Action.Builder addAllInputFields(Iterable<String> values)
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The inputFields to add.
      Returns:
      This builder for chaining.
    • clearInputFields

      public Tool.ConnectorTool.Action.Builder clearInputFields()
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addInputFieldsBytes

      public Tool.ConnectorTool.Action.Builder addInputFieldsBytes(com.google.protobuf.ByteString value)
       Optional. Entity fields to use as inputs for the operation.
       If no fields are specified, all fields of the Entity will be used.
       
      repeated string input_fields = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the inputFields to add.
      Returns:
      This builder for chaining.
    • getOutputFieldsList

      public com.google.protobuf.ProtocolStringList getOutputFieldsList()
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputFieldsList in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      A list containing the outputFields.
    • getOutputFieldsCount

      public int getOutputFieldsCount()
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputFieldsCount in interface Tool.ConnectorTool.ActionOrBuilder
      Returns:
      The count of outputFields.
    • getOutputFields

      public String getOutputFields(int index)
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputFields in interface Tool.ConnectorTool.ActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The outputFields at the given index.
    • getOutputFieldsBytes

      public com.google.protobuf.ByteString getOutputFieldsBytes(int index)
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputFieldsBytes in interface Tool.ConnectorTool.ActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the outputFields at the given index.
    • setOutputFields

      public Tool.ConnectorTool.Action.Builder setOutputFields(int index, String value)
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The outputFields to set.
      Returns:
      This builder for chaining.
    • addOutputFields

      public Tool.ConnectorTool.Action.Builder addOutputFields(String value)
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The outputFields to add.
      Returns:
      This builder for chaining.
    • addAllOutputFields

      public Tool.ConnectorTool.Action.Builder addAllOutputFields(Iterable<String> values)
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The outputFields to add.
      Returns:
      This builder for chaining.
    • clearOutputFields

      public Tool.ConnectorTool.Action.Builder clearOutputFields()
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addOutputFieldsBytes

      public Tool.ConnectorTool.Action.Builder addOutputFieldsBytes(com.google.protobuf.ByteString value)
       Optional. Entity fields to return from the operation.
       If no fields are specified, all fields of the Entity will be returned.
       
      repeated string output_fields = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the outputFields to add.
      Returns:
      This builder for chaining.