Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/resources.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* Action represents an issue requiring administrator action for resolution.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action}
*/
public final class Action extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action)
ActionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Action.newBuilder() to construct.
private Action(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Action() {
category_ = 0;
issue_ = "";
name_ = "";
lake_ = "";
zone_ = "";
asset_ = "";
dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Action();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.class,
com.google.cloud.dataplex.v1.Action.Builder.class);
}
/**
*
*
*
*
* CATEGORY_UNSPECIFIED = 0;
*/
public static final int CATEGORY_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Resource management related issues.
*
*
* RESOURCE_MANAGEMENT = 1;
*/
public static final int RESOURCE_MANAGEMENT_VALUE = 1;
/**
*
*
*
* Security policy related issues.
*
*
* SECURITY_POLICY = 2;
*/
public static final int SECURITY_POLICY_VALUE = 2;
/**
*
*
*
* Data and discovery related issues.
*
*
* DATA_DISCOVERY = 3;
*/
public static final int DATA_DISCOVERY_VALUE = 3;
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 Category 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 Category forNumber(int value) {
switch (value) {
case 0:
return CATEGORY_UNSPECIFIED;
case 1:
return RESOURCE_MANAGEMENT;
case 2:
return SECURITY_POLICY;
case 3:
return DATA_DISCOVERY;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Category findValueByNumber(int number) {
return Category.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.Action.getDescriptor().getEnumTypes().get(0);
}
private static final Category[] VALUES = values();
public static Category valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Category(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Action.Category)
}
public interface MissingResourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.MissingResource)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* Action details for resource references in assets that cannot be located.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.MissingResource}
*/
public static final class MissingResource extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action.MissingResource)
MissingResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use MissingResource.newBuilder() to construct.
private MissingResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MissingResource() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MissingResource();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.MissingResource.class,
com.google.cloud.dataplex.v1.Action.MissingResource.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Action.MissingResource)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.MissingResource other =
(com.google.cloud.dataplex.v1.Action.MissingResource) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.MissingResource parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.MissingResource 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.Action.MissingResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.MissingResource 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.Action.MissingResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.MissingResource 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.Action.MissingResource parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.MissingResource 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.Action.MissingResource parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.MissingResource 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.Action.MissingResource 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.Action.MissingResource 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.Action.MissingResource 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;
}
/**
*
*
*
* Action details for resource references in assets that cannot be located.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.MissingResource}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.MissingResource)
com.google.cloud.dataplex.v1.Action.MissingResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.MissingResource.class,
com.google.cloud.dataplex.v1.Action.MissingResource.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.MissingResource.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingResource_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingResource getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.MissingResource.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingResource build() {
com.google.cloud.dataplex.v1.Action.MissingResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingResource buildPartial() {
com.google.cloud.dataplex.v1.Action.MissingResource result =
new com.google.cloud.dataplex.v1.Action.MissingResource(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.MissingResource) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.MissingResource) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.MissingResource other) {
if (other == com.google.cloud.dataplex.v1.Action.MissingResource.getDefaultInstance())
return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.Action.MissingResource)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.MissingResource)
private static final com.google.cloud.dataplex.v1.Action.MissingResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.MissingResource();
}
public static com.google.cloud.dataplex.v1.Action.MissingResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MissingResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnauthorizedResourceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.UnauthorizedResource)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* Action details for unauthorized resource issues raised to indicate that the
* service account associated with the lake instance is not authorized to
* access or manage the resource associated with an asset.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.UnauthorizedResource}
*/
public static final class UnauthorizedResource extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action.UnauthorizedResource)
UnauthorizedResourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnauthorizedResource.newBuilder() to construct.
private UnauthorizedResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnauthorizedResource() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new UnauthorizedResource();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_UnauthorizedResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_UnauthorizedResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.UnauthorizedResource.class,
com.google.cloud.dataplex.v1.Action.UnauthorizedResource.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Action.UnauthorizedResource)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.UnauthorizedResource other =
(com.google.cloud.dataplex.v1.Action.UnauthorizedResource) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource 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.Action.UnauthorizedResource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource 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.Action.UnauthorizedResource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource 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.Action.UnauthorizedResource parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource 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.Action.UnauthorizedResource parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource 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.Action.UnauthorizedResource 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.Action.UnauthorizedResource 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.Action.UnauthorizedResource 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;
}
/**
*
*
*
* Action details for unauthorized resource issues raised to indicate that the
* service account associated with the lake instance is not authorized to
* access or manage the resource associated with an asset.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.UnauthorizedResource}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.UnauthorizedResource)
com.google.cloud.dataplex.v1.Action.UnauthorizedResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_UnauthorizedResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_UnauthorizedResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.UnauthorizedResource.class,
com.google.cloud.dataplex.v1.Action.UnauthorizedResource.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.UnauthorizedResource.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_UnauthorizedResource_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.UnauthorizedResource getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.UnauthorizedResource.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.UnauthorizedResource build() {
com.google.cloud.dataplex.v1.Action.UnauthorizedResource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.UnauthorizedResource buildPartial() {
com.google.cloud.dataplex.v1.Action.UnauthorizedResource result =
new com.google.cloud.dataplex.v1.Action.UnauthorizedResource(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.UnauthorizedResource) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.UnauthorizedResource) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.UnauthorizedResource other) {
if (other == com.google.cloud.dataplex.v1.Action.UnauthorizedResource.getDefaultInstance())
return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.Action.UnauthorizedResource)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.UnauthorizedResource)
private static final com.google.cloud.dataplex.v1.Action.UnauthorizedResource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.UnauthorizedResource();
}
public static com.google.cloud.dataplex.v1.Action.UnauthorizedResource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnauthorizedResource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.UnauthorizedResource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FailedSecurityPolicyApplyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Resource name of one of the assets with failing security policy
* application. Populated for a lake or zone resource only.
*
* Failed to apply security policy to the managed resource(s) under a
* lake, zone or an asset. For a lake or zone resource, one or more underlying
* assets has a failure applying security policy to the associated managed
* resource.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply}
*/
public static final class FailedSecurityPolicyApply extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply)
FailedSecurityPolicyApplyOrBuilder {
private static final long serialVersionUID = 0L;
// Use FailedSecurityPolicyApply.newBuilder() to construct.
private FailedSecurityPolicyApply(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FailedSecurityPolicyApply() {
asset_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new FailedSecurityPolicyApply();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_FailedSecurityPolicyApply_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_FailedSecurityPolicyApply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.class,
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.Builder.class);
}
public static final int ASSET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object asset_ = "";
/**
*
*
*
* Resource name of one of the assets with failing security policy
* application. Populated for a lake or zone resource only.
*
* Resource name of one of the assets with failing security policy
* application. Populated for a lake or zone resource only.
*
*
* string asset = 1;
*
* @return The bytes for asset.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAssetBytes() {
java.lang.Object ref = asset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
asset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(asset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, asset_);
}
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(asset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, asset_);
}
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.Action.FailedSecurityPolicyApply)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply other =
(com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply) obj;
if (!getAsset().equals(other.getAsset())) 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) + ASSET_FIELD_NUMBER;
hash = (53 * hash) + getAsset().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply 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.Action.FailedSecurityPolicyApply 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;
}
/**
*
*
*
* Failed to apply security policy to the managed resource(s) under a
* lake, zone or an asset. For a lake or zone resource, one or more underlying
* assets has a failure applying security policy to the associated managed
* resource.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply)
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApplyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_FailedSecurityPolicyApply_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_FailedSecurityPolicyApply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.class,
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
asset_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_FailedSecurityPolicyApply_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply build() {
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply buildPartial() {
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply result =
new com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.asset_ = asset_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply other) {
if (other
== com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply.getDefaultInstance())
return this;
if (!other.getAsset().isEmpty()) {
asset_ = other.asset_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
asset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object asset_ = "";
/**
*
*
*
* Resource name of one of the assets with failing security policy
* application. Populated for a lake or zone resource only.
*
* Resource name of one of the assets with failing security policy
* application. Populated for a lake or zone resource only.
*
*
* string asset = 1;
*
* @param value The bytes for asset to set.
* @return This builder for chaining.
*/
public Builder setAssetBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
asset_ = value;
bitField0_ |= 0x00000001;
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.Action.FailedSecurityPolicyApply)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply)
private static final com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply();
}
public static com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FailedSecurityPolicyApply parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InvalidDataFormatOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.InvalidDataFormat)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @return A list containing the sampledDataLocations.
*/
java.util.List getSampledDataLocationsList();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @return The count of sampledDataLocations.
*/
int getSampledDataLocationsCount();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
java.lang.String getSampledDataLocations(int index);
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
com.google.protobuf.ByteString getSampledDataLocationsBytes(int index);
/**
*
*
*
* Action details for invalid or unsupported data files detected by discovery.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.InvalidDataFormat}
*/
public static final class InvalidDataFormat extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action.InvalidDataFormat)
InvalidDataFormatOrBuilder {
private static final long serialVersionUID = 0L;
// Use InvalidDataFormat.newBuilder() to construct.
private InvalidDataFormat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InvalidDataFormat() {
sampledDataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
expectedFormat_ = "";
newFormat_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InvalidDataFormat();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.InvalidDataFormat.class,
com.google.cloud.dataplex.v1.Action.InvalidDataFormat.Builder.class);
}
public static final int SAMPLED_DATA_LOCATIONS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sampledDataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @return A list containing the sampledDataLocations.
*/
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList() {
return sampledDataLocations_;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @return The count of sampledDataLocations.
*/
public int getSampledDataLocationsCount() {
return sampledDataLocations_.size();
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
public java.lang.String getSampledDataLocations(int index) {
return sampledDataLocations_.get(index);
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
public com.google.protobuf.ByteString getSampledDataLocationsBytes(int index) {
return sampledDataLocations_.getByteString(index);
}
public static final int EXPECTED_FORMAT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object expectedFormat_ = "";
/**
*
*
*
* The new unexpected data format within the entity.
*
*
* string new_format = 3;
*
* @return The bytes for newFormat.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNewFormatBytes() {
java.lang.Object ref = newFormat_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
newFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 {
for (int i = 0; i < sampledDataLocations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 1, sampledDataLocations_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedFormat_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expectedFormat_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newFormat_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newFormat_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < sampledDataLocations_.size(); i++) {
dataSize += computeStringSizeNoTag(sampledDataLocations_.getRaw(i));
}
size += dataSize;
size += 1 * getSampledDataLocationsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedFormat_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expectedFormat_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newFormat_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newFormat_);
}
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.Action.InvalidDataFormat)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.InvalidDataFormat other =
(com.google.cloud.dataplex.v1.Action.InvalidDataFormat) obj;
if (!getSampledDataLocationsList().equals(other.getSampledDataLocationsList())) return false;
if (!getExpectedFormat().equals(other.getExpectedFormat())) return false;
if (!getNewFormat().equals(other.getNewFormat())) 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();
if (getSampledDataLocationsCount() > 0) {
hash = (37 * hash) + SAMPLED_DATA_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getSampledDataLocationsList().hashCode();
}
hash = (37 * hash) + EXPECTED_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getExpectedFormat().hashCode();
hash = (37 * hash) + NEW_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getNewFormat().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataFormat parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataFormat 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.Action.InvalidDataFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataFormat 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.Action.InvalidDataFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataFormat 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.Action.InvalidDataFormat parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataFormat 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.Action.InvalidDataFormat parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataFormat 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.Action.InvalidDataFormat 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.Action.InvalidDataFormat 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.Action.InvalidDataFormat 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;
}
/**
*
*
*
* Action details for invalid or unsupported data files detected by discovery.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.InvalidDataFormat}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.InvalidDataFormat)
com.google.cloud.dataplex.v1.Action.InvalidDataFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.InvalidDataFormat.class,
com.google.cloud.dataplex.v1.Action.InvalidDataFormat.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.InvalidDataFormat.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sampledDataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
expectedFormat_ = "";
newFormat_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataFormat_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataFormat getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.InvalidDataFormat.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataFormat build() {
com.google.cloud.dataplex.v1.Action.InvalidDataFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataFormat buildPartial() {
com.google.cloud.dataplex.v1.Action.InvalidDataFormat result =
new com.google.cloud.dataplex.v1.Action.InvalidDataFormat(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Action.InvalidDataFormat result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
sampledDataLocations_.makeImmutable();
result.sampledDataLocations_ = sampledDataLocations_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.expectedFormat_ = expectedFormat_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newFormat_ = newFormat_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.InvalidDataFormat) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.InvalidDataFormat) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.InvalidDataFormat other) {
if (other == com.google.cloud.dataplex.v1.Action.InvalidDataFormat.getDefaultInstance())
return this;
if (!other.sampledDataLocations_.isEmpty()) {
if (sampledDataLocations_.isEmpty()) {
sampledDataLocations_ = other.sampledDataLocations_;
bitField0_ |= 0x00000001;
} else {
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.addAll(other.sampledDataLocations_);
}
onChanged();
}
if (!other.getExpectedFormat().isEmpty()) {
expectedFormat_ = other.expectedFormat_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getNewFormat().isEmpty()) {
newFormat_ = other.newFormat_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(s);
break;
} // case 10
case 18:
{
expectedFormat_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
newFormat_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList sampledDataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSampledDataLocationsIsMutable() {
if (!sampledDataLocations_.isModifiable()) {
sampledDataLocations_ =
new com.google.protobuf.LazyStringArrayList(sampledDataLocations_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @return A list containing the sampledDataLocations.
*/
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList() {
sampledDataLocations_.makeImmutable();
return sampledDataLocations_;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @return The count of sampledDataLocations.
*/
public int getSampledDataLocationsCount() {
return sampledDataLocations_.size();
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
public java.lang.String getSampledDataLocations(int index) {
return sampledDataLocations_.get(index);
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
public com.google.protobuf.ByteString getSampledDataLocationsBytes(int index) {
return sampledDataLocations_.getByteString(index);
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param index The index to set the value at.
* @param value The sampledDataLocations to set.
* @return This builder for chaining.
*/
public Builder setSampledDataLocations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param value The sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addSampledDataLocations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 1;
*
* @param values The sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addAllSampledDataLocations(java.lang.Iterable values) {
ensureSampledDataLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampledDataLocations_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
* The new and incompatible schema within the table. The schema is provided
* as a JSON formatted structured listing columns and data types.
*
*
* string new_schema = 3;
*
* @return The bytes for newSchema.
*/
com.google.protobuf.ByteString getNewSchemaBytes();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return A list containing the sampledDataLocations.
*/
java.util.List getSampledDataLocationsList();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return The count of sampledDataLocations.
*/
int getSampledDataLocationsCount();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
java.lang.String getSampledDataLocations(int index);
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
com.google.protobuf.ByteString getSampledDataLocationsBytes(int index);
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @return The enum numeric value on the wire for schemaChange.
*/
int getSchemaChangeValue();
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
* SCHEMA_CHANGE_UNSPECIFIED = 0;
*/
public static final int SCHEMA_CHANGE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Newly discovered schema is incompatible with existing schema.
*
*
* INCOMPATIBLE = 1;
*/
public static final int INCOMPATIBLE_VALUE = 1;
/**
*
*
*
* Newly discovered schema has changed from existing schema for data in a
* curated zone.
*
*
* MODIFIED = 2;
*/
public static final int MODIFIED_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 SchemaChange 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 SchemaChange forNumber(int value) {
switch (value) {
case 0:
return SCHEMA_CHANGE_UNSPECIFIED;
case 1:
return INCOMPATIBLE;
case 2:
return MODIFIED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SchemaChange findValueByNumber(int number) {
return SchemaChange.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final SchemaChange[] VALUES = values();
public static SchemaChange valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SchemaChange(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange)
}
public static final int TABLE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object table_ = "";
/**
*
*
*
* The name of the table containing invalid data.
*
* The new and incompatible schema within the table. The schema is provided
* as a JSON formatted structured listing columns and data types.
*
*
* string new_schema = 3;
*
* @return The bytes for newSchema.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNewSchemaBytes() {
java.lang.Object ref = newSchema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
newSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SAMPLED_DATA_LOCATIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sampledDataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return A list containing the sampledDataLocations.
*/
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList() {
return sampledDataLocations_;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return The count of sampledDataLocations.
*/
public int getSampledDataLocationsCount() {
return sampledDataLocations_.size();
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
public java.lang.String getSampledDataLocations(int index) {
return sampledDataLocations_.get(index);
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
public com.google.protobuf.ByteString getSampledDataLocationsBytes(int index) {
return sampledDataLocations_.getByteString(index);
}
public static final int SCHEMA_CHANGE_FIELD_NUMBER = 5;
private int schemaChange_ = 0;
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @return The enum numeric value on the wire for schemaChange.
*/
@java.lang.Override
public int getSchemaChangeValue() {
return schemaChange_;
}
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @return The schemaChange.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange
getSchemaChange() {
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange result =
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange.forNumber(
schemaChange_);
return result == null
? com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange.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(table_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(existingSchema_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, existingSchema_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSchema_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newSchema_);
}
for (int i = 0; i < sampledDataLocations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 4, sampledDataLocations_.getRaw(i));
}
if (schemaChange_
!= com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange
.SCHEMA_CHANGE_UNSPECIFIED
.getNumber()) {
output.writeEnum(5, schemaChange_);
}
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(table_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(existingSchema_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, existingSchema_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSchema_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newSchema_);
}
{
int dataSize = 0;
for (int i = 0; i < sampledDataLocations_.size(); i++) {
dataSize += computeStringSizeNoTag(sampledDataLocations_.getRaw(i));
}
size += dataSize;
size += 1 * getSampledDataLocationsList().size();
}
if (schemaChange_
!= com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange
.SCHEMA_CHANGE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, schemaChange_);
}
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.Action.IncompatibleDataSchema)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema other =
(com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema) obj;
if (!getTable().equals(other.getTable())) return false;
if (!getExistingSchema().equals(other.getExistingSchema())) return false;
if (!getNewSchema().equals(other.getNewSchema())) return false;
if (!getSampledDataLocationsList().equals(other.getSampledDataLocationsList())) return false;
if (schemaChange_ != other.schemaChange_) 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) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + getTable().hashCode();
hash = (37 * hash) + EXISTING_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getExistingSchema().hashCode();
hash = (37 * hash) + NEW_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getNewSchema().hashCode();
if (getSampledDataLocationsCount() > 0) {
hash = (37 * hash) + SAMPLED_DATA_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getSampledDataLocationsList().hashCode();
}
hash = (37 * hash) + SCHEMA_CHANGE_FIELD_NUMBER;
hash = (53 * hash) + schemaChange_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema 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.Action.IncompatibleDataSchema 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;
}
/**
*
*
*
* Action details for incompatible schemas detected by discovery.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.IncompatibleDataSchema}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.IncompatibleDataSchema)
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchemaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_IncompatibleDataSchema_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_IncompatibleDataSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.class,
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
table_ = "";
existingSchema_ = "";
newSchema_ = "";
sampledDataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
schemaChange_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_IncompatibleDataSchema_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema build() {
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema buildPartial() {
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema result =
new com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.table_ = table_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.existingSchema_ = existingSchema_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newSchema_ = newSchema_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
sampledDataLocations_.makeImmutable();
result.sampledDataLocations_ = sampledDataLocations_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.schemaChange_ = schemaChange_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema other) {
if (other
== com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.getDefaultInstance())
return this;
if (!other.getTable().isEmpty()) {
table_ = other.table_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getExistingSchema().isEmpty()) {
existingSchema_ = other.existingSchema_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getNewSchema().isEmpty()) {
newSchema_ = other.newSchema_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.sampledDataLocations_.isEmpty()) {
if (sampledDataLocations_.isEmpty()) {
sampledDataLocations_ = other.sampledDataLocations_;
bitField0_ |= 0x00000008;
} else {
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.addAll(other.sampledDataLocations_);
}
onChanged();
}
if (other.schemaChange_ != 0) {
setSchemaChangeValue(other.getSchemaChangeValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
table_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
existingSchema_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
newSchema_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(s);
break;
} // case 34
case 40:
{
schemaChange_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object table_ = "";
/**
*
*
*
* The name of the table containing invalid data.
*
* The new and incompatible schema within the table. The schema is provided
* as a JSON formatted structured listing columns and data types.
*
*
* string new_schema = 3;
*
* @param value The bytes for newSchema to set.
* @return This builder for chaining.
*/
public Builder setNewSchemaBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
newSchema_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList sampledDataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSampledDataLocationsIsMutable() {
if (!sampledDataLocations_.isModifiable()) {
sampledDataLocations_ =
new com.google.protobuf.LazyStringArrayList(sampledDataLocations_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return A list containing the sampledDataLocations.
*/
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList() {
sampledDataLocations_.makeImmutable();
return sampledDataLocations_;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return The count of sampledDataLocations.
*/
public int getSampledDataLocationsCount() {
return sampledDataLocations_.size();
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
public java.lang.String getSampledDataLocations(int index) {
return sampledDataLocations_.get(index);
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
public com.google.protobuf.ByteString getSampledDataLocationsBytes(int index) {
return sampledDataLocations_.getByteString(index);
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index to set the value at.
* @param value The sampledDataLocations to set.
* @return This builder for chaining.
*/
public Builder setSampledDataLocations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param value The sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addSampledDataLocations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param values The sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addAllSampledDataLocations(java.lang.Iterable values) {
ensureSampledDataLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampledDataLocations_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations sampled and used for format/schema
* inference.
*
* The list of data locations sampled and used for format/schema
* inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param value The bytes of the sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addSampledDataLocationsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int schemaChange_ = 0;
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @return The enum numeric value on the wire for schemaChange.
*/
@java.lang.Override
public int getSchemaChangeValue() {
return schemaChange_;
}
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @param value The enum numeric value on the wire for schemaChange to set.
* @return This builder for chaining.
*/
public Builder setSchemaChangeValue(int value) {
schemaChange_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @return The schemaChange.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange
getSchemaChange() {
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange result =
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange.forNumber(
schemaChange_);
return result == null
? com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange.UNRECOGNIZED
: result;
}
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @param value The schemaChange to set.
* @return This builder for chaining.
*/
public Builder setSchemaChange(
com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
schemaChange_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Whether the action relates to a schema that is incompatible or modified.
*
*
*
* .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5;
*
*
* @return This builder for chaining.
*/
public Builder clearSchemaChange() {
bitField0_ = (bitField0_ & ~0x00000010);
schemaChange_ = 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.Action.IncompatibleDataSchema)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.IncompatibleDataSchema)
private static final com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema();
}
public static com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IncompatibleDataSchema parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InvalidDataPartitionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.InvalidDataPartition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @return The enum numeric value on the wire for expectedStructure.
*/
int getExpectedStructureValue();
/**
*
*
*
*
* PARTITION_STRUCTURE_UNSPECIFIED = 0;
*/
public static final int PARTITION_STRUCTURE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Consistent hive-style partition definition (both raw and curated zone).
*
*
* CONSISTENT_KEYS = 1;
*/
public static final int CONSISTENT_KEYS_VALUE = 1;
/**
*
*
*
* Hive style partition definition (curated zone only).
*
*
* HIVE_STYLE_KEYS = 2;
*/
public static final int HIVE_STYLE_KEYS_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 PartitionStructure 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 PartitionStructure forNumber(int value) {
switch (value) {
case 0:
return PARTITION_STRUCTURE_UNSPECIFIED;
case 1:
return CONSISTENT_KEYS;
case 2:
return HIVE_STYLE_KEYS;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PartitionStructure findValueByNumber(int number) {
return PartitionStructure.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.Action.InvalidDataPartition.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final PartitionStructure[] VALUES = values();
public static PartitionStructure valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PartitionStructure(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure)
}
public static final int EXPECTED_STRUCTURE_FIELD_NUMBER = 1;
private int expectedStructure_ = 0;
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @return The enum numeric value on the wire for expectedStructure.
*/
@java.lang.Override
public int getExpectedStructureValue() {
return expectedStructure_;
}
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @return The expectedStructure.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure
getExpectedStructure() {
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure result =
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure.forNumber(
expectedStructure_);
return result == null
? com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure.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 (expectedStructure_
!= com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure
.PARTITION_STRUCTURE_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, expectedStructure_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (expectedStructure_
!= com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure
.PARTITION_STRUCTURE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, expectedStructure_);
}
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.Action.InvalidDataPartition)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.InvalidDataPartition other =
(com.google.cloud.dataplex.v1.Action.InvalidDataPartition) obj;
if (expectedStructure_ != other.expectedStructure_) 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) + EXPECTED_STRUCTURE_FIELD_NUMBER;
hash = (53 * hash) + expectedStructure_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition 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.Action.InvalidDataPartition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition 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.Action.InvalidDataPartition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition 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.Action.InvalidDataPartition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition 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.Action.InvalidDataPartition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition 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.Action.InvalidDataPartition 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.Action.InvalidDataPartition 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.Action.InvalidDataPartition 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;
}
/**
*
*
*
* Action details for invalid or unsupported partitions detected by discovery.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.InvalidDataPartition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.InvalidDataPartition)
com.google.cloud.dataplex.v1.Action.InvalidDataPartitionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataPartition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataPartition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.class,
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.InvalidDataPartition.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
expectedStructure_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataPartition_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataPartition getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.InvalidDataPartition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataPartition build() {
com.google.cloud.dataplex.v1.Action.InvalidDataPartition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataPartition buildPartial() {
com.google.cloud.dataplex.v1.Action.InvalidDataPartition result =
new com.google.cloud.dataplex.v1.Action.InvalidDataPartition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Action.InvalidDataPartition result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.expectedStructure_ = expectedStructure_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.InvalidDataPartition) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.InvalidDataPartition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.InvalidDataPartition other) {
if (other == com.google.cloud.dataplex.v1.Action.InvalidDataPartition.getDefaultInstance())
return this;
if (other.expectedStructure_ != 0) {
setExpectedStructureValue(other.getExpectedStructureValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
expectedStructure_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int expectedStructure_ = 0;
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @return The enum numeric value on the wire for expectedStructure.
*/
@java.lang.Override
public int getExpectedStructureValue() {
return expectedStructure_;
}
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @param value The enum numeric value on the wire for expectedStructure to set.
* @return This builder for chaining.
*/
public Builder setExpectedStructureValue(int value) {
expectedStructure_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @return The expectedStructure.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure
getExpectedStructure() {
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure result =
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure.forNumber(
expectedStructure_);
return result == null
? com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure
.UNRECOGNIZED
: result;
}
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @param value The expectedStructure to set.
* @return This builder for chaining.
*/
public Builder setExpectedStructure(
com.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
expectedStructure_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The issue type of InvalidDataPartition.
*
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;
*
*
* @return This builder for chaining.
*/
public Builder clearExpectedStructure() {
bitField0_ = (bitField0_ & ~0x00000001);
expectedStructure_ = 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.Action.InvalidDataPartition)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.InvalidDataPartition)
private static final com.google.cloud.dataplex.v1.Action.InvalidDataPartition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.InvalidDataPartition();
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataPartition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InvalidDataPartition parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataPartition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MissingDataOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.MissingData)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* Action details for absence of data detected by discovery.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.MissingData}
*/
public static final class MissingData extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action.MissingData)
MissingDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use MissingData.newBuilder() to construct.
private MissingData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MissingData() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MissingData();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.MissingData.class,
com.google.cloud.dataplex.v1.Action.MissingData.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Action.MissingData)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.MissingData other =
(com.google.cloud.dataplex.v1.Action.MissingData) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.MissingData parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.MissingData 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.Action.MissingData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.MissingData 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.Action.MissingData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.MissingData 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.Action.MissingData parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.MissingData 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.Action.MissingData parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.MissingData 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.Action.MissingData 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.Action.MissingData 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.Action.MissingData 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;
}
/**
*
*
*
* Action details for absence of data detected by discovery.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.MissingData}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.MissingData)
com.google.cloud.dataplex.v1.Action.MissingDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.MissingData.class,
com.google.cloud.dataplex.v1.Action.MissingData.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.MissingData.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_MissingData_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingData getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.MissingData.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingData build() {
com.google.cloud.dataplex.v1.Action.MissingData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingData buildPartial() {
com.google.cloud.dataplex.v1.Action.MissingData result =
new com.google.cloud.dataplex.v1.Action.MissingData(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.MissingData) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.MissingData) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.MissingData other) {
if (other == com.google.cloud.dataplex.v1.Action.MissingData.getDefaultInstance())
return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.Action.MissingData)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.MissingData)
private static final com.google.cloud.dataplex.v1.Action.MissingData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.MissingData();
}
public static com.google.cloud.dataplex.v1.Action.MissingData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MissingData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.MissingData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface InvalidDataOrganizationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Action.InvalidDataOrganization)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* Action details for invalid data arrangement.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.InvalidDataOrganization}
*/
public static final class InvalidDataOrganization extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Action.InvalidDataOrganization)
InvalidDataOrganizationOrBuilder {
private static final long serialVersionUID = 0L;
// Use InvalidDataOrganization.newBuilder() to construct.
private InvalidDataOrganization(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InvalidDataOrganization() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InvalidDataOrganization();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataOrganization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataOrganization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.class,
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.Action.InvalidDataOrganization)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization other =
(com.google.cloud.dataplex.v1.Action.InvalidDataOrganization) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization 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.Action.InvalidDataOrganization 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;
}
/**
*
*
*
* Action details for invalid data arrangement.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action.InvalidDataOrganization}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action.InvalidDataOrganization)
com.google.cloud.dataplex.v1.Action.InvalidDataOrganizationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataOrganization_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataOrganization_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.class,
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_InvalidDataOrganization_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataOrganization
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataOrganization build() {
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataOrganization buildPartial() {
com.google.cloud.dataplex.v1.Action.InvalidDataOrganization result =
new com.google.cloud.dataplex.v1.Action.InvalidDataOrganization(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action.InvalidDataOrganization) {
return mergeFrom((com.google.cloud.dataplex.v1.Action.InvalidDataOrganization) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action.InvalidDataOrganization other) {
if (other
== com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.getDefaultInstance())
return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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.Action.InvalidDataOrganization)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Action.InvalidDataOrganization)
private static final com.google.cloud.dataplex.v1.Action.InvalidDataOrganization
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Action.InvalidDataOrganization();
}
public static com.google.cloud.dataplex.v1.Action.InvalidDataOrganization getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InvalidDataOrganization parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException()
.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataOrganization getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int detailsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object details_;
public enum DetailsCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INVALID_DATA_FORMAT(10),
INCOMPATIBLE_DATA_SCHEMA(11),
INVALID_DATA_PARTITION(12),
MISSING_DATA(13),
MISSING_RESOURCE(14),
UNAUTHORIZED_RESOURCE(15),
FAILED_SECURITY_POLICY_APPLY(21),
INVALID_DATA_ORGANIZATION(22),
DETAILS_NOT_SET(0);
private final int value;
private DetailsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DetailsCase valueOf(int value) {
return forNumber(value);
}
public static DetailsCase forNumber(int value) {
switch (value) {
case 10:
return INVALID_DATA_FORMAT;
case 11:
return INCOMPATIBLE_DATA_SCHEMA;
case 12:
return INVALID_DATA_PARTITION;
case 13:
return MISSING_DATA;
case 14:
return MISSING_RESOURCE;
case 15:
return UNAUTHORIZED_RESOURCE;
case 21:
return FAILED_SECURITY_POLICY_APPLY;
case 22:
return INVALID_DATA_ORGANIZATION;
case 0:
return DETAILS_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public DetailsCase getDetailsCase() {
return DetailsCase.forNumber(detailsCase_);
}
public static final int CATEGORY_FIELD_NUMBER = 1;
private int category_ = 0;
/**
*
*
*
* The category of issue associated with the action.
*
*
* .google.cloud.dataplex.v1.Action.Category category = 1;
*
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override
public int getCategoryValue() {
return category_;
}
/**
*
*
*
* The category of issue associated with the action.
*
*
* .google.cloud.dataplex.v1.Action.Category category = 1;
*
* @return The category.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.Category getCategory() {
com.google.cloud.dataplex.v1.Action.Category result =
com.google.cloud.dataplex.v1.Action.Category.forNumber(category_);
return result == null ? com.google.cloud.dataplex.v1.Action.Category.UNRECOGNIZED : result;
}
public static final int ISSUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object issue_ = "";
/**
*
*
*
* Detailed description of the issue requiring action.
*
*
* .google.protobuf.Timestamp detect_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDetectTimeOrBuilder() {
return detectTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : detectTime_;
}
public static final int NAME_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
*
*
* string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAKE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object lake_ = "";
/**
*
*
*
* Output only. The relative resource name of the lake, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
* Output only. The relative resource name of the lake, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
*
*
* string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for lake.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLakeBytes() {
java.lang.Object ref = lake_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
lake_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object zone_ = "";
/**
*
*
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
*
*
* string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for zone.
*/
@java.lang.Override
public com.google.protobuf.ByteString getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSET_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object asset_ = "";
/**
*
*
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
*
*
* string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for asset.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAssetBytes() {
java.lang.Object ref = asset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
asset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_LOCATIONS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList dataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @return A list containing the dataLocations.
*/
public com.google.protobuf.ProtocolStringList getDataLocationsList() {
return dataLocations_;
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @return The count of dataLocations.
*/
public int getDataLocationsCount() {
return dataLocations_.size();
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param index The index of the element to return.
* @return The dataLocations at the given index.
*/
public java.lang.String getDataLocations(int index) {
return dataLocations_.get(index);
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param index The index of the value to return.
* @return The bytes of the dataLocations at the given index.
*/
public com.google.protobuf.ByteString getDataLocationsBytes(int index) {
return dataLocations_.getByteString(index);
}
public static final int INVALID_DATA_FORMAT_FIELD_NUMBER = 10;
/**
*
*
*
* Details for issues related to invalid or unsupported data formats.
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataFormat invalid_data_format = 10;
*
* @return Whether the invalidDataFormat field is set.
*/
@java.lang.Override
public boolean hasInvalidDataFormat() {
return detailsCase_ == 10;
}
/**
*
*
*
* Details for issues related to invalid or unsupported data formats.
*
* Details for issues related to invalid data arrangement.
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataOrganization invalid_data_organization = 22;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.InvalidDataOrganizationOrBuilder
getInvalidDataOrganizationOrBuilder() {
if (detailsCase_ == 22) {
return (com.google.cloud.dataplex.v1.Action.InvalidDataOrganization) details_;
}
return com.google.cloud.dataplex.v1.Action.InvalidDataOrganization.getDefaultInstance();
}
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 (category_
!= com.google.cloud.dataplex.v1.Action.Category.CATEGORY_UNSPECIFIED.getNumber()) {
output.writeEnum(1, category_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issue_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, issue_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getDetectTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lake_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, lake_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, zone_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, asset_);
}
for (int i = 0; i < dataLocations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dataLocations_.getRaw(i));
}
if (detailsCase_ == 10) {
output.writeMessage(10, (com.google.cloud.dataplex.v1.Action.InvalidDataFormat) details_);
}
if (detailsCase_ == 11) {
output.writeMessage(
11, (com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema) details_);
}
if (detailsCase_ == 12) {
output.writeMessage(12, (com.google.cloud.dataplex.v1.Action.InvalidDataPartition) details_);
}
if (detailsCase_ == 13) {
output.writeMessage(13, (com.google.cloud.dataplex.v1.Action.MissingData) details_);
}
if (detailsCase_ == 14) {
output.writeMessage(14, (com.google.cloud.dataplex.v1.Action.MissingResource) details_);
}
if (detailsCase_ == 15) {
output.writeMessage(15, (com.google.cloud.dataplex.v1.Action.UnauthorizedResource) details_);
}
if (detailsCase_ == 21) {
output.writeMessage(
21, (com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply) details_);
}
if (detailsCase_ == 22) {
output.writeMessage(
22, (com.google.cloud.dataplex.v1.Action.InvalidDataOrganization) details_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (category_
!= com.google.cloud.dataplex.v1.Action.Category.CATEGORY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issue_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, issue_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDetectTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lake_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, lake_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, zone_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, asset_);
}
{
int dataSize = 0;
for (int i = 0; i < dataLocations_.size(); i++) {
dataSize += computeStringSizeNoTag(dataLocations_.getRaw(i));
}
size += dataSize;
size += 1 * getDataLocationsList().size();
}
if (detailsCase_ == 10) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
10, (com.google.cloud.dataplex.v1.Action.InvalidDataFormat) details_);
}
if (detailsCase_ == 11) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
11, (com.google.cloud.dataplex.v1.Action.IncompatibleDataSchema) details_);
}
if (detailsCase_ == 12) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
12, (com.google.cloud.dataplex.v1.Action.InvalidDataPartition) details_);
}
if (detailsCase_ == 13) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
13, (com.google.cloud.dataplex.v1.Action.MissingData) details_);
}
if (detailsCase_ == 14) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
14, (com.google.cloud.dataplex.v1.Action.MissingResource) details_);
}
if (detailsCase_ == 15) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
15, (com.google.cloud.dataplex.v1.Action.UnauthorizedResource) details_);
}
if (detailsCase_ == 21) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
21, (com.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply) details_);
}
if (detailsCase_ == 22) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
22, (com.google.cloud.dataplex.v1.Action.InvalidDataOrganization) details_);
}
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.Action)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Action other = (com.google.cloud.dataplex.v1.Action) obj;
if (category_ != other.category_) return false;
if (!getIssue().equals(other.getIssue())) return false;
if (hasDetectTime() != other.hasDetectTime()) return false;
if (hasDetectTime()) {
if (!getDetectTime().equals(other.getDetectTime())) return false;
}
if (!getName().equals(other.getName())) return false;
if (!getLake().equals(other.getLake())) return false;
if (!getZone().equals(other.getZone())) return false;
if (!getAsset().equals(other.getAsset())) return false;
if (!getDataLocationsList().equals(other.getDataLocationsList())) return false;
if (!getDetailsCase().equals(other.getDetailsCase())) return false;
switch (detailsCase_) {
case 10:
if (!getInvalidDataFormat().equals(other.getInvalidDataFormat())) return false;
break;
case 11:
if (!getIncompatibleDataSchema().equals(other.getIncompatibleDataSchema())) return false;
break;
case 12:
if (!getInvalidDataPartition().equals(other.getInvalidDataPartition())) return false;
break;
case 13:
if (!getMissingData().equals(other.getMissingData())) return false;
break;
case 14:
if (!getMissingResource().equals(other.getMissingResource())) return false;
break;
case 15:
if (!getUnauthorizedResource().equals(other.getUnauthorizedResource())) return false;
break;
case 21:
if (!getFailedSecurityPolicyApply().equals(other.getFailedSecurityPolicyApply()))
return false;
break;
case 22:
if (!getInvalidDataOrganization().equals(other.getInvalidDataOrganization())) return false;
break;
case 0:
default:
}
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) + CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + category_;
hash = (37 * hash) + ISSUE_FIELD_NUMBER;
hash = (53 * hash) + getIssue().hashCode();
if (hasDetectTime()) {
hash = (37 * hash) + DETECT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getDetectTime().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + LAKE_FIELD_NUMBER;
hash = (53 * hash) + getLake().hashCode();
hash = (37 * hash) + ZONE_FIELD_NUMBER;
hash = (53 * hash) + getZone().hashCode();
hash = (37 * hash) + ASSET_FIELD_NUMBER;
hash = (53 * hash) + getAsset().hashCode();
if (getDataLocationsCount() > 0) {
hash = (37 * hash) + DATA_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getDataLocationsList().hashCode();
}
switch (detailsCase_) {
case 10:
hash = (37 * hash) + INVALID_DATA_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getInvalidDataFormat().hashCode();
break;
case 11:
hash = (37 * hash) + INCOMPATIBLE_DATA_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getIncompatibleDataSchema().hashCode();
break;
case 12:
hash = (37 * hash) + INVALID_DATA_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getInvalidDataPartition().hashCode();
break;
case 13:
hash = (37 * hash) + MISSING_DATA_FIELD_NUMBER;
hash = (53 * hash) + getMissingData().hashCode();
break;
case 14:
hash = (37 * hash) + MISSING_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getMissingResource().hashCode();
break;
case 15:
hash = (37 * hash) + UNAUTHORIZED_RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getUnauthorizedResource().hashCode();
break;
case 21:
hash = (37 * hash) + FAILED_SECURITY_POLICY_APPLY_FIELD_NUMBER;
hash = (53 * hash) + getFailedSecurityPolicyApply().hashCode();
break;
case 22:
hash = (37 * hash) + INVALID_DATA_ORGANIZATION_FIELD_NUMBER;
hash = (53 * hash) + getInvalidDataOrganization().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Action parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action 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.Action parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action 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.Action parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Action 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.Action parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action 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.Action parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Action 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.Action 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.Action 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.Action 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;
}
/**
*
*
*
* Action represents an issue requiring administrator action for resolution.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Action}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Action)
com.google.cloud.dataplex.v1.ActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Action.class,
com.google.cloud.dataplex.v1.Action.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Action.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDetectTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
category_ = 0;
issue_ = "";
detectTime_ = null;
if (detectTimeBuilder_ != null) {
detectTimeBuilder_.dispose();
detectTimeBuilder_ = null;
}
name_ = "";
lake_ = "";
zone_ = "";
asset_ = "";
dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
if (invalidDataFormatBuilder_ != null) {
invalidDataFormatBuilder_.clear();
}
if (incompatibleDataSchemaBuilder_ != null) {
incompatibleDataSchemaBuilder_.clear();
}
if (invalidDataPartitionBuilder_ != null) {
invalidDataPartitionBuilder_.clear();
}
if (missingDataBuilder_ != null) {
missingDataBuilder_.clear();
}
if (missingResourceBuilder_ != null) {
missingResourceBuilder_.clear();
}
if (unauthorizedResourceBuilder_ != null) {
unauthorizedResourceBuilder_.clear();
}
if (failedSecurityPolicyApplyBuilder_ != null) {
failedSecurityPolicyApplyBuilder_.clear();
}
if (invalidDataOrganizationBuilder_ != null) {
invalidDataOrganizationBuilder_.clear();
}
detailsCase_ = 0;
details_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Action_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Action.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action build() {
com.google.cloud.dataplex.v1.Action result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Action buildPartial() {
com.google.cloud.dataplex.v1.Action result = new com.google.cloud.dataplex.v1.Action(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Action result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.category_ = category_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.issue_ = issue_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.detectTime_ = detectTimeBuilder_ == null ? detectTime_ : detectTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.lake_ = lake_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.zone_ = zone_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.asset_ = asset_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
dataLocations_.makeImmutable();
result.dataLocations_ = dataLocations_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataplex.v1.Action result) {
result.detailsCase_ = detailsCase_;
result.details_ = this.details_;
if (detailsCase_ == 10 && invalidDataFormatBuilder_ != null) {
result.details_ = invalidDataFormatBuilder_.build();
}
if (detailsCase_ == 11 && incompatibleDataSchemaBuilder_ != null) {
result.details_ = incompatibleDataSchemaBuilder_.build();
}
if (detailsCase_ == 12 && invalidDataPartitionBuilder_ != null) {
result.details_ = invalidDataPartitionBuilder_.build();
}
if (detailsCase_ == 13 && missingDataBuilder_ != null) {
result.details_ = missingDataBuilder_.build();
}
if (detailsCase_ == 14 && missingResourceBuilder_ != null) {
result.details_ = missingResourceBuilder_.build();
}
if (detailsCase_ == 15 && unauthorizedResourceBuilder_ != null) {
result.details_ = unauthorizedResourceBuilder_.build();
}
if (detailsCase_ == 21 && failedSecurityPolicyApplyBuilder_ != null) {
result.details_ = failedSecurityPolicyApplyBuilder_.build();
}
if (detailsCase_ == 22 && invalidDataOrganizationBuilder_ != null) {
result.details_ = invalidDataOrganizationBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.Action) {
return mergeFrom((com.google.cloud.dataplex.v1.Action) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Action other) {
if (other == com.google.cloud.dataplex.v1.Action.getDefaultInstance()) return this;
if (other.category_ != 0) {
setCategoryValue(other.getCategoryValue());
}
if (!other.getIssue().isEmpty()) {
issue_ = other.issue_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasDetectTime()) {
mergeDetectTime(other.getDetectTime());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getLake().isEmpty()) {
lake_ = other.lake_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getZone().isEmpty()) {
zone_ = other.zone_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getAsset().isEmpty()) {
asset_ = other.asset_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.dataLocations_.isEmpty()) {
if (dataLocations_.isEmpty()) {
dataLocations_ = other.dataLocations_;
bitField0_ |= 0x00000080;
} else {
ensureDataLocationsIsMutable();
dataLocations_.addAll(other.dataLocations_);
}
onChanged();
}
switch (other.getDetailsCase()) {
case INVALID_DATA_FORMAT:
{
mergeInvalidDataFormat(other.getInvalidDataFormat());
break;
}
case INCOMPATIBLE_DATA_SCHEMA:
{
mergeIncompatibleDataSchema(other.getIncompatibleDataSchema());
break;
}
case INVALID_DATA_PARTITION:
{
mergeInvalidDataPartition(other.getInvalidDataPartition());
break;
}
case MISSING_DATA:
{
mergeMissingData(other.getMissingData());
break;
}
case MISSING_RESOURCE:
{
mergeMissingResource(other.getMissingResource());
break;
}
case UNAUTHORIZED_RESOURCE:
{
mergeUnauthorizedResource(other.getUnauthorizedResource());
break;
}
case FAILED_SECURITY_POLICY_APPLY:
{
mergeFailedSecurityPolicyApply(other.getFailedSecurityPolicyApply());
break;
}
case INVALID_DATA_ORGANIZATION:
{
mergeInvalidDataOrganization(other.getInvalidDataOrganization());
break;
}
case DETAILS_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
category_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
issue_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 34:
{
input.readMessage(getDetectTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
case 42:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 42
case 50:
{
lake_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 50
case 58:
{
zone_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 58
case 66:
{
asset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 66
case 74:
{
java.lang.String s = input.readStringRequireUtf8();
ensureDataLocationsIsMutable();
dataLocations_.add(s);
break;
} // case 74
case 82:
{
input.readMessage(
getInvalidDataFormatFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 10;
break;
} // case 82
case 90:
{
input.readMessage(
getIncompatibleDataSchemaFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 11;
break;
} // case 90
case 98:
{
input.readMessage(
getInvalidDataPartitionFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 12;
break;
} // case 98
case 106:
{
input.readMessage(getMissingDataFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 13;
break;
} // case 106
case 114:
{
input.readMessage(getMissingResourceFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 14;
break;
} // case 114
case 122:
{
input.readMessage(
getUnauthorizedResourceFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 15;
break;
} // case 122
case 170:
{
input.readMessage(
getFailedSecurityPolicyApplyFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 21;
break;
} // case 170
case 178:
{
input.readMessage(
getInvalidDataOrganizationFieldBuilder().getBuilder(), extensionRegistry);
detailsCase_ = 22;
break;
} // case 178
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int detailsCase_ = 0;
private java.lang.Object details_;
public DetailsCase getDetailsCase() {
return DetailsCase.forNumber(detailsCase_);
}
public Builder clearDetails() {
detailsCase_ = 0;
details_ = null;
onChanged();
return this;
}
private int bitField0_;
private int category_ = 0;
/**
*
*
*
* The category of issue associated with the action.
*
*
* .google.cloud.dataplex.v1.Action.Category category = 1;
*
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override
public int getCategoryValue() {
return category_;
}
/**
*
*
*
* The category of issue associated with the action.
*
*
* .google.cloud.dataplex.v1.Action.Category category = 1;
*
* @param value The enum numeric value on the wire for category to set.
* @return This builder for chaining.
*/
public Builder setCategoryValue(int value) {
category_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The category of issue associated with the action.
*
*
* .google.cloud.dataplex.v1.Action.Category category = 1;
*
* @return The category.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Action.Category getCategory() {
com.google.cloud.dataplex.v1.Action.Category result =
com.google.cloud.dataplex.v1.Action.Category.forNumber(category_);
return result == null ? com.google.cloud.dataplex.v1.Action.Category.UNRECOGNIZED : result;
}
/**
*
*
*
* The category of issue associated with the action.
*
*
* .google.cloud.dataplex.v1.Action.Category category = 1;
*
* @param value The category to set.
* @return This builder for chaining.
*/
public Builder setCategory(com.google.cloud.dataplex.v1.Action.Category value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
category_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The category of issue associated with the action.
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
*
*
* string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
*
*
* string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
* Output only. The relative resource name of the action, of the form:
* `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}`
* `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`.
*
*
*
* string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object lake_ = "";
/**
*
*
*
* Output only. The relative resource name of the lake, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
* Output only. The relative resource name of the lake, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`.
*
*
*
* string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for lake to set.
* @return This builder for chaining.
*/
public Builder setLakeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
lake_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object zone_ = "";
/**
*
*
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
*
*
* string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for zone.
*/
public com.google.protobuf.ByteString getZoneBytes() {
java.lang.Object ref = zone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
zone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
*
*
* string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The zone to set.
* @return This builder for chaining.
*/
public Builder setZone(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zone_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
* Output only. The relative resource name of the zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
*
*
* string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for zone to set.
* @return This builder for chaining.
*/
public Builder setZoneBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zone_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object asset_ = "";
/**
*
*
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
*
*
* string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The asset to set.
* @return This builder for chaining.
*/
public Builder setAsset(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
asset_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
* Output only. The relative resource name of the asset, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`.
*
*
*
* string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for asset to set.
* @return This builder for chaining.
*/
public Builder setAssetBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
asset_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList dataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDataLocationsIsMutable() {
if (!dataLocations_.isModifiable()) {
dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
}
bitField0_ |= 0x00000080;
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @return A list containing the dataLocations.
*/
public com.google.protobuf.ProtocolStringList getDataLocationsList() {
dataLocations_.makeImmutable();
return dataLocations_;
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @return The count of dataLocations.
*/
public int getDataLocationsCount() {
return dataLocations_.size();
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param index The index of the element to return.
* @return The dataLocations at the given index.
*/
public java.lang.String getDataLocations(int index) {
return dataLocations_.get(index);
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param index The index of the value to return.
* @return The bytes of the dataLocations at the given index.
*/
public com.google.protobuf.ByteString getDataLocationsBytes(int index) {
return dataLocations_.getByteString(index);
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param index The index to set the value at.
* @param value The dataLocations to set.
* @return This builder for chaining.
*/
public Builder setDataLocations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDataLocationsIsMutable();
dataLocations_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param value The dataLocations to add.
* @return This builder for chaining.
*/
public Builder addDataLocations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDataLocationsIsMutable();
dataLocations_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param values The dataLocations to add.
* @return This builder for chaining.
*/
public Builder addAllDataLocations(java.lang.Iterable values) {
ensureDataLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
* The list of data locations associated with this action. Cloud Storage
* locations are represented as URI paths(E.g.
* `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to
* resource names(E.g.
* `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`).
*
*
* repeated string data_locations = 9;
*
* @param value The bytes of the dataLocations to add.
* @return This builder for chaining.
*/
public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDataLocationsIsMutable();
dataLocations_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Action.InvalidDataFormat,
com.google.cloud.dataplex.v1.Action.InvalidDataFormat.Builder,
com.google.cloud.dataplex.v1.Action.InvalidDataFormatOrBuilder>
invalidDataFormatBuilder_;
/**
*
*
*
* Details for issues related to invalid or unsupported data formats.
*
*
* .google.cloud.dataplex.v1.Action.InvalidDataFormat invalid_data_format = 10;
*
* @return Whether the invalidDataFormat field is set.
*/
@java.lang.Override
public boolean hasInvalidDataFormat() {
return detailsCase_ == 10;
}
/**
*
*
*
* Details for issues related to invalid or unsupported data formats.
*