Class Tool.ConnectorTool.Action

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

public static final class Tool.ConnectorTool.Action extends com.google.protobuf.GeneratedMessage implements Tool.ConnectorTool.ActionOrBuilder
 Configuration of a Connection operation for the tool to use.
 
Protobuf type google.cloud.dialogflow.v2.Tool.ConnectorTool.Action
See Also:
  • Field Details

    • CONNECTION_ACTION_ID_FIELD_NUMBER

      public static final int CONNECTION_ACTION_ID_FIELD_NUMBER
      See Also:
    • ENTITY_OPERATION_FIELD_NUMBER

      public static final int ENTITY_OPERATION_FIELD_NUMBER
      See Also:
    • INPUT_FIELDS_FIELD_NUMBER

      public static final int INPUT_FIELDS_FIELD_NUMBER
      See Also:
    • OUTPUT_FIELDS_FIELD_NUMBER

      public static final int OUTPUT_FIELDS_FIELD_NUMBER
      See Also:
  • 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
    • getActionSpecCase

      public Tool.ConnectorTool.Action.ActionSpecCase getActionSpecCase()
      Specified by:
      getActionSpecCase in interface Tool.ConnectorTool.ActionOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Tool.ConnectorTool.Action parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Tool.ConnectorTool.Action parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Tool.ConnectorTool.Action parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Tool.ConnectorTool.Action.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Tool.ConnectorTool.Action.Builder newBuilder()
    • newBuilder

      public static Tool.ConnectorTool.Action.Builder newBuilder(Tool.ConnectorTool.Action prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Tool.ConnectorTool.Action.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Tool.ConnectorTool.Action getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Tool.ConnectorTool.Action> parser()
    • getParserForType

      public com.google.protobuf.Parser<Tool.ConnectorTool.Action> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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