Class TriggerEntity.Builder (2.22.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
TypeDescription
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
NameDescription
valuesIterable<String>

The triggeringEvents to add.

Returns
TypeDescription
TriggerEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TriggerEntity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The triggeringEvents to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the triggeringEvents to add.

Returns
TypeDescription
TriggerEntity.Builder

This builder for chaining.

build()

public TriggerEntity build()
Returns
TypeDescription
TriggerEntity

buildPartial()

public TriggerEntity buildPartial()
Returns
TypeDescription
TriggerEntity

clear()

public TriggerEntity.Builder clear()
Returns
TypeDescription
TriggerEntity.Builder
Overrides

clearCustomFeatures()

public TriggerEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
TriggerEntity.Builder

clearField(Descriptors.FieldDescriptor field)

public TriggerEntity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TriggerEntity.Builder
Overrides

clearName()

public TriggerEntity.Builder clearName()

The name of the trigger.

string name = 1;

Returns
TypeDescription
TriggerEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TriggerEntity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TriggerEntity.Builder
Overrides

clearSqlCode()

public TriggerEntity.Builder clearSqlCode()

The SQL code which creates the trigger.

string sql_code = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TriggerEntity.Builder

This builder for chaining.

clone()

public TriggerEntity.Builder clone()
Returns
TypeDescription
TriggerEntity.Builder
Overrides

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
StructOrBuilder

getDefaultInstanceForType()

public TriggerEntity getDefaultInstanceForType()
Returns
TypeDescription
TriggerEntity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the trigger.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the trigger.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSqlCode()

public String getSqlCode()

The SQL code which creates the trigger.

string sql_code = 4;

Returns
TypeDescription
String

The sqlCode.

getSqlCodeBytes()

public ByteString getSqlCodeBytes()

The SQL code which creates the trigger.

string sql_code = 4;

Returns
TypeDescription
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
TypeDescription
String

The triggerType.

getTriggerTypeBytes()

public ByteString getTriggerTypeBytes()

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

string trigger_type = 3;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the triggeringEvents.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Returns
TypeDescription
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomFeatures(Struct value)

public TriggerEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
TriggerEntity.Builder

mergeFrom(TriggerEntity other)

public TriggerEntity.Builder mergeFrom(TriggerEntity other)
Parameter
NameDescription
otherTriggerEntity
Returns
TypeDescription
TriggerEntity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TriggerEntity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TriggerEntity.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TriggerEntity.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TriggerEntity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TriggerEntity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TriggerEntity.Builder
Overrides

setCustomFeatures(Struct value)

public TriggerEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
TriggerEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public TriggerEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TriggerEntity.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TriggerEntity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TriggerEntity.Builder
Overrides

setName(String value)

public TriggerEntity.Builder setName(String value)

The name of the trigger.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TriggerEntity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TriggerEntity.Builder setNameBytes(ByteString value)

The name of the trigger.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TriggerEntity.Builder
Overrides

setSqlCode(String value)

public TriggerEntity.Builder setSqlCode(String value)

The SQL code which creates the trigger.

string sql_code = 4;

Parameter
NameDescription
valueString

The sqlCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sqlCode to set.

Returns
TypeDescription
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
NameDescription
valueString

The triggerType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for triggerType to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The triggeringEvents to set.

Returns
TypeDescription
TriggerEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TriggerEntity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TriggerEntity.Builder
Overrides