Class TriggerEntity.Builder (2.44.0)

public static final class TriggerEntity.Builder extends GeneratedMessageV3.Builder<TriggerEntity.Builder> implements TriggerEntityOrBuilder

Trigger is not used as an independent entity, it is retrieved as part of a Table entity.

Protobuf type google.cloud.clouddms.v1.TriggerEntity

Static Methods

getDescriptor()

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

Methods

addAllTriggeringEvents(Iterable<String> values)

public TriggerEntity.Builder addAllTriggeringEvents(Iterable<String> values)

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Parameter
Name Description
values Iterable<String>

The triggeringEvents to add.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TriggerEntity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TriggerEntity.Builder
Overrides

addTriggeringEvents(String value)

public TriggerEntity.Builder addTriggeringEvents(String value)

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Parameter
Name Description
value String

The triggeringEvents to add.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

addTriggeringEventsBytes(ByteString value)

public TriggerEntity.Builder addTriggeringEventsBytes(ByteString value)

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Parameter
Name Description
value ByteString

The bytes of the triggeringEvents to add.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

build()

public TriggerEntity build()
Returns
Type Description
TriggerEntity

buildPartial()

public TriggerEntity buildPartial()
Returns
Type Description
TriggerEntity

clear()

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

clearCustomFeatures()

public TriggerEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
TriggerEntity.Builder

clearField(Descriptors.FieldDescriptor field)

public TriggerEntity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TriggerEntity.Builder
Overrides

clearName()

public TriggerEntity.Builder clearName()

The name of the trigger.

string name = 1;

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TriggerEntity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TriggerEntity.Builder
Overrides

clearSqlCode()

public TriggerEntity.Builder clearSqlCode()

The SQL code which creates the trigger.

string sql_code = 4;

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

clearTriggerType()

public TriggerEntity.Builder clearTriggerType()

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

string trigger_type = 3;

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

clearTriggeringEvents()

public TriggerEntity.Builder clearTriggeringEvents()

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

clone()

public TriggerEntity.Builder clone()
Returns
Type Description
TriggerEntity.Builder
Overrides

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
StructOrBuilder

getDefaultInstanceForType()

public TriggerEntity getDefaultInstanceForType()
Returns
Type Description
TriggerEntity

getDescriptorForType()

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

getName()

public String getName()

The name of the trigger.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the trigger.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getSqlCode()

public String getSqlCode()

The SQL code which creates the trigger.

string sql_code = 4;

Returns
Type Description
String

The sqlCode.

getSqlCodeBytes()

public ByteString getSqlCodeBytes()

The SQL code which creates the trigger.

string sql_code = 4;

Returns
Type Description
ByteString

The bytes for sqlCode.

getTriggerType()

public String getTriggerType()

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

string trigger_type = 3;

Returns
Type Description
String

The triggerType.

getTriggerTypeBytes()

public ByteString getTriggerTypeBytes()

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

string trigger_type = 3;

Returns
Type Description
ByteString

The bytes for triggerType.

getTriggeringEvents(int index)

public String getTriggeringEvents(int index)

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The triggeringEvents at the given index.

getTriggeringEventsBytes(int index)

public ByteString getTriggeringEventsBytes(int index)

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the triggeringEvents at the given index.

getTriggeringEventsCount()

public int getTriggeringEventsCount()

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Returns
Type Description
int

The count of triggeringEvents.

getTriggeringEventsList()

public ProtocolStringList getTriggeringEventsList()

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Returns
Type Description
ProtocolStringList

A list containing the triggeringEvents.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
Type Description
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomFeatures(Struct value)

public TriggerEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
Name Description
value Struct
Returns
Type Description
TriggerEntity.Builder

mergeFrom(TriggerEntity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TriggerEntity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TriggerEntity.Builder
Overrides

setCustomFeatures(Struct value)

public TriggerEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
Name Description
value Struct
Returns
Type Description
TriggerEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public TriggerEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TriggerEntity.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TriggerEntity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TriggerEntity.Builder
Overrides

setName(String value)

public TriggerEntity.Builder setName(String value)

The name of the trigger.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TriggerEntity.Builder setNameBytes(ByteString value)

The name of the trigger.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TriggerEntity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TriggerEntity.Builder
Overrides

setSqlCode(String value)

public TriggerEntity.Builder setSqlCode(String value)

The SQL code which creates the trigger.

string sql_code = 4;

Parameter
Name Description
value String

The sqlCode to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setSqlCodeBytes(ByteString value)

public TriggerEntity.Builder setSqlCodeBytes(ByteString value)

The SQL code which creates the trigger.

string sql_code = 4;

Parameter
Name Description
value ByteString

The bytes for sqlCode to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setTriggerType(String value)

public TriggerEntity.Builder setTriggerType(String value)

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

string trigger_type = 3;

Parameter
Name Description
value String

The triggerType to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setTriggerTypeBytes(ByteString value)

public TriggerEntity.Builder setTriggerTypeBytes(ByteString value)

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

string trigger_type = 3;

Parameter
Name Description
value ByteString

The bytes for triggerType to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setTriggeringEvents(int index, String value)

public TriggerEntity.Builder setTriggeringEvents(int index, String value)

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

repeated string triggering_events = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The triggeringEvents to set.

Returns
Type Description
TriggerEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TriggerEntity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TriggerEntity.Builder
Overrides