Class GovernanceEvent.Builder (1.45.0)

public static final class GovernanceEvent.Builder extends GeneratedMessageV3.Builder<GovernanceEvent.Builder> implements GovernanceEventOrBuilder

Payload associated with Governance related log events.

Protobuf type google.cloud.dataplex.v1.GovernanceEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GovernanceEvent build()
Returns
Type Description
GovernanceEvent

buildPartial()

public GovernanceEvent buildPartial()
Returns
Type Description
GovernanceEvent

clear()

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

clearEntity()

public GovernanceEvent.Builder clearEntity()

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Returns
Type Description
GovernanceEvent.Builder

clearEventType()

public GovernanceEvent.Builder clearEventType()

The type of the event.

.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;

Returns
Type Description
GovernanceEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public GovernanceEvent.Builder clearMessage()

The log message.

string message = 1;

Returns
Type Description
GovernanceEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GovernanceEvent getDefaultInstanceForType()
Returns
Type Description
GovernanceEvent

getDescriptorForType()

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

getEntity()

public GovernanceEvent.Entity getEntity()

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Returns
Type Description
GovernanceEvent.Entity

The entity.

getEntityBuilder()

public GovernanceEvent.Entity.Builder getEntityBuilder()

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Returns
Type Description
GovernanceEvent.Entity.Builder

getEntityOrBuilder()

public GovernanceEvent.EntityOrBuilder getEntityOrBuilder()

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Returns
Type Description
GovernanceEvent.EntityOrBuilder

getEventType()

public GovernanceEvent.EventType getEventType()

The type of the event.

.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;

Returns
Type Description
GovernanceEvent.EventType

The eventType.

getEventTypeValue()

public int getEventTypeValue()

The type of the event.

.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for eventType.

getMessage()

public String getMessage()

The log message.

string message = 1;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The log message.

string message = 1;

Returns
Type Description
ByteString

The bytes for message.

hasEntity()

public boolean hasEntity()

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Returns
Type Description
boolean

Whether the entity field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntity(GovernanceEvent.Entity value)

public GovernanceEvent.Builder mergeEntity(GovernanceEvent.Entity value)

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Parameter
Name Description
value GovernanceEvent.Entity
Returns
Type Description
GovernanceEvent.Builder

mergeFrom(GovernanceEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEntity(GovernanceEvent.Entity value)

public GovernanceEvent.Builder setEntity(GovernanceEvent.Entity value)

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Parameter
Name Description
value GovernanceEvent.Entity
Returns
Type Description
GovernanceEvent.Builder

setEntity(GovernanceEvent.Entity.Builder builderForValue)

public GovernanceEvent.Builder setEntity(GovernanceEvent.Entity.Builder builderForValue)

Entity resource information if the log event is associated with a specific entity.

optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;

Parameter
Name Description
builderForValue GovernanceEvent.Entity.Builder
Returns
Type Description
GovernanceEvent.Builder

setEventType(GovernanceEvent.EventType value)

public GovernanceEvent.Builder setEventType(GovernanceEvent.EventType value)

The type of the event.

.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;

Parameter
Name Description
value GovernanceEvent.EventType

The eventType to set.

Returns
Type Description
GovernanceEvent.Builder

This builder for chaining.

setEventTypeValue(int value)

public GovernanceEvent.Builder setEventTypeValue(int value)

The type of the event.

.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for eventType to set.

Returns
Type Description
GovernanceEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public GovernanceEvent.Builder setMessage(String value)

The log message.

string message = 1;

Parameter
Name Description
value String

The message to set.

Returns
Type Description
GovernanceEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public GovernanceEvent.Builder setMessageBytes(ByteString value)

The log message.

string message = 1;

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
GovernanceEvent.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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