Class GovernanceEvent.Builder (1.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GovernanceEvent build()
Returns
TypeDescription
GovernanceEvent

buildPartial()

public GovernanceEvent buildPartial()
Returns
TypeDescription
GovernanceEvent

clear()

public GovernanceEvent.Builder clear()
Returns
TypeDescription
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
TypeDescription
GovernanceEvent.Builder

clearEventType()

public GovernanceEvent.Builder clearEventType()

The type of the event.

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

Returns
TypeDescription
GovernanceEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public GovernanceEvent.Builder clearMessage()

The log message.

string message = 1;

Returns
TypeDescription
GovernanceEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GovernanceEvent getDefaultInstanceForType()
Returns
TypeDescription
GovernanceEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GovernanceEvent.EntityOrBuilder

getEventType()

public GovernanceEvent.EventType getEventType()

The type of the event.

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

Returns
TypeDescription
GovernanceEvent.EventType

The eventType.

getEventTypeValue()

public int getEventTypeValue()

The type of the event.

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

Returns
TypeDescription
int

The enum numeric value on the wire for eventType.

getMessage()

public String getMessage()

The log message.

string message = 1;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The log message.

string message = 1;

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

Whether the entity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueGovernanceEvent.Entity
Returns
TypeDescription
GovernanceEvent.Builder

mergeFrom(GovernanceEvent other)

public GovernanceEvent.Builder mergeFrom(GovernanceEvent other)
Parameter
NameDescription
otherGovernanceEvent
Returns
TypeDescription
GovernanceEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GovernanceEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueGovernanceEvent.Entity
Returns
TypeDescription
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
NameDescription
builderForValueGovernanceEvent.Entity.Builder
Returns
TypeDescription
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
NameDescription
valueGovernanceEvent.EventType

The eventType to set.

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

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

Returns
TypeDescription
GovernanceEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(String value)

public GovernanceEvent.Builder setMessage(String value)

The log message.

string message = 1;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
GovernanceEvent.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public GovernanceEvent.Builder setMessageBytes(ByteString value)

The log message.

string message = 1;

Parameter
NameDescription
valueByteString

The bytes for message to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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