Package com.google.cloud.dialogflow.v2
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 Summary
Modifier and TypeMethodDescriptionaddAllInputFields(Iterable<String> values) Optional.addAllOutputFields(Iterable<String> values) Optional.addInputFields(String value) Optional.addInputFieldsBytes(com.google.protobuf.ByteString value) Optional.addOutputFields(String value) Optional.addOutputFieldsBytes(com.google.protobuf.ByteString value) Optional.build()clear()ID of a Connection action for the tool to use.Entity operation configuration for the tool to use.Optional.Optional.ID of a Connection action for the tool to use.com.google.protobuf.ByteStringID of a Connection action for the tool to use.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEntity operation configuration for the tool to use.Entity operation configuration for the tool to use.Entity operation configuration for the tool to use.getInputFields(int index) Optional.com.google.protobuf.ByteStringgetInputFieldsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getOutputFields(int index) Optional.com.google.protobuf.ByteStringgetOutputFieldsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanID of a Connection action for the tool to use.booleanEntity operation configuration for the tool to use.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanEntity operation configuration for the tool to use.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConnectionActionId(String value) ID of a Connection action for the tool to use.setConnectionActionIdBytes(com.google.protobuf.ByteString value) ID of a Connection action for the tool to use.Entity operation configuration for the tool to use.setEntityOperation(Tool.ConnectorTool.Action.EntityOperation.Builder builderForValue) Entity operation configuration for the tool to use.setInputFields(int index, String value) Optional.setOutputFields(int index, String value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Tool.ConnectorTool.Action.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Tool.ConnectorTool.Action.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Tool.ConnectorTool.Action.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tool.ConnectorTool.Action.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tool.ConnectorTool.Action.Builder>- Throws:
IOException
-
getActionSpecCase
- Specified by:
getActionSpecCasein interfaceTool.ConnectorTool.ActionOrBuilder
-
clearActionSpec
-
hasConnectionActionId
public boolean hasConnectionActionId()ID of a Connection action for the tool to use.
string connection_action_id = 4;- Specified by:
hasConnectionActionIdin interfaceTool.ConnectorTool.ActionOrBuilder- Returns:
- Whether the connectionActionId field is set.
-
getConnectionActionId
ID of a Connection action for the tool to use.
string connection_action_id = 4;- Specified by:
getConnectionActionIdin interfaceTool.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:
getConnectionActionIdBytesin interfaceTool.ConnectorTool.ActionOrBuilder- Returns:
- The bytes for connectionActionId.
-
setConnectionActionId
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
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:
hasEntityOperationin interfaceTool.ConnectorTool.ActionOrBuilder- Returns:
- Whether the entityOperation field is set.
-
getEntityOperation
Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;- Specified by:
getEntityOperationin interfaceTool.ConnectorTool.ActionOrBuilder- Returns:
- The entityOperation.
-
setEntityOperation
public Tool.ConnectorTool.Action.Builder setEntityOperation(Tool.ConnectorTool.Action.EntityOperation value) Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; -
setEntityOperation
public Tool.ConnectorTool.Action.Builder setEntityOperation(Tool.ConnectorTool.Action.EntityOperation.Builder builderForValue) Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; -
mergeEntityOperation
public Tool.ConnectorTool.Action.Builder mergeEntityOperation(Tool.ConnectorTool.Action.EntityOperation value) Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; -
clearEntityOperation
Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; -
getEntityOperationBuilder
Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5; -
getEntityOperationOrBuilder
Entity operation configuration for the tool to use.
.google.cloud.dialogflow.v2.Tool.ConnectorTool.Action.EntityOperation entity_operation = 5;- Specified by:
getEntityOperationOrBuilderin interfaceTool.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:
getInputFieldsListin interfaceTool.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:
getInputFieldsCountin interfaceTool.ConnectorTool.ActionOrBuilder- Returns:
- The count of inputFields.
-
getInputFields
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:
getInputFieldsin interfaceTool.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:
getInputFieldsBytesin interfaceTool.ConnectorTool.ActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputFields at the given index.
-
setInputFields
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
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
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
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
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:
getOutputFieldsListin interfaceTool.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:
getOutputFieldsCountin interfaceTool.ConnectorTool.ActionOrBuilder- Returns:
- The count of outputFields.
-
getOutputFields
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:
getOutputFieldsin interfaceTool.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:
getOutputFieldsBytesin interfaceTool.ConnectorTool.ActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputFields at the given index.
-
setOutputFields
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
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
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
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
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.
-