Class Action.Builder (0.1.0)

public static final class Action.Builder extends GeneratedMessage.Builder<Action.Builder> implements ActionOrBuilder

Configuration of an Action for the tool to use. Note: This can be either an Action or an Operation. See https://cloud.google.com/integration-connectors/docs/entities-operation-action for details.

Protobuf type google.cloud.ces.v1.Action

Implements

ActionOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInputFields(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The inputFields to add.

Returns
Type Description
Action.Builder

This builder for chaining.

addAllOutputFields(Iterable<String> values)

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

Parameter
Name Description
values Iterable<String>

The outputFields to add.

Returns
Type Description
Action.Builder

This builder for chaining.

addInputFields(String value)

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

Parameter
Name Description
value String

The inputFields to add.

Returns
Type Description
Action.Builder

This builder for chaining.

addInputFieldsBytes(ByteString value)

public Action.Builder addInputFieldsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the inputFields to add.

Returns
Type Description
Action.Builder

This builder for chaining.

addOutputFields(String value)

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

Parameter
Name Description
value String

The outputFields to add.

Returns
Type Description
Action.Builder

This builder for chaining.

addOutputFieldsBytes(ByteString value)

public Action.Builder addOutputFieldsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the outputFields to add.

Returns
Type Description
Action.Builder

This builder for chaining.

build()

public Action build()
Returns
Type Description
Action

buildPartial()

public Action buildPartial()
Returns
Type Description
Action

clear()

public Action.Builder clear()
Returns
Type Description
Action.Builder
Overrides

clearActionSpec()

public Action.Builder clearActionSpec()
Returns
Type Description
Action.Builder

clearConnectionActionId()

public Action.Builder clearConnectionActionId()

ID of a Connection action for the tool to use.

string connection_action_id = 4;

Returns
Type Description
Action.Builder

This builder for chaining.

clearEntityOperation()

public Action.Builder clearEntityOperation()

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Returns
Type Description
Action.Builder

clearInputFields()

public 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
Type Description
Action.Builder

This builder for chaining.

clearOutputFields()

public 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
Type Description
Action.Builder

This builder for chaining.

getActionSpecCase()

public Action.ActionSpecCase getActionSpecCase()
Returns
Type Description
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 Action getDefaultInstanceForType()
Returns
Type Description
Action

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntityOperation()

public Action.EntityOperation getEntityOperation()

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Returns
Type Description
Action.EntityOperation

The entityOperation.

getEntityOperationBuilder()

public Action.EntityOperation.Builder getEntityOperationBuilder()

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Returns
Type Description
Action.EntityOperation.Builder

getEntityOperationOrBuilder()

public Action.EntityOperationOrBuilder getEntityOperationOrBuilder()

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Returns
Type Description
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.

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.ces.v1.Action.EntityOperation entity_operation = 5;

Returns
Type Description
boolean

Whether the entityOperation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntityOperation(Action.EntityOperation value)

public Action.Builder mergeEntityOperation(Action.EntityOperation value)

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Parameter
Name Description
value Action.EntityOperation
Returns
Type Description
Action.Builder

mergeFrom(Action other)

public Action.Builder mergeFrom(Action other)
Parameter
Name Description
other Action
Returns
Type Description
Action.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Action.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Action.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Action.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Action.Builder
Overrides

setConnectionActionId(String value)

public Action.Builder setConnectionActionId(String value)

ID of a Connection action for the tool to use.

string connection_action_id = 4;

Parameter
Name Description
value String

The connectionActionId to set.

Returns
Type Description
Action.Builder

This builder for chaining.

setConnectionActionIdBytes(ByteString value)

public Action.Builder setConnectionActionIdBytes(ByteString value)

ID of a Connection action for the tool to use.

string connection_action_id = 4;

Parameter
Name Description
value ByteString

The bytes for connectionActionId to set.

Returns
Type Description
Action.Builder

This builder for chaining.

setEntityOperation(Action.EntityOperation value)

public Action.Builder setEntityOperation(Action.EntityOperation value)

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Parameter
Name Description
value Action.EntityOperation
Returns
Type Description
Action.Builder

setEntityOperation(Action.EntityOperation.Builder builderForValue)

public Action.Builder setEntityOperation(Action.EntityOperation.Builder builderForValue)

Entity operation configuration for the tool to use.

.google.cloud.ces.v1.Action.EntityOperation entity_operation = 5;

Parameter
Name Description
builderForValue Action.EntityOperation.Builder
Returns
Type Description
Action.Builder

setInputFields(int index, String value)

public 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
Name Description
index int

The index to set the value at.

value String

The inputFields to set.

Returns
Type Description
Action.Builder

This builder for chaining.

setOutputFields(int index, String value)

public 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
Name Description
index int

The index to set the value at.

value String

The outputFields to set.

Returns
Type Description
Action.Builder

This builder for chaining.