diff --git a/java-dataplex/README.md b/java-dataplex/README.md
index 99403412c10a..caac1adaaba5 100644
--- a/java-dataplex/README.md
+++ b/java-dataplex/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
+ * Payload associated with Governance related log events. + *+ * + * Protobuf type {@code google.cloud.dataplex.v1.GovernanceEvent} + */ +public final class GovernanceEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.GovernanceEvent) + GovernanceEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use GovernanceEvent.newBuilder() to construct. + private GovernanceEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GovernanceEvent() { + message_ = ""; + eventType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GovernanceEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_GovernanceEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_GovernanceEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.GovernanceEvent.class, + com.google.cloud.dataplex.v1.GovernanceEvent.Builder.class); + } + + /** + * + * + *
+ * Type of governance log event. + *+ * + * Protobuf enum {@code google.cloud.dataplex.v1.GovernanceEvent.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * An unspecified event type. + *+ * + *
EVENT_TYPE_UNSPECIFIED = 0;
+ */
+ EVENT_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Resource IAM policy update event. + *+ * + *
RESOURCE_IAM_POLICY_UPDATE = 1;
+ */
+ RESOURCE_IAM_POLICY_UPDATE(1),
+ /**
+ *
+ *
+ * + * BigQuery table create event. + *+ * + *
BIGQUERY_TABLE_CREATE = 2;
+ */
+ BIGQUERY_TABLE_CREATE(2),
+ /**
+ *
+ *
+ * + * BigQuery table update event. + *+ * + *
BIGQUERY_TABLE_UPDATE = 3;
+ */
+ BIGQUERY_TABLE_UPDATE(3),
+ /**
+ *
+ *
+ * + * BigQuery table delete event. + *+ * + *
BIGQUERY_TABLE_DELETE = 4;
+ */
+ BIGQUERY_TABLE_DELETE(4),
+ /**
+ *
+ *
+ * + * BigQuery connection create event. + *+ * + *
BIGQUERY_CONNECTION_CREATE = 5;
+ */
+ BIGQUERY_CONNECTION_CREATE(5),
+ /**
+ *
+ *
+ * + * BigQuery connection update event. + *+ * + *
BIGQUERY_CONNECTION_UPDATE = 6;
+ */
+ BIGQUERY_CONNECTION_UPDATE(6),
+ /**
+ *
+ *
+ * + * BigQuery connection delete event. + *+ * + *
BIGQUERY_CONNECTION_DELETE = 7;
+ */
+ BIGQUERY_CONNECTION_DELETE(7),
+ /**
+ *
+ *
+ * + * BigQuery taxonomy created. + *+ * + *
BIGQUERY_TAXONOMY_CREATE = 10;
+ */
+ BIGQUERY_TAXONOMY_CREATE(10),
+ /**
+ *
+ *
+ * + * BigQuery policy tag created. + *+ * + *
BIGQUERY_POLICY_TAG_CREATE = 11;
+ */
+ BIGQUERY_POLICY_TAG_CREATE(11),
+ /**
+ *
+ *
+ * + * BigQuery policy tag deleted. + *+ * + *
BIGQUERY_POLICY_TAG_DELETE = 12;
+ */
+ BIGQUERY_POLICY_TAG_DELETE(12),
+ /**
+ *
+ *
+ * + * BigQuery set iam policy for policy tag. + *+ * + *
BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13;
+ */
+ BIGQUERY_POLICY_TAG_SET_IAM_POLICY(13),
+ /**
+ *
+ *
+ * + * Access policy update event. + *+ * + *
ACCESS_POLICY_UPDATE = 14;
+ */
+ ACCESS_POLICY_UPDATE(14),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * An unspecified event type. + *+ * + *
EVENT_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Resource IAM policy update event. + *+ * + *
RESOURCE_IAM_POLICY_UPDATE = 1;
+ */
+ public static final int RESOURCE_IAM_POLICY_UPDATE_VALUE = 1;
+ /**
+ *
+ *
+ * + * BigQuery table create event. + *+ * + *
BIGQUERY_TABLE_CREATE = 2;
+ */
+ public static final int BIGQUERY_TABLE_CREATE_VALUE = 2;
+ /**
+ *
+ *
+ * + * BigQuery table update event. + *+ * + *
BIGQUERY_TABLE_UPDATE = 3;
+ */
+ public static final int BIGQUERY_TABLE_UPDATE_VALUE = 3;
+ /**
+ *
+ *
+ * + * BigQuery table delete event. + *+ * + *
BIGQUERY_TABLE_DELETE = 4;
+ */
+ public static final int BIGQUERY_TABLE_DELETE_VALUE = 4;
+ /**
+ *
+ *
+ * + * BigQuery connection create event. + *+ * + *
BIGQUERY_CONNECTION_CREATE = 5;
+ */
+ public static final int BIGQUERY_CONNECTION_CREATE_VALUE = 5;
+ /**
+ *
+ *
+ * + * BigQuery connection update event. + *+ * + *
BIGQUERY_CONNECTION_UPDATE = 6;
+ */
+ public static final int BIGQUERY_CONNECTION_UPDATE_VALUE = 6;
+ /**
+ *
+ *
+ * + * BigQuery connection delete event. + *+ * + *
BIGQUERY_CONNECTION_DELETE = 7;
+ */
+ public static final int BIGQUERY_CONNECTION_DELETE_VALUE = 7;
+ /**
+ *
+ *
+ * + * BigQuery taxonomy created. + *+ * + *
BIGQUERY_TAXONOMY_CREATE = 10;
+ */
+ public static final int BIGQUERY_TAXONOMY_CREATE_VALUE = 10;
+ /**
+ *
+ *
+ * + * BigQuery policy tag created. + *+ * + *
BIGQUERY_POLICY_TAG_CREATE = 11;
+ */
+ public static final int BIGQUERY_POLICY_TAG_CREATE_VALUE = 11;
+ /**
+ *
+ *
+ * + * BigQuery policy tag deleted. + *+ * + *
BIGQUERY_POLICY_TAG_DELETE = 12;
+ */
+ public static final int BIGQUERY_POLICY_TAG_DELETE_VALUE = 12;
+ /**
+ *
+ *
+ * + * BigQuery set iam policy for policy tag. + *+ * + *
BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13;
+ */
+ public static final int BIGQUERY_POLICY_TAG_SET_IAM_POLICY_VALUE = 13;
+ /**
+ *
+ *
+ * + * Access policy update event. + *+ * + *
ACCESS_POLICY_UPDATE = 14;
+ */
+ public static final int ACCESS_POLICY_UPDATE_VALUE = 14;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EventType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVENT_TYPE_UNSPECIFIED;
+ case 1:
+ return RESOURCE_IAM_POLICY_UPDATE;
+ case 2:
+ return BIGQUERY_TABLE_CREATE;
+ case 3:
+ return BIGQUERY_TABLE_UPDATE;
+ case 4:
+ return BIGQUERY_TABLE_DELETE;
+ case 5:
+ return BIGQUERY_CONNECTION_CREATE;
+ case 6:
+ return BIGQUERY_CONNECTION_UPDATE;
+ case 7:
+ return BIGQUERY_CONNECTION_DELETE;
+ case 10:
+ return BIGQUERY_TAXONOMY_CREATE;
+ case 11:
+ return BIGQUERY_POLICY_TAG_CREATE;
+ case 12:
+ return BIGQUERY_POLICY_TAG_DELETE;
+ case 13:
+ return BIGQUERY_POLICY_TAG_SET_IAM_POLICY;
+ case 14:
+ return ACCESS_POLICY_UPDATE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The entity.
+ */
+ java.lang.String getEntity();
+ /**
+ *
+ *
+ * + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for entity.
+ */
+ com.google.protobuf.ByteString getEntityBytes();
+
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return The enum numeric value on the wire for entityType.
+ */
+ int getEntityTypeValue();
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return The entityType.
+ */
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType getEntityType();
+ }
+ /**
+ *
+ *
+ * + * Information about Entity resource that the log event is associated with. + *+ * + * Protobuf type {@code google.cloud.dataplex.v1.GovernanceEvent.Entity} + */ + public static final class Entity extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.GovernanceEvent.Entity) + EntityOrBuilder { + private static final long serialVersionUID = 0L; + // Use Entity.newBuilder() to construct. + private Entity(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Entity() { + entity_ = ""; + entityType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Entity(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataplex.v1.LogsProto + .internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataplex.v1.GovernanceEvent.Entity.class, + com.google.cloud.dataplex.v1.GovernanceEvent.Entity.Builder.class); + } + + /** + * + * + *
+ * Type of entity. + *+ * + * Protobuf enum {@code google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType} + */ + public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * An unspecified Entity type. + *+ * + *
ENTITY_TYPE_UNSPECIFIED = 0;
+ */
+ ENTITY_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Table entity type. + *+ * + *
TABLE = 1;
+ */
+ TABLE(1),
+ /**
+ *
+ *
+ * + * Fileset entity type. + *+ * + *
FILESET = 2;
+ */
+ FILESET(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * An unspecified Entity type. + *+ * + *
ENTITY_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int ENTITY_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Table entity type. + *+ * + *
TABLE = 1;
+ */
+ public static final int TABLE_VALUE = 1;
+ /**
+ *
+ *
+ * + * Fileset entity type. + *+ * + *
FILESET = 2;
+ */
+ public static final int FILESET_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EntityType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EntityType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ENTITY_TYPE_UNSPECIFIED;
+ case 1:
+ return TABLE;
+ case 2:
+ return FILESET;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The entity.
+ */
+ @java.lang.Override
+ public java.lang.String getEntity() {
+ java.lang.Object ref = entity_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entity_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for entity.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEntityBytes() {
+ java.lang.Object ref = entity_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entity_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENTITY_TYPE_FIELD_NUMBER = 2;
+ private int entityType_ = 0;
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return The enum numeric value on the wire for entityType.
+ */
+ @java.lang.Override
+ public int getEntityTypeValue() {
+ return entityType_;
+ }
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return The entityType.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType getEntityType() {
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType result =
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType.forNumber(entityType_);
+ return result == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_);
+ }
+ if (entityType_
+ != com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType.ENTITY_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, entityType_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_);
+ }
+ if (entityType_
+ != com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType.ENTITY_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entityType_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataplex.v1.GovernanceEvent.Entity)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity other =
+ (com.google.cloud.dataplex.v1.GovernanceEvent.Entity) obj;
+
+ if (!getEntity().equals(other.getEntity())) return false;
+ if (entityType_ != other.entityType_) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENTITY_FIELD_NUMBER;
+ hash = (53 * hash) + getEntity().hashCode();
+ hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + entityType_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Information about Entity resource that the log event is associated with. + *+ * + * Protobuf type {@code google.cloud.dataplex.v1.GovernanceEvent.Entity} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The entity.
+ */
+ public java.lang.String getEntity() {
+ java.lang.Object ref = entity_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ entity_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The bytes for entity.
+ */
+ public com.google.protobuf.ByteString getEntityBytes() {
+ java.lang.Object ref = entity_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ entity_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The entity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntity(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ entity_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEntity() {
+ entity_ = getDefaultInstance().getEntity();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + *+ * + *
string entity = 1 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes for entity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ entity_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int entityType_ = 0;
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return The enum numeric value on the wire for entityType.
+ */
+ @java.lang.Override
+ public int getEntityTypeValue() {
+ return entityType_;
+ }
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @param value The enum numeric value on the wire for entityType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityTypeValue(int value) {
+ entityType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return The entityType.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType getEntityType() {
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType result =
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType.forNumber(entityType_);
+ return result == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @param value The entityType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEntityType(
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ entityType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Type of entity. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEntityType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ entityType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.GovernanceEvent.Entity)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.GovernanceEvent.Entity)
+ private static final com.google.cloud.dataplex.v1.GovernanceEvent.Entity DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.GovernanceEvent.Entity();
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent.Entity getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The log message. + *+ * + *
string message = 1;
+ *
+ * @return The message.
+ */
+ @java.lang.Override
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The log message. + *+ * + *
string message = 1;
+ *
+ * @return The bytes for message.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EVENT_TYPE_FIELD_NUMBER = 2;
+ private int eventType_ = 0;
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return The enum numeric value on the wire for eventType.
+ */
+ @java.lang.Override
+ public int getEventTypeValue() {
+ return eventType_;
+ }
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return The eventType.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.GovernanceEvent.EventType getEventType() {
+ com.google.cloud.dataplex.v1.GovernanceEvent.EventType result =
+ com.google.cloud.dataplex.v1.GovernanceEvent.EventType.forNumber(eventType_);
+ return result == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.EventType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int ENTITY_FIELD_NUMBER = 3;
+ private com.google.cloud.dataplex.v1.GovernanceEvent.Entity entity_;
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ *
+ * @return Whether the entity field is set.
+ */
+ @java.lang.Override
+ public boolean hasEntity() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ *
+ * @return The entity.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.GovernanceEvent.Entity getEntity() {
+ return entity_ == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.Entity.getDefaultInstance()
+ : entity_;
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.GovernanceEvent.EntityOrBuilder getEntityOrBuilder() {
+ return entity_ == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.Entity.getDefaultInstance()
+ : entity_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
+ }
+ if (eventType_
+ != com.google.cloud.dataplex.v1.GovernanceEvent.EventType.EVENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(2, eventType_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getEntity());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
+ }
+ if (eventType_
+ != com.google.cloud.dataplex.v1.GovernanceEvent.EventType.EVENT_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventType_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEntity());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.dataplex.v1.GovernanceEvent)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.dataplex.v1.GovernanceEvent other =
+ (com.google.cloud.dataplex.v1.GovernanceEvent) obj;
+
+ if (!getMessage().equals(other.getMessage())) return false;
+ if (eventType_ != other.eventType_) return false;
+ if (hasEntity() != other.hasEntity()) return false;
+ if (hasEntity()) {
+ if (!getEntity().equals(other.getEntity())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getMessage().hashCode();
+ hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + eventType_;
+ if (hasEntity()) {
+ hash = (37 * hash) + ENTITY_FIELD_NUMBER;
+ hash = (53 * hash) + getEntity().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.dataplex.v1.GovernanceEvent prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Payload associated with Governance related log events. + *+ * + * Protobuf type {@code google.cloud.dataplex.v1.GovernanceEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The log message. + *+ * + *
string message = 1;
+ *
+ * @return The message.
+ */
+ public java.lang.String getMessage() {
+ java.lang.Object ref = message_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ message_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The log message. + *+ * + *
string message = 1;
+ *
+ * @return The bytes for message.
+ */
+ public com.google.protobuf.ByteString getMessageBytes() {
+ java.lang.Object ref = message_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ message_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The log message. + *+ * + *
string message = 1;
+ *
+ * @param value The message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ message_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The log message. + *+ * + *
string message = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMessage() {
+ message_ = getDefaultInstance().getMessage();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The log message. + *+ * + *
string message = 1;
+ *
+ * @param value The bytes for message to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ message_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int eventType_ = 0;
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return The enum numeric value on the wire for eventType.
+ */
+ @java.lang.Override
+ public int getEventTypeValue() {
+ return eventType_;
+ }
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @param value The enum numeric value on the wire for eventType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventTypeValue(int value) {
+ eventType_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return The eventType.
+ */
+ @java.lang.Override
+ public com.google.cloud.dataplex.v1.GovernanceEvent.EventType getEventType() {
+ com.google.cloud.dataplex.v1.GovernanceEvent.EventType result =
+ com.google.cloud.dataplex.v1.GovernanceEvent.EventType.forNumber(eventType_);
+ return result == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.EventType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @param value The eventType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventType(com.google.cloud.dataplex.v1.GovernanceEvent.EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ eventType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ eventType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.dataplex.v1.GovernanceEvent.Entity entity_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity,
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.Builder,
+ com.google.cloud.dataplex.v1.GovernanceEvent.EntityOrBuilder>
+ entityBuilder_;
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ *
+ * @return Whether the entity field is set.
+ */
+ public boolean hasEntity() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ *
+ * @return The entity.
+ */
+ public com.google.cloud.dataplex.v1.GovernanceEvent.Entity getEntity() {
+ if (entityBuilder_ == null) {
+ return entity_ == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.Entity.getDefaultInstance()
+ : entity_;
+ } else {
+ return entityBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ public Builder setEntity(com.google.cloud.dataplex.v1.GovernanceEvent.Entity value) {
+ if (entityBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ entity_ = value;
+ } else {
+ entityBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ public Builder setEntity(
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.Builder builderForValue) {
+ if (entityBuilder_ == null) {
+ entity_ = builderForValue.build();
+ } else {
+ entityBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ public Builder mergeEntity(com.google.cloud.dataplex.v1.GovernanceEvent.Entity value) {
+ if (entityBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && entity_ != null
+ && entity_
+ != com.google.cloud.dataplex.v1.GovernanceEvent.Entity.getDefaultInstance()) {
+ getEntityBuilder().mergeFrom(value);
+ } else {
+ entity_ = value;
+ }
+ } else {
+ entityBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ public Builder clearEntity() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ entity_ = null;
+ if (entityBuilder_ != null) {
+ entityBuilder_.dispose();
+ entityBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ public com.google.cloud.dataplex.v1.GovernanceEvent.Entity.Builder getEntityBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getEntityFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ public com.google.cloud.dataplex.v1.GovernanceEvent.EntityOrBuilder getEntityOrBuilder() {
+ if (entityBuilder_ != null) {
+ return entityBuilder_.getMessageOrBuilder();
+ } else {
+ return entity_ == null
+ ? com.google.cloud.dataplex.v1.GovernanceEvent.Entity.getDefaultInstance()
+ : entity_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity,
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.Builder,
+ com.google.cloud.dataplex.v1.GovernanceEvent.EntityOrBuilder>
+ getEntityFieldBuilder() {
+ if (entityBuilder_ == null) {
+ entityBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity,
+ com.google.cloud.dataplex.v1.GovernanceEvent.Entity.Builder,
+ com.google.cloud.dataplex.v1.GovernanceEvent.EntityOrBuilder>(
+ getEntity(), getParentForChildren(), isClean());
+ entity_ = null;
+ }
+ return entityBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.GovernanceEvent)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.GovernanceEvent)
+ private static final com.google.cloud.dataplex.v1.GovernanceEvent DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.GovernanceEvent();
+ }
+
+ public static com.google.cloud.dataplex.v1.GovernanceEvent getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The log message. + *+ * + *
string message = 1;
+ *
+ * @return The message.
+ */
+ java.lang.String getMessage();
+ /**
+ *
+ *
+ * + * The log message. + *+ * + *
string message = 1;
+ *
+ * @return The bytes for message.
+ */
+ com.google.protobuf.ByteString getMessageBytes();
+
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return The enum numeric value on the wire for eventType.
+ */
+ int getEventTypeValue();
+ /**
+ *
+ *
+ * + * The type of the event. + *+ * + *
.google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2;
+ *
+ * @return The eventType.
+ */
+ com.google.cloud.dataplex.v1.GovernanceEvent.EventType getEventType();
+
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ *
+ * @return Whether the entity field is set.
+ */
+ boolean hasEntity();
+ /**
+ *
+ *
+ * + * Entity resource information if the log event is associated with a + * specific entity. + *+ * + *
optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3;
+ *
+ * @return The entity.
+ */
+ com.google.cloud.dataplex.v1.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;
+ */
+ com.google.cloud.dataplex.v1.GovernanceEvent.EntityOrBuilder getEntityOrBuilder();
+}
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java
index c336fa9c5356..bfa5f54b3d9a 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/LogsProto.java
@@ -63,6 +63,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dataplex_v1_SessionEvent_QueryDetail_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -176,85 +184,105 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\"=\n\006Engine\022\026\n\022ENGINE_UNSPECIFIED\020\000\022\r\n\tSP"
+ "ARK_SQL\020\001\022\014\n\010BIGQUERY\020\002\"S\n\tEventType\022\032\n\026"
+ "EVENT_TYPE_UNSPECIFIED\020\000\022\t\n\005START\020\001\022\010\n\004S"
- + "TOP\020\002\022\t\n\005QUERY\020\003\022\n\n\006CREATE\020\004B\010\n\006detail\"\257"
- + "\020\n\rDataScanEvent\022\023\n\013data_source\030\001 \001(\t\022\016\n"
- + "\006job_id\030\002 \001(\t\022/\n\013create_time\030\014 \001(\0132\032.goo"
- + "gle.protobuf.Timestamp\022.\n\nstart_time\030\003 \001"
- + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti"
- + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022>\n\004"
- + "type\030\005 \001(\01620.google.cloud.dataplex.v1.Da"
- + "taScanEvent.ScanType\022<\n\005state\030\006 \001(\0162-.go"
- + "ogle.cloud.dataplex.v1.DataScanEvent.Sta"
- + "te\022\017\n\007message\030\007 \001(\t\022\024\n\014spec_version\030\010 \001("
- + "\t\022@\n\007trigger\030\t \001(\0162/.google.cloud.datapl"
- + "ex.v1.DataScanEvent.Trigger\022<\n\005scope\030\n \001"
- + "(\0162-.google.cloud.dataplex.v1.DataScanEv"
- + "ent.Scope\022Q\n\014data_profile\030e \001(\01329.google"
- + ".cloud.dataplex.v1.DataScanEvent.DataPro"
- + "fileResultH\000\022Q\n\014data_quality\030f \001(\01329.goo"
- + "gle.cloud.dataplex.v1.DataScanEvent.Data"
- + "QualityResultH\000\022b\n\024data_profile_configs\030"
- + "\311\001 \001(\0132A.google.cloud.dataplex.v1.DataSc"
- + "anEvent.DataProfileAppliedConfigsH\001\022b\n\024d"
- + "ata_quality_configs\030\312\001 \001(\0132A.google.clou"
- + "d.dataplex.v1.DataScanEvent.DataQualityA"
- + "ppliedConfigsH\001\022_\n\030post_scan_actions_res"
- + "ult\030\013 \001(\0132=.google.cloud.dataplex.v1.Dat"
- + "aScanEvent.PostScanActionsResult\032&\n\021Data"
- + "ProfileResult\022\021\n\trow_count\030\001 \001(\003\032\330\001\n\021Dat"
- + "aQualityResult\022\021\n\trow_count\030\001 \001(\003\022\016\n\006pas"
- + "sed\030\002 \001(\010\022h\n\020dimension_passed\030\003 \003(\0132N.go"
- + "ogle.cloud.dataplex.v1.DataScanEvent.Dat"
- + "aQualityResult.DimensionPassedEntry\0326\n\024D"
- + "imensionPassedEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
- + "e\030\002 \001(\010:\0028\001\032p\n\031DataProfileAppliedConfigs"
- + "\022\030\n\020sampling_percent\030\001 \001(\002\022\032\n\022row_filter"
- + "_applied\030\002 \001(\010\022\035\n\025column_filter_applied\030"
- + "\003 \001(\010\032Q\n\031DataQualityAppliedConfigs\022\030\n\020sa"
- + "mpling_percent\030\001 \001(\002\022\032\n\022row_filter_appli"
- + "ed\030\002 \001(\010\032\346\002\n\025PostScanActionsResult\022r\n\026bi"
- + "gquery_export_result\030\001 \001(\0132R.google.clou"
- + "d.dataplex.v1.DataScanEvent.PostScanActi"
- + "onsResult.BigQueryExportResult\032\330\001\n\024BigQu"
- + "eryExportResult\022g\n\005state\030\001 \001(\0162X.google."
- + "cloud.dataplex.v1.DataScanEvent.PostScan"
- + "ActionsResult.BigQueryExportResult.State"
- + "\022\017\n\007message\030\002 \001(\t\"F\n\005State\022\025\n\021STATE_UNSP"
- + "ECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\013\n\007"
- + "SKIPPED\020\003\"I\n\010ScanType\022\031\n\025SCAN_TYPE_UNSPE"
- + "CIFIED\020\000\022\020\n\014DATA_PROFILE\020\001\022\020\n\014DATA_QUALI"
- + "TY\020\002\"b\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007"
- + "STARTED\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\022\r\n\t"
- + "CANCELLED\020\004\022\013\n\007CREATED\020\005\"?\n\007Trigger\022\027\n\023T"
- + "RIGGER_UNSPECIFIED\020\000\022\r\n\tON_DEMAND\020\001\022\014\n\010S"
- + "CHEDULE\020\002\"9\n\005Scope\022\025\n\021SCOPE_UNSPECIFIED\020"
- + "\000\022\010\n\004FULL\020\001\022\017\n\013INCREMENTAL\020\002B\010\n\006resultB\020"
- + "\n\016appliedConfigs\"\351\006\n\031DataQualityScanRule"
- + "Result\022\016\n\006job_id\030\001 \001(\t\022\023\n\013data_source\030\002 "
- + "\001(\t\022\016\n\006column\030\003 \001(\t\022\021\n\trule_name\030\004 \001(\t\022O"
- + "\n\trule_type\030\005 \001(\0162<.google.cloud.dataple"
- + "x.v1.DataQualityScanRuleResult.RuleType\022"
- + "Z\n\016evalution_type\030\006 \001(\0162B.google.cloud.d"
- + "ataplex.v1.DataQualityScanRuleResult.Eva"
- + "luationType\022\026\n\016rule_dimension\030\007 \001(\t\022\031\n\021t"
- + "hreshold_percent\030\010 \001(\001\022J\n\006result\030\t \001(\0162:"
- + ".google.cloud.dataplex.v1.DataQualitySca"
- + "nRuleResult.Result\022\033\n\023evaluated_row_coun"
- + "t\030\n \001(\003\022\030\n\020passed_row_count\030\013 \001(\003\022\026\n\016nul"
- + "l_row_count\030\014 \001(\003\"\377\001\n\010RuleType\022\031\n\025RULE_T"
- + "YPE_UNSPECIFIED\020\000\022\030\n\024NON_NULL_EXPECTATIO"
- + "N\020\001\022\025\n\021RANGE_EXPECTATION\020\002\022\025\n\021REGEX_EXPE"
- + "CTATION\020\003\022\035\n\031ROW_CONDITION_EXPECTATION\020\004"
- + "\022\023\n\017SET_EXPECTATION\020\005\022\037\n\033STATISTIC_RANGE"
- + "_EXPECTATION\020\006\022\037\n\033TABLE_CONDITION_EXPECT"
- + "ATION\020\007\022\032\n\026UNIQUENESS_EXPECTATION\020\010\"M\n\016E"
- + "valuationType\022\037\n\033EVALUATION_TYPE_UNSPECI"
- + "FIED\020\000\022\013\n\007PER_ROW\020\001\022\r\n\tAGGREGATE\020\002\"8\n\006Re"
- + "sult\022\026\n\022RESULT_UNSPECIFIED\020\000\022\n\n\006PASSED\020\001"
- + "\022\n\n\006FAILED\020\002Be\n\034com.google.cloud.dataple"
- + "x.v1B\tLogsProtoP\001Z8cloud.google.com/go/d"
- + "ataplex/apiv1/dataplexpb;dataplexpbb\006pro"
- + "to3"
+ + "TOP\020\002\022\t\n\005QUERY\020\003\022\n\n\006CREATE\020\004B\010\n\006detail\"\255"
+ + "\006\n\017GovernanceEvent\022\017\n\007message\030\001 \001(\t\022G\n\ne"
+ + "vent_type\030\002 \001(\01623.google.cloud.dataplex."
+ + "v1.GovernanceEvent.EventType\022E\n\006entity\030\003"
+ + " \001(\01320.google.cloud.dataplex.v1.Governan"
+ + "ceEvent.EntityH\000\210\001\001\032\322\001\n\006Entity\0223\n\006entity"
+ + "\030\001 \001(\tB#\372A \n\036dataplex.googleapis.com/Ent"
+ + "ity\022P\n\013entity_type\030\002 \001(\0162;.google.cloud."
+ + "dataplex.v1.GovernanceEvent.Entity.Entit"
+ + "yType\"A\n\nEntityType\022\033\n\027ENTITY_TYPE_UNSPE"
+ + "CIFIED\020\000\022\t\n\005TABLE\020\001\022\013\n\007FILESET\020\002\"\230\003\n\tEve"
+ + "ntType\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000\022\036\n\032RE"
+ + "SOURCE_IAM_POLICY_UPDATE\020\001\022\031\n\025BIGQUERY_T"
+ + "ABLE_CREATE\020\002\022\031\n\025BIGQUERY_TABLE_UPDATE\020\003"
+ + "\022\031\n\025BIGQUERY_TABLE_DELETE\020\004\022\036\n\032BIGQUERY_"
+ + "CONNECTION_CREATE\020\005\022\036\n\032BIGQUERY_CONNECTI"
+ + "ON_UPDATE\020\006\022\036\n\032BIGQUERY_CONNECTION_DELET"
+ + "E\020\007\022\034\n\030BIGQUERY_TAXONOMY_CREATE\020\n\022\036\n\032BIG"
+ + "QUERY_POLICY_TAG_CREATE\020\013\022\036\n\032BIGQUERY_PO"
+ + "LICY_TAG_DELETE\020\014\022&\n\"BIGQUERY_POLICY_TAG"
+ + "_SET_IAM_POLICY\020\r\022\030\n\024ACCESS_POLICY_UPDAT"
+ + "E\020\016B\t\n\007_entity\"\257\020\n\rDataScanEvent\022\023\n\013data"
+ + "_source\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t\022/\n\013create_"
+ + "time\030\014 \001(\0132\032.google.protobuf.Timestamp\022."
+ + "\n\nstart_time\030\003 \001(\0132\032.google.protobuf.Tim"
+ + "estamp\022,\n\010end_time\030\004 \001(\0132\032.google.protob"
+ + "uf.Timestamp\022>\n\004type\030\005 \001(\01620.google.clou"
+ + "d.dataplex.v1.DataScanEvent.ScanType\022<\n\005"
+ + "state\030\006 \001(\0162-.google.cloud.dataplex.v1.D"
+ + "ataScanEvent.State\022\017\n\007message\030\007 \001(\t\022\024\n\014s"
+ + "pec_version\030\010 \001(\t\022@\n\007trigger\030\t \001(\0162/.goo"
+ + "gle.cloud.dataplex.v1.DataScanEvent.Trig"
+ + "ger\022<\n\005scope\030\n \001(\0162-.google.cloud.datapl"
+ + "ex.v1.DataScanEvent.Scope\022Q\n\014data_profil"
+ + "e\030e \001(\01329.google.cloud.dataplex.v1.DataS"
+ + "canEvent.DataProfileResultH\000\022Q\n\014data_qua"
+ + "lity\030f \001(\01329.google.cloud.dataplex.v1.Da"
+ + "taScanEvent.DataQualityResultH\000\022b\n\024data_"
+ + "profile_configs\030\311\001 \001(\0132A.google.cloud.da"
+ + "taplex.v1.DataScanEvent.DataProfileAppli"
+ + "edConfigsH\001\022b\n\024data_quality_configs\030\312\001 \001"
+ + "(\0132A.google.cloud.dataplex.v1.DataScanEv"
+ + "ent.DataQualityAppliedConfigsH\001\022_\n\030post_"
+ + "scan_actions_result\030\013 \001(\0132=.google.cloud"
+ + ".dataplex.v1.DataScanEvent.PostScanActio"
+ + "nsResult\032&\n\021DataProfileResult\022\021\n\trow_cou"
+ + "nt\030\001 \001(\003\032\330\001\n\021DataQualityResult\022\021\n\trow_co"
+ + "unt\030\001 \001(\003\022\016\n\006passed\030\002 \001(\010\022h\n\020dimension_p"
+ + "assed\030\003 \003(\0132N.google.cloud.dataplex.v1.D"
+ + "ataScanEvent.DataQualityResult.Dimension"
+ + "PassedEntry\0326\n\024DimensionPassedEntry\022\013\n\003k"
+ + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001\032p\n\031DataProfi"
+ + "leAppliedConfigs\022\030\n\020sampling_percent\030\001 \001"
+ + "(\002\022\032\n\022row_filter_applied\030\002 \001(\010\022\035\n\025column"
+ + "_filter_applied\030\003 \001(\010\032Q\n\031DataQualityAppl"
+ + "iedConfigs\022\030\n\020sampling_percent\030\001 \001(\002\022\032\n\022"
+ + "row_filter_applied\030\002 \001(\010\032\346\002\n\025PostScanAct"
+ + "ionsResult\022r\n\026bigquery_export_result\030\001 \001"
+ + "(\0132R.google.cloud.dataplex.v1.DataScanEv"
+ + "ent.PostScanActionsResult.BigQueryExport"
+ + "Result\032\330\001\n\024BigQueryExportResult\022g\n\005state"
+ + "\030\001 \001(\0162X.google.cloud.dataplex.v1.DataSc"
+ + "anEvent.PostScanActionsResult.BigQueryEx"
+ + "portResult.State\022\017\n\007message\030\002 \001(\t\"F\n\005Sta"
+ + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001"
+ + "\022\n\n\006FAILED\020\002\022\013\n\007SKIPPED\020\003\"I\n\010ScanType\022\031\n"
+ + "\025SCAN_TYPE_UNSPECIFIED\020\000\022\020\n\014DATA_PROFILE"
+ + "\020\001\022\020\n\014DATA_QUALITY\020\002\"b\n\005State\022\025\n\021STATE_U"
+ + "NSPECIFIED\020\000\022\013\n\007STARTED\020\001\022\r\n\tSUCCEEDED\020\002"
+ + "\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004\022\013\n\007CREATED\020\005"
+ + "\"?\n\007Trigger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\t"
+ + "ON_DEMAND\020\001\022\014\n\010SCHEDULE\020\002\"9\n\005Scope\022\025\n\021SC"
+ + "OPE_UNSPECIFIED\020\000\022\010\n\004FULL\020\001\022\017\n\013INCREMENT"
+ + "AL\020\002B\010\n\006resultB\020\n\016appliedConfigs\"\351\006\n\031Dat"
+ + "aQualityScanRuleResult\022\016\n\006job_id\030\001 \001(\t\022\023"
+ + "\n\013data_source\030\002 \001(\t\022\016\n\006column\030\003 \001(\t\022\021\n\tr"
+ + "ule_name\030\004 \001(\t\022O\n\trule_type\030\005 \001(\0162<.goog"
+ + "le.cloud.dataplex.v1.DataQualityScanRule"
+ + "Result.RuleType\022Z\n\016evalution_type\030\006 \001(\0162"
+ + "B.google.cloud.dataplex.v1.DataQualitySc"
+ + "anRuleResult.EvaluationType\022\026\n\016rule_dime"
+ + "nsion\030\007 \001(\t\022\031\n\021threshold_percent\030\010 \001(\001\022J"
+ + "\n\006result\030\t \001(\0162:.google.cloud.dataplex.v"
+ + "1.DataQualityScanRuleResult.Result\022\033\n\023ev"
+ + "aluated_row_count\030\n \001(\003\022\030\n\020passed_row_co"
+ + "unt\030\013 \001(\003\022\026\n\016null_row_count\030\014 \001(\003\"\377\001\n\010Ru"
+ + "leType\022\031\n\025RULE_TYPE_UNSPECIFIED\020\000\022\030\n\024NON"
+ + "_NULL_EXPECTATION\020\001\022\025\n\021RANGE_EXPECTATION"
+ + "\020\002\022\025\n\021REGEX_EXPECTATION\020\003\022\035\n\031ROW_CONDITI"
+ + "ON_EXPECTATION\020\004\022\023\n\017SET_EXPECTATION\020\005\022\037\n"
+ + "\033STATISTIC_RANGE_EXPECTATION\020\006\022\037\n\033TABLE_"
+ + "CONDITION_EXPECTATION\020\007\022\032\n\026UNIQUENESS_EX"
+ + "PECTATION\020\010\"M\n\016EvaluationType\022\037\n\033EVALUAT"
+ + "ION_TYPE_UNSPECIFIED\020\000\022\013\n\007PER_ROW\020\001\022\r\n\tA"
+ + "GGREGATE\020\002\"8\n\006Result\022\026\n\022RESULT_UNSPECIFI"
+ + "ED\020\000\022\n\n\006PASSED\020\001\022\n\n\006FAILED\020\002Be\n\034com.goog"
+ + "le.cloud.dataplex.v1B\tLogsProtoP\001Z8cloud"
+ + ".google.com/go/dataplex/apiv1/dataplexpb"
+ + ";dataplexpbb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -365,8 +393,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"QueryId", "QueryText", "Engine", "Duration", "ResultSizeBytes", "DataProcessedBytes",
});
- internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor =
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_descriptor =
getDescriptor().getMessageTypes().get(3);
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_descriptor,
+ new java.lang.String[] {
+ "Message", "EventType", "Entity", "Entity",
+ });
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_descriptor =
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_descriptor.getNestedTypes().get(0);
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_dataplex_v1_GovernanceEvent_Entity_descriptor,
+ new java.lang.String[] {
+ "Entity", "EntityType",
+ });
+ internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor =
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor,
@@ -451,7 +495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"State", "Message",
});
internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_descriptor,
@@ -469,6 +513,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PassedRowCount",
"NullRowCount",
});
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ResourceProto.resourceReference);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto
index 191327b37503..0691afbbbafd 100644
--- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto
+++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto
@@ -315,6 +315,86 @@ message SessionEvent {
google.protobuf.Duration unassigned_duration = 8;
}
+// Payload associated with Governance related log events.
+message GovernanceEvent {
+ // Information about Entity resource that the log event is associated with.
+ message Entity {
+ // Type of entity.
+ enum EntityType {
+ // An unspecified Entity type.
+ ENTITY_TYPE_UNSPECIFIED = 0;
+
+ // Table entity type.
+ TABLE = 1;
+
+ // Fileset entity type.
+ FILESET = 2;
+ }
+
+ // The Entity resource the log event is associated with.
+ // Format:
+ // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`
+ string entity = 1 [(google.api.resource_reference) = {
+ type: "dataplex.googleapis.com/Entity"
+ }];
+
+ // Type of entity.
+ EntityType entity_type = 2;
+ }
+
+ // Type of governance log event.
+ enum EventType {
+ // An unspecified event type.
+ EVENT_TYPE_UNSPECIFIED = 0;
+
+ // Resource IAM policy update event.
+ RESOURCE_IAM_POLICY_UPDATE = 1;
+
+ // BigQuery table create event.
+ BIGQUERY_TABLE_CREATE = 2;
+
+ // BigQuery table update event.
+ BIGQUERY_TABLE_UPDATE = 3;
+
+ // BigQuery table delete event.
+ BIGQUERY_TABLE_DELETE = 4;
+
+ // BigQuery connection create event.
+ BIGQUERY_CONNECTION_CREATE = 5;
+
+ // BigQuery connection update event.
+ BIGQUERY_CONNECTION_UPDATE = 6;
+
+ // BigQuery connection delete event.
+ BIGQUERY_CONNECTION_DELETE = 7;
+
+ // BigQuery taxonomy created.
+ BIGQUERY_TAXONOMY_CREATE = 10;
+
+ // BigQuery policy tag created.
+ BIGQUERY_POLICY_TAG_CREATE = 11;
+
+ // BigQuery policy tag deleted.
+ BIGQUERY_POLICY_TAG_DELETE = 12;
+
+ // BigQuery set iam policy for policy tag.
+ BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13;
+
+ // Access policy update event.
+ ACCESS_POLICY_UPDATE = 14;
+ }
+
+ // The log message.
+ string message = 1;
+
+ // The type of the event.
+ EventType event_type = 2;
+
+ // Entity resource information if the log event is associated with a
+ // specific entity.
+ optional Entity entity = 3;
+}
+
// These messages contain information about the execution of a datascan.
// The monitored resource is 'DataScan'
// Next ID: 13