Class Tool.ConnectorTool.Action (0.71.0)

public static final class Tool.ConnectorTool.Action extends GeneratedMessageV3 implements Tool.ConnectorTool.ActionOrBuilder

Configuration of a Connection operation for the tool to use.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool.Action

Static Fields

CONNECTION_ACTION_ID_FIELD_NUMBER

public static final int CONNECTION_ACTION_ID_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_OPERATION_FIELD_NUMBER

public static final int ENTITY_OPERATION_FIELD_NUMBER
Field Value
Type Description
int

INPUT_FIELDS_FIELD_NUMBER

public static final int INPUT_FIELDS_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_FIELDS_FIELD_NUMBER

public static final int OUTPUT_FIELDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Tool.ConnectorTool.Action getDefaultInstance()
Returns
Type Description
Tool.ConnectorTool.Action

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Tool.ConnectorTool.Action.Builder newBuilder()
Returns
Type Description
Tool.ConnectorTool.Action.Builder

newBuilder(Tool.ConnectorTool.Action prototype)

public static Tool.ConnectorTool.Action.Builder newBuilder(Tool.ConnectorTool.Action prototype)
Parameter
Name Description
prototype Tool.ConnectorTool.Action
Returns
Type Description
Tool.ConnectorTool.Action.Builder

parseDelimitedFrom(InputStream input)

public static Tool.ConnectorTool.Action parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.ConnectorTool.Action parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Tool.ConnectorTool.Action parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Tool.ConnectorTool.Action parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Tool.ConnectorTool.Action parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Tool.ConnectorTool.Action parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Tool.ConnectorTool.Action parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.ConnectorTool.Action parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Tool.ConnectorTool.Action parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Tool.ConnectorTool.Action parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Tool.ConnectorTool.Action parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Tool.ConnectorTool.Action parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Tool.ConnectorTool.Action
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Tool.ConnectorTool.Action> parser()
Returns
Type Description
Parser<Action>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActionSpecCase()

public Tool.ConnectorTool.Action.ActionSpecCase getActionSpecCase()
Returns
Type Description
Tool.ConnectorTool.Action.ActionSpecCase

getConnectionActionId()

public String getConnectionActionId()

ID of a Connection action for the tool to use.

string connection_action_id = 4;

Returns
Type Description
String

The connectionActionId.

getConnectionActionIdBytes()

public ByteString getConnectionActionIdBytes()

ID of a Connection action for the tool to use.

string connection_action_id = 4;

Returns
Type Description
ByteString

The bytes for connectionActionId.

getDefaultInstanceForType()

public Tool.ConnectorTool.Action getDefaultInstanceForType()
Returns
Type Description
Tool.ConnectorTool.Action

getEntityOperation()

public Tool.ConnectorTool.Action.EntityOperation getEntityOperation()

Entity operation configuration for the tool to use.

.google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;

Returns
Type Description
Tool.ConnectorTool.Action.EntityOperation

The entityOperation.

getEntityOperationOrBuilder()

public Tool.ConnectorTool.Action.EntityOperationOrBuilder getEntityOperationOrBuilder()

Entity operation configuration for the tool to use.

.google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;

Returns
Type Description
Tool.ConnectorTool.Action.EntityOperationOrBuilder

getInputFields(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The inputFields at the given index.

getInputFieldsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the inputFields at the given index.

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];

Returns
Type Description
int

The count of inputFields.

getInputFieldsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the inputFields.

getOutputFields(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The outputFields at the given index.

getOutputFieldsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the outputFields at the given index.

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];

Returns
Type Description
int

The count of outputFields.

getOutputFieldsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the outputFields.

getParserForType()

public Parser<Tool.ConnectorTool.Action> getParserForType()
Returns
Type Description
Parser<Action>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasConnectionActionId()

public boolean hasConnectionActionId()

ID of a Connection action for the tool to use.

string connection_action_id = 4;

Returns
Type Description
boolean

Whether the connectionActionId field is set.

hasEntityOperation()

public boolean hasEntityOperation()

Entity operation configuration for the tool to use.

.google.cloud.dialogflow.cx.v3beta1.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;

Returns
Type Description
boolean

Whether the entityOperation field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Tool.ConnectorTool.Action.Builder newBuilderForType()
Returns
Type Description
Tool.ConnectorTool.Action.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Tool.ConnectorTool.Action.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Tool.ConnectorTool.Action.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Tool.ConnectorTool.Action.Builder toBuilder()
Returns
Type Description
Tool.ConnectorTool.Action.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException