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;
/**
*
*
*
* A zone represents a logical group of related assets within a lake. A zone can
* be used to map to organizational structure or represent stages of data
* readiness from raw to curated. It provides managing behavior that is shared
* or inherited by all contained assets.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Zone}
*/
public final class Zone extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Zone)
ZoneOrBuilder {
private static final long serialVersionUID = 0L;
// Use Zone.newBuilder() to construct.
private Zone(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Zone() {
name_ = "";
displayName_ = "";
uid_ = "";
description_ = "";
state_ = 0;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Zone();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Zone.class,
com.google.cloud.dataplex.v1.Zone.Builder.class);
}
/**
*
*
*
* Type of zone.
*
*
* Protobuf enum {@code google.cloud.dataplex.v1.Zone.Type}
*/
public enum Type implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* A zone that contains data that needs further processing before it is
* considered generally ready for consumption and analytics workloads.
*
*
* RAW = 1;
*/
RAW(1),
/**
*
*
*
* A zone that contains data that is considered to be ready for broader
* consumption and analytics workloads. Curated structured data stored in
* Cloud Storage must conform to certain file formats (parquet, avro and
* orc) and organized in a hive-compatible directory layout.
*
*
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* A zone that contains data that needs further processing before it is
* considered generally ready for consumption and analytics workloads.
*
*
* RAW = 1;
*/
public static final int RAW_VALUE = 1;
/**
*
*
*
* A zone that contains data that is considered to be ready for broader
* consumption and analytics workloads. Curated structured data stored in
* Cloud Storage must conform to certain file formats (parquet, avro and
* orc) and organized in a hive-compatible directory layout.
*
*
* CURATED = 2;
*/
public static final int CURATED_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 Type 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 Type forNumber(int value) {
switch (value) {
case 0:
return TYPE_UNSPECIFIED;
case 1:
return RAW;
case 2:
return CURATED;
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 Type findValueByNumber(int number) {
return Type.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.Zone.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Zone.Type)
}
public interface ResourceSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Zone.ResourceSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for locationType.
*/
int getLocationTypeValue();
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
*
* LOCATION_TYPE_UNSPECIFIED = 0;
*/
public static final int LOCATION_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Resources that are associated with a single region.
*
*
* SINGLE_REGION = 1;
*/
public static final int SINGLE_REGION_VALUE = 1;
/**
*
*
*
* Resources that are associated with a multi-region location.
*
*
* MULTI_REGION = 2;
*/
public static final int MULTI_REGION_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 LocationType 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 LocationType forNumber(int value) {
switch (value) {
case 0:
return LOCATION_TYPE_UNSPECIFIED;
case 1:
return SINGLE_REGION;
case 2:
return MULTI_REGION;
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 LocationType findValueByNumber(int number) {
return LocationType.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.Zone.ResourceSpec.getDescriptor().getEnumTypes().get(0);
}
private static final LocationType[] VALUES = values();
public static LocationType 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 LocationType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType)
}
public static final int LOCATION_TYPE_FIELD_NUMBER = 1;
private int locationType_ = 0;
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for locationType.
*/
@java.lang.Override
public int getLocationTypeValue() {
return locationType_;
}
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The locationType.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType getLocationType() {
com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType result =
com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType.forNumber(locationType_);
return result == null
? com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType.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 (locationType_
!= com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType.LOCATION_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, locationType_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (locationType_
!= com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType.LOCATION_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, locationType_);
}
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.Zone.ResourceSpec)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Zone.ResourceSpec other =
(com.google.cloud.dataplex.v1.Zone.ResourceSpec) obj;
if (locationType_ != other.locationType_) 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) + LOCATION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + locationType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Zone.ResourceSpec parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Zone.ResourceSpec 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.Zone.ResourceSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Zone.ResourceSpec 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.Zone.ResourceSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Zone.ResourceSpec 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.Zone.ResourceSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Zone.ResourceSpec 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.Zone.ResourceSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Zone.ResourceSpec 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.Zone.ResourceSpec 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.Zone.ResourceSpec 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.Zone.ResourceSpec 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;
}
/**
*
*
*
* Settings for resources attached as assets within a zone.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Zone.ResourceSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Zone.ResourceSpec)
com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_ResourceSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_ResourceSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Zone.ResourceSpec.class,
com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Zone.ResourceSpec.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
locationType_ = 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_Zone_ResourceSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.ResourceSpec getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.ResourceSpec build() {
com.google.cloud.dataplex.v1.Zone.ResourceSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.ResourceSpec buildPartial() {
com.google.cloud.dataplex.v1.Zone.ResourceSpec result =
new com.google.cloud.dataplex.v1.Zone.ResourceSpec(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Zone.ResourceSpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.locationType_ = locationType_;
}
}
@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.Zone.ResourceSpec) {
return mergeFrom((com.google.cloud.dataplex.v1.Zone.ResourceSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone.ResourceSpec other) {
if (other == com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance())
return this;
if (other.locationType_ != 0) {
setLocationTypeValue(other.getLocationTypeValue());
}
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:
{
locationType_ = 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 locationType_ = 0;
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for locationType.
*/
@java.lang.Override
public int getLocationTypeValue() {
return locationType_;
}
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The enum numeric value on the wire for locationType to set.
* @return This builder for chaining.
*/
public Builder setLocationTypeValue(int value) {
locationType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. Immutable. The location type of the resources that are allowed
* to be attached to the assets within this zone.
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the includePatterns.
*/
java.util.List getIncludePatternsList();
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of includePatterns.
*/
int getIncludePatternsCount();
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The includePatterns at the given index.
*/
java.lang.String getIncludePatterns(int index);
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the includePatterns at the given index.
*/
com.google.protobuf.ByteString getIncludePatternsBytes(int index);
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the excludePatterns.
*/
java.util.List getExcludePatternsList();
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of excludePatterns.
*/
int getExcludePatternsCount();
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The excludePatterns at the given index.
*/
java.lang.String getExcludePatterns(int index);
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the excludePatterns at the given index.
*/
com.google.protobuf.ByteString getExcludePatternsBytes(int index);
/**
*
*
*
* Optional. Configuration for CSV data.
*
*
*
* .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the csvOptions field is set.
*/
boolean hasCsvOptions();
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the schedule field is set.
*/
boolean hasSchedule();
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
* Optional. Whether to disable the inference of data type for Json data.
* If true, all columns will be registered as their primitive types
* (strings, number or boolean).
*
* Optional. The character encoding of the data. The default is UTF-8.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for encoding.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISABLE_TYPE_INFERENCE_FIELD_NUMBER = 2;
private boolean disableTypeInference_ = false;
/**
*
*
*
* Optional. Whether to disable the inference of data type for Json data.
* If true, all columns will be registered as their primitive types
* (strings, number or boolean).
*
* Optional. The character encoding of the data. The default is UTF-8.
*
*
* string encoding = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for encoding to set.
* @return This builder for chaining.
*/
public Builder setEncodingBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
encoding_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean disableTypeInference_;
/**
*
*
*
* Optional. Whether to disable the inference of data type for Json data.
* If true, all columns will be registered as their primitive types
* (strings, number or boolean).
*
* Optional. Whether to disable the inference of data type for Json data.
* If true, all columns will be registered as their primitive types
* (strings, number or boolean).
*
*
* bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The disableTypeInference to set.
* @return This builder for chaining.
*/
public Builder setDisableTypeInference(boolean value) {
disableTypeInference_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. Whether to disable the inference of data type for Json data.
* If true, all columns will be registered as their primitive types
* (strings, number or boolean).
*
*
* bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearDisableTypeInference() {
bitField0_ = (bitField0_ & ~0x00000002);
disableTypeInference_ = false;
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.Zone.DiscoverySpec.JsonOptions)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions)
private static final com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions();
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JsonOptions 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.Zone.DiscoverySpec.JsonOptions
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int triggerCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object trigger_;
public enum TriggerCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SCHEDULE(10),
TRIGGER_NOT_SET(0);
private final int value;
private TriggerCase(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 TriggerCase valueOf(int value) {
return forNumber(value);
}
public static TriggerCase forNumber(int value) {
switch (value) {
case 10:
return SCHEDULE;
case 0:
return TRIGGER_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public TriggerCase getTriggerCase() {
return TriggerCase.forNumber(triggerCase_);
}
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_ = false;
/**
*
*
*
* Required. Whether discovery is enabled.
*
*
* bool enabled = 1 [(.google.api.field_behavior) = REQUIRED];
*
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int INCLUDE_PATTERNS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList includePatterns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the includePatterns.
*/
public com.google.protobuf.ProtocolStringList getIncludePatternsList() {
return includePatterns_;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of includePatterns.
*/
public int getIncludePatternsCount() {
return includePatterns_.size();
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The includePatterns at the given index.
*/
public java.lang.String getIncludePatterns(int index) {
return includePatterns_.get(index);
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the includePatterns at the given index.
*/
public com.google.protobuf.ByteString getIncludePatternsBytes(int index) {
return includePatterns_.getByteString(index);
}
public static final int EXCLUDE_PATTERNS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList excludePatterns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the excludePatterns.
*/
public com.google.protobuf.ProtocolStringList getExcludePatternsList() {
return excludePatterns_;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of excludePatterns.
*/
public int getExcludePatternsCount() {
return excludePatterns_.size();
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The excludePatterns at the given index.
*/
public java.lang.String getExcludePatterns(int index) {
return excludePatterns_.get(index);
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the excludePatterns at the given index.
*/
public com.google.protobuf.ByteString getExcludePatternsBytes(int index) {
return excludePatterns_.getByteString(index);
}
public static final int CSV_OPTIONS_FIELD_NUMBER = 4;
private com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csvOptions_;
/**
*
*
*
* Optional. Configuration for CSV data.
*
*
*
* .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the csvOptions field is set.
*/
@java.lang.Override
public boolean hasCsvOptions() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
*
*
* .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder
getJsonOptionsOrBuilder() {
return jsonOptions_ == null
? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.getDefaultInstance()
: jsonOptions_;
}
public static final int SCHEDULE_FIELD_NUMBER = 10;
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the schedule field is set.
*/
public boolean hasSchedule() {
return triggerCase_ == 10;
}
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for schedule.
*/
public com.google.protobuf.ByteString getScheduleBytes() {
java.lang.Object ref = "";
if (triggerCase_ == 10) {
ref = trigger_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (triggerCase_ == 10) {
trigger_ = 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 (enabled_ != false) {
output.writeBool(1, enabled_);
}
for (int i = 0; i < includePatterns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, includePatterns_.getRaw(i));
}
for (int i = 0; i < excludePatterns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, excludePatterns_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getCsvOptions());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getJsonOptions());
}
if (triggerCase_ == 10) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, trigger_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
}
{
int dataSize = 0;
for (int i = 0; i < includePatterns_.size(); i++) {
dataSize += computeStringSizeNoTag(includePatterns_.getRaw(i));
}
size += dataSize;
size += 1 * getIncludePatternsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < excludePatterns_.size(); i++) {
dataSize += computeStringSizeNoTag(excludePatterns_.getRaw(i));
}
size += dataSize;
size += 1 * getExcludePatternsList().size();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCsvOptions());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getJsonOptions());
}
if (triggerCase_ == 10) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trigger_);
}
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.Zone.DiscoverySpec)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.Zone.DiscoverySpec other =
(com.google.cloud.dataplex.v1.Zone.DiscoverySpec) obj;
if (getEnabled() != other.getEnabled()) return false;
if (!getIncludePatternsList().equals(other.getIncludePatternsList())) return false;
if (!getExcludePatternsList().equals(other.getExcludePatternsList())) return false;
if (hasCsvOptions() != other.hasCsvOptions()) return false;
if (hasCsvOptions()) {
if (!getCsvOptions().equals(other.getCsvOptions())) return false;
}
if (hasJsonOptions() != other.hasJsonOptions()) return false;
if (hasJsonOptions()) {
if (!getJsonOptions().equals(other.getJsonOptions())) return false;
}
if (!getTriggerCase().equals(other.getTriggerCase())) return false;
switch (triggerCase_) {
case 10:
if (!getSchedule().equals(other.getSchedule())) 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) + ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
if (getIncludePatternsCount() > 0) {
hash = (37 * hash) + INCLUDE_PATTERNS_FIELD_NUMBER;
hash = (53 * hash) + getIncludePatternsList().hashCode();
}
if (getExcludePatternsCount() > 0) {
hash = (37 * hash) + EXCLUDE_PATTERNS_FIELD_NUMBER;
hash = (53 * hash) + getExcludePatternsList().hashCode();
}
if (hasCsvOptions()) {
hash = (37 * hash) + CSV_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getCsvOptions().hashCode();
}
if (hasJsonOptions()) {
hash = (37 * hash) + JSON_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getJsonOptions().hashCode();
}
switch (triggerCase_) {
case 10:
hash = (37 * hash) + SCHEDULE_FIELD_NUMBER;
hash = (53 * hash) + getSchedule().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec 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.Zone.DiscoverySpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec 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.Zone.DiscoverySpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec 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.Zone.DiscoverySpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec 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.Zone.DiscoverySpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec 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.Zone.DiscoverySpec 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.Zone.DiscoverySpec 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.Zone.DiscoverySpec 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;
}
/**
*
*
*
* Settings to manage the metadata discovery and publishing in a zone.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Zone.DiscoverySpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Zone.DiscoverySpec)
com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Zone.DiscoverySpec.class,
com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Zone.DiscoverySpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCsvOptionsFieldBuilder();
getJsonOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
enabled_ = false;
includePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList();
excludePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList();
csvOptions_ = null;
if (csvOptionsBuilder_ != null) {
csvOptionsBuilder_.dispose();
csvOptionsBuilder_ = null;
}
jsonOptions_ = null;
if (jsonOptionsBuilder_ != null) {
jsonOptionsBuilder_.dispose();
jsonOptionsBuilder_ = null;
}
triggerCase_ = 0;
trigger_ = 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_Zone_DiscoverySpec_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.DiscoverySpec getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.DiscoverySpec build() {
com.google.cloud.dataplex.v1.Zone.DiscoverySpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.DiscoverySpec buildPartial() {
com.google.cloud.dataplex.v1.Zone.DiscoverySpec result =
new com.google.cloud.dataplex.v1.Zone.DiscoverySpec(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Zone.DiscoverySpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.enabled_ = enabled_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
includePatterns_.makeImmutable();
result.includePatterns_ = includePatterns_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
excludePatterns_.makeImmutable();
result.excludePatterns_ = excludePatterns_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.csvOptions_ =
csvOptionsBuilder_ == null ? csvOptions_ : csvOptionsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.jsonOptions_ =
jsonOptionsBuilder_ == null ? jsonOptions_ : jsonOptionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataplex.v1.Zone.DiscoverySpec result) {
result.triggerCase_ = triggerCase_;
result.trigger_ = this.trigger_;
}
@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.Zone.DiscoverySpec) {
return mergeFrom((com.google.cloud.dataplex.v1.Zone.DiscoverySpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone.DiscoverySpec other) {
if (other == com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance())
return this;
if (other.getEnabled() != false) {
setEnabled(other.getEnabled());
}
if (!other.includePatterns_.isEmpty()) {
if (includePatterns_.isEmpty()) {
includePatterns_ = other.includePatterns_;
bitField0_ |= 0x00000002;
} else {
ensureIncludePatternsIsMutable();
includePatterns_.addAll(other.includePatterns_);
}
onChanged();
}
if (!other.excludePatterns_.isEmpty()) {
if (excludePatterns_.isEmpty()) {
excludePatterns_ = other.excludePatterns_;
bitField0_ |= 0x00000004;
} else {
ensureExcludePatternsIsMutable();
excludePatterns_.addAll(other.excludePatterns_);
}
onChanged();
}
if (other.hasCsvOptions()) {
mergeCsvOptions(other.getCsvOptions());
}
if (other.hasJsonOptions()) {
mergeJsonOptions(other.getJsonOptions());
}
switch (other.getTriggerCase()) {
case SCHEDULE:
{
triggerCase_ = 10;
trigger_ = other.trigger_;
onChanged();
break;
}
case TRIGGER_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:
{
enabled_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
ensureIncludePatternsIsMutable();
includePatterns_.add(s);
break;
} // case 18
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureExcludePatternsIsMutable();
excludePatterns_.add(s);
break;
} // case 26
case 34:
{
input.readMessage(getCsvOptionsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getJsonOptionsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 82:
{
java.lang.String s = input.readStringRequireUtf8();
triggerCase_ = 10;
trigger_ = s;
break;
} // case 82
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 triggerCase_ = 0;
private java.lang.Object trigger_;
public TriggerCase getTriggerCase() {
return TriggerCase.forNumber(triggerCase_);
}
public Builder clearTrigger() {
triggerCase_ = 0;
trigger_ = null;
onChanged();
return this;
}
private int bitField0_;
private boolean enabled_;
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the includePatterns.
*/
public com.google.protobuf.ProtocolStringList getIncludePatternsList() {
includePatterns_.makeImmutable();
return includePatterns_;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of includePatterns.
*/
public int getIncludePatternsCount() {
return includePatterns_.size();
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index of the element to return.
* @return The includePatterns at the given index.
*/
public java.lang.String getIncludePatterns(int index) {
return includePatterns_.get(index);
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index of the value to return.
* @return The bytes of the includePatterns at the given index.
*/
public com.google.protobuf.ByteString getIncludePatternsBytes(int index) {
return includePatterns_.getByteString(index);
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index to set the value at.
* @param value The includePatterns to set.
* @return This builder for chaining.
*/
public Builder setIncludePatterns(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludePatternsIsMutable();
includePatterns_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The includePatterns to add.
* @return This builder for chaining.
*/
public Builder addIncludePatterns(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludePatternsIsMutable();
includePatterns_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param values The includePatterns to add.
* @return This builder for chaining.
*/
public Builder addAllIncludePatterns(java.lang.Iterable values) {
ensureIncludePatternsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includePatterns_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
* Optional. The list of patterns to apply for selecting data to include
* during discovery if only a subset of the data should considered. For
* Cloud Storage bucket assets, these are interpreted as glob patterns used
* to match object names. For BigQuery dataset assets, these are interpreted
* as patterns to match table names.
*
*
* repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The bytes of the includePatterns to add.
* @return This builder for chaining.
*/
public Builder addIncludePatternsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIncludePatternsIsMutable();
includePatterns_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList excludePatterns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExcludePatternsIsMutable() {
if (!excludePatterns_.isModifiable()) {
excludePatterns_ = new com.google.protobuf.LazyStringArrayList(excludePatterns_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the excludePatterns.
*/
public com.google.protobuf.ProtocolStringList getExcludePatternsList() {
excludePatterns_.makeImmutable();
return excludePatterns_;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of excludePatterns.
*/
public int getExcludePatternsCount() {
return excludePatterns_.size();
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index of the element to return.
* @return The excludePatterns at the given index.
*/
public java.lang.String getExcludePatterns(int index) {
return excludePatterns_.get(index);
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index of the value to return.
* @return The bytes of the excludePatterns at the given index.
*/
public com.google.protobuf.ByteString getExcludePatternsBytes(int index) {
return excludePatterns_.getByteString(index);
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index to set the value at.
* @param value The excludePatterns to set.
* @return This builder for chaining.
*/
public Builder setExcludePatterns(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludePatternsIsMutable();
excludePatterns_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The excludePatterns to add.
* @return This builder for chaining.
*/
public Builder addExcludePatterns(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludePatternsIsMutable();
excludePatterns_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param values The excludePatterns to add.
* @return This builder for chaining.
*/
public Builder addAllExcludePatterns(java.lang.Iterable values) {
ensureExcludePatternsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludePatterns_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
* Optional. The list of patterns to apply for selecting data to exclude
* during discovery. For Cloud Storage bucket assets, these are interpreted
* as glob patterns used to match object names. For BigQuery dataset assets,
* these are interpreted as patterns to match table names.
*
*
* repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The bytes of the excludePatterns to add.
* @return This builder for chaining.
*/
public Builder addExcludePatternsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureExcludePatternsIsMutable();
excludePatterns_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csvOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions,
com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.Builder,
com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsOrBuilder>
csvOptionsBuilder_;
/**
*
*
*
* Optional. Configuration for CSV data.
*
*
*
* .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the csvOptions field is set.
*/
public boolean hasCsvOptions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the schedule field is set.
*/
@java.lang.Override
public boolean hasSchedule() {
return triggerCase_ == 10;
}
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for schedule.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScheduleBytes() {
java.lang.Object ref = "";
if (triggerCase_ == 10) {
ref = trigger_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (triggerCase_ == 10) {
trigger_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The schedule to set.
* @return This builder for chaining.
*/
public Builder setSchedule(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
triggerCase_ = 10;
trigger_ = value;
onChanged();
return this;
}
/**
*
*
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
* Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for
* running discovery periodically. Successive discovery runs must be
* scheduled at least 60 minutes apart. The default value is to run
* discovery every 60 minutes. To explicitly set a timezone to the cron
* tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or
* TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string
* from IANA time zone database. For example, `CRON_TZ=America/New_York 1
* * * * *`, or `TZ=America/New_York 1 * * * *`.
*
*
* string schedule = 10 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for schedule to set.
* @return This builder for chaining.
*/
public Builder setScheduleBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
triggerCase_ = 10;
trigger_ = value;
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.Zone.DiscoverySpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Zone.DiscoverySpec)
private static final com.google.cloud.dataplex.v1.Zone.DiscoverySpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Zone.DiscoverySpec();
}
public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DiscoverySpec 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.Zone.DiscoverySpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* 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 name = 1 [(.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 DISPLAY_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object displayName_ = "";
/**
*
*
*
*
* string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for displayName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
*
* string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATE_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The time when the zone was created.
*
*
* .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The time when the zone was created.
*
*
* string description = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 8;
private int state_ = 0;
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.State getState() {
com.google.cloud.dataplex.v1.State result =
com.google.cloud.dataplex.v1.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 9;
private int type_ = 0;
/**
*
*
*
* Required. Immutable. The type of the zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* Required. Immutable. The type of the zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.Type getType() {
com.google.cloud.dataplex.v1.Zone.Type result =
com.google.cloud.dataplex.v1.Zone.Type.forNumber(type_);
return result == null ? com.google.cloud.dataplex.v1.Zone.Type.UNRECOGNIZED : result;
}
public static final int DISCOVERY_SPEC_FIELD_NUMBER = 103;
private com.google.cloud.dataplex.v1.Zone.DiscoverySpec discoverySpec_;
/**
*
*
*
* Optional. Specification of the discovery feature applied to data in this
* zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the discoverySpec field is set.
*/
@java.lang.Override
public boolean hasDiscoverySpec() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. Specification of the discovery feature applied to data in this
* zone.
*
* A zone represents a logical group of related assets within a lake. A zone can
* be used to map to organizational structure or represent stages of data
* readiness from raw to curated. It provides managing behavior that is shared
* or inherited by all contained assets.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Zone}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Zone)
com.google.cloud.dataplex.v1.ZoneOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 6:
return internalGetMutableLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ResourcesProto
.internal_static_google_cloud_dataplex_v1_Zone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Zone.class,
com.google.cloud.dataplex.v1.Zone.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Zone.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getDiscoverySpecFieldBuilder();
getResourceSpecFieldBuilder();
getAssetStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
displayName_ = "";
uid_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableLabels().clear();
description_ = "";
state_ = 0;
type_ = 0;
discoverySpec_ = null;
if (discoverySpecBuilder_ != null) {
discoverySpecBuilder_.dispose();
discoverySpecBuilder_ = null;
}
resourceSpec_ = null;
if (resourceSpecBuilder_ != null) {
resourceSpecBuilder_.dispose();
resourceSpecBuilder_ = null;
}
assetStatus_ = null;
if (assetStatusBuilder_ != null) {
assetStatusBuilder_.dispose();
assetStatusBuilder_ = 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_Zone_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Zone.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone build() {
com.google.cloud.dataplex.v1.Zone result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone buildPartial() {
com.google.cloud.dataplex.v1.Zone result = new com.google.cloud.dataplex.v1.Zone(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Zone result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.uid_ = uid_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.discoverySpec_ =
discoverySpecBuilder_ == null ? discoverySpec_ : discoverySpecBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.resourceSpec_ =
resourceSpecBuilder_ == null ? resourceSpec_ : resourceSpecBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.assetStatus_ =
assetStatusBuilder_ == null ? assetStatus_ : assetStatusBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@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.Zone) {
return mergeFrom((com.google.cloud.dataplex.v1.Zone) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone other) {
if (other == com.google.cloud.dataplex.v1.Zone.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000020;
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasDiscoverySpec()) {
mergeDiscoverySpec(other.getDiscoverySpec());
}
if (other.hasResourceSpec()) {
mergeResourceSpec(other.getResourceSpec());
}
if (other.hasAssetStatus()) {
mergeAssetStatus(other.getAssetStatus());
}
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 50
case 58:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64:
{
state_ = input.readEnum();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72:
{
type_ = input.readEnum();
bitField0_ |= 0x00000100;
break;
} // case 72
case 826:
{
input.readMessage(getDiscoverySpecFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 826
case 834:
{
input.readMessage(getResourceSpecFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 834
case 842:
{
input.readMessage(getAssetStatusFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 842
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 name_ = "";
/**
*
*
*
* 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 name = 1 [(.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 zone, of the form:
* `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`.
*
*
*
* string name = 1 [(.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_ |= 0x00000001;
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 name = 1 [(.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_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object displayName_ = "";
/**
*
*
*
*
* string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for displayName to set.
* @return This builder for chaining.
*/
public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
displayName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
*
*
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
*
* string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uid_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the zone. This ID will
* be different if the zone is deleted and re-created with the same name.
*
*
* string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. The time when the zone was created.
*
*
*
* .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The time when the zone was created.
*
*
* string description = 7 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.State getState() {
com.google.cloud.dataplex.v1.State result =
com.google.cloud.dataplex.v1.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.dataplex.v1.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the zone.
*
*
* .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000080);
state_ = 0;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*
*
* Required. Immutable. The type of the zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* Required. Immutable. The type of the zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Required. Immutable. The type of the zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Zone.Type getType() {
com.google.cloud.dataplex.v1.Zone.Type result =
com.google.cloud.dataplex.v1.Zone.Type.forNumber(type_);
return result == null ? com.google.cloud.dataplex.v1.Zone.Type.UNRECOGNIZED : result;
}
/**
*
*
*
* Required. Immutable. The type of the zone.
*
*
*
* .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
*
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.cloud.dataplex.v1.Zone.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*