All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.Zone Maven / Gradle / Ivy

/*
 * 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 { /** * * *
     * Zone type not specified.
     * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * * *
     * 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.
     * 
* * CURATED = 2; */ CURATED(2), UNRECOGNIZED(-1), ; /** * * *
     * Zone type not specified.
     * 
* * 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.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The locationType. */ com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType getLocationType(); } /** * * *
   * Settings for resources attached as assets within a zone.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Zone.ResourceSpec} */ public static final class ResourceSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Zone.ResourceSpec) ResourceSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceSpec.newBuilder() to construct. private ResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceSpec() { locationType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceSpec(); } 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); } /** * * *
     * Location type of the resources attached to a zone.
     * 
* * Protobuf enum {@code google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType} */ public enum LocationType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Unspecified location type.
       * 
* * LOCATION_TYPE_UNSPECIFIED = 0; */ LOCATION_TYPE_UNSPECIFIED(0), /** * * *
       * Resources that are associated with a single region.
       * 
* * SINGLE_REGION = 1; */ SINGLE_REGION(1), /** * * *
       * Resources that are associated with a multi-region location.
       * 
* * MULTI_REGION = 2; */ MULTI_REGION(2), UNRECOGNIZED(-1), ; /** * * *
       * Unspecified location type.
       * 
* * 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.
       * 
* * * .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; } /** * * *
       * 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 locationType to set. * @return This builder for chaining. */ public Builder setLocationType( com.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; locationType_ = value.getNumber(); onChanged(); return this; } /** * * *
       * 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 This builder for chaining. */ public Builder clearLocationType() { bitField0_ = (bitField0_ & ~0x00000001); locationType_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.Zone.ResourceSpec) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Zone.ResourceSpec) private static final com.google.cloud.dataplex.v1.Zone.ResourceSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Zone.ResourceSpec(); } public static com.google.cloud.dataplex.v1.Zone.ResourceSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceSpec 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.ResourceSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiscoverySpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Zone.DiscoverySpec) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. Whether discovery is enabled.
     * 
* * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The enabled. */ boolean getEnabled(); /** * * *
     * 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. Configuration for CSV data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The csvOptions. */ com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions getCsvOptions(); /** * * *
     * Optional. Configuration for CSV data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsOrBuilder getCsvOptionsOrBuilder(); /** * * *
     * Optional. Configuration for Json data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the jsonOptions field is set. */ boolean hasJsonOptions(); /** * * *
     * Optional. Configuration for Json data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The jsonOptions. */ com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions getJsonOptions(); /** * * *
     * Optional. Configuration for Json data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder getJsonOptionsOrBuilder(); /** * * *
     * 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 * * * *`.
     * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The schedule. */ java.lang.String getSchedule(); /** * * *
     * 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. */ com.google.protobuf.ByteString getScheduleBytes(); com.google.cloud.dataplex.v1.Zone.DiscoverySpec.TriggerCase getTriggerCase(); } /** * * *
   * Settings to manage the metadata discovery and publishing in a zone.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.Zone.DiscoverySpec} */ public static final class DiscoverySpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Zone.DiscoverySpec) DiscoverySpecOrBuilder { private static final long serialVersionUID = 0L; // Use DiscoverySpec.newBuilder() to construct. private DiscoverySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscoverySpec() { includePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); excludePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoverySpec(); } 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); } public interface CsvOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions) com.google.protobuf.MessageOrBuilder { /** * * *
       * Optional. The number of rows to interpret as header rows that should be
       * skipped when reading data rows.
       * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The headerRows. */ int getHeaderRows(); /** * * *
       * Optional. The delimiter being used to separate values. This defaults to
       * ','.
       * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The delimiter. */ java.lang.String getDelimiter(); /** * * *
       * Optional. The delimiter being used to separate values. This defaults to
       * ','.
       * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for delimiter. */ com.google.protobuf.ByteString getDelimiterBytes(); /** * * *
       * Optional. The character encoding of the data. The default is UTF-8.
       * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ java.lang.String getEncoding(); /** * * *
       * Optional. The character encoding of the data. The default is UTF-8.
       * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for encoding. */ com.google.protobuf.ByteString getEncodingBytes(); /** * * *
       * Optional. Whether to disable the inference of data type for CSV data.
       * If true, all columns will be registered as strings.
       * 
* * bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disableTypeInference. */ boolean getDisableTypeInference(); } /** * * *
     * Describe CSV and similar semi-structured data formats.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions} */ public static final class CsvOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions) CsvOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use CsvOptions.newBuilder() to construct. private CsvOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CsvOptions() { delimiter_ = ""; encoding_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CsvOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.ResourcesProto .internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_CsvOptions_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_CsvOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.class, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.Builder.class); } public static final int HEADER_ROWS_FIELD_NUMBER = 1; private int headerRows_ = 0; /** * * *
       * Optional. The number of rows to interpret as header rows that should be
       * skipped when reading data rows.
       * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The headerRows. */ @java.lang.Override public int getHeaderRows() { return headerRows_; } public static final int DELIMITER_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; /** * * *
       * Optional. The delimiter being used to separate values. This defaults to
       * ','.
       * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The delimiter. */ @java.lang.Override public java.lang.String getDelimiter() { java.lang.Object ref = delimiter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delimiter_ = s; return s; } } /** * * *
       * Optional. The delimiter being used to separate values. This defaults to
       * ','.
       * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for delimiter. */ @java.lang.Override public com.google.protobuf.ByteString getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delimiter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENCODING_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** * * *
       * Optional. The character encoding of the data. The default is UTF-8.
       * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ @java.lang.Override public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } } /** * * *
       * Optional. The character encoding of the data. The default is UTF-8.
       * 
* * string encoding = 3 [(.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 = 4; private boolean disableTypeInference_ = false; /** * * *
       * Optional. Whether to disable the inference of data type for CSV data.
       * If true, all columns will be registered as strings.
       * 
* * bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disableTypeInference. */ @java.lang.Override public boolean getDisableTypeInference() { return disableTypeInference_; } 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 (headerRows_ != 0) { output.writeInt32(1, headerRows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delimiter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, encoding_); } if (disableTypeInference_ != false) { output.writeBool(4, disableTypeInference_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (headerRows_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, headerRows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delimiter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, encoding_); } if (disableTypeInference_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableTypeInference_); } 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.CsvOptions)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions other = (com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions) obj; if (getHeaderRows() != other.getHeaderRows()) return false; if (!getDelimiter().equals(other.getDelimiter())) return false; if (!getEncoding().equals(other.getEncoding())) return false; if (getDisableTypeInference() != other.getDisableTypeInference()) 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) + HEADER_ROWS_FIELD_NUMBER; hash = (53 * hash) + getHeaderRows(); hash = (37 * hash) + DELIMITER_FIELD_NUMBER; hash = (53 * hash) + getDelimiter().hashCode(); hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + DISABLE_TYPE_INFERENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTypeInference()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions 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.CsvOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions 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.CsvOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions 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.CsvOptions 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.CsvOptions 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.CsvOptions 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.CsvOptions 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.CsvOptions 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.CsvOptions 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.CsvOptions 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; } /** * * *
       * Describe CSV and similar semi-structured data formats.
       * 
* * Protobuf type {@code google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions) com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.ResourcesProto .internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_CsvOptions_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_CsvOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.class, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; headerRows_ = 0; delimiter_ = ""; encoding_ = ""; disableTypeInference_ = false; 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_CsvOptions_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions build() { com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions buildPartial() { com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions result = new com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.headerRows_ = headerRows_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.delimiter_ = delimiter_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.encoding_ = encoding_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.disableTypeInference_ = disableTypeInference_; } } @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.CsvOptions) { return mergeFrom((com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions other) { if (other == com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.getDefaultInstance()) return this; if (other.getHeaderRows() != 0) { setHeaderRows(other.getHeaderRows()); } if (!other.getDelimiter().isEmpty()) { delimiter_ = other.delimiter_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getEncoding().isEmpty()) { encoding_ = other.encoding_; bitField0_ |= 0x00000004; onChanged(); } if (other.getDisableTypeInference() != false) { setDisableTypeInference(other.getDisableTypeInference()); } 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: { headerRows_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { delimiter_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { encoding_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { disableTypeInference_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 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 headerRows_; /** * * *
         * Optional. The number of rows to interpret as header rows that should be
         * skipped when reading data rows.
         * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The headerRows. */ @java.lang.Override public int getHeaderRows() { return headerRows_; } /** * * *
         * Optional. The number of rows to interpret as header rows that should be
         * skipped when reading data rows.
         * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The headerRows to set. * @return This builder for chaining. */ public Builder setHeaderRows(int value) { headerRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Optional. The number of rows to interpret as header rows that should be
         * skipped when reading data rows.
         * 
* * int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearHeaderRows() { bitField0_ = (bitField0_ & ~0x00000001); headerRows_ = 0; onChanged(); return this; } private java.lang.Object delimiter_ = ""; /** * * *
         * Optional. The delimiter being used to separate values. This defaults to
         * ','.
         * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The delimiter. */ public java.lang.String getDelimiter() { java.lang.Object ref = delimiter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delimiter_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * Optional. The delimiter being used to separate values. This defaults to
         * ','.
         * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for delimiter. */ public com.google.protobuf.ByteString getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delimiter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Optional. The delimiter being used to separate values. This defaults to
         * ','.
         * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The delimiter to set. * @return This builder for chaining. */ public Builder setDelimiter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } delimiter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Optional. The delimiter being used to separate values. This defaults to
         * ','.
         * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDelimiter() { delimiter_ = getDefaultInstance().getDelimiter(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
         * Optional. The delimiter being used to separate values. This defaults to
         * ','.
         * 
* * string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for delimiter to set. * @return This builder for chaining. */ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delimiter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object encoding_ = ""; /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for encoding. */ public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof 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; } } /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The encoding to set. * @return This builder for chaining. */ public Builder setEncoding(java.lang.String value) { if (value == null) { throw new NullPointerException(); } encoding_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEncoding() { encoding_ = getDefaultInstance().getEncoding(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 3 [(.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_ |= 0x00000004; onChanged(); return this; } private boolean disableTypeInference_; /** * * *
         * Optional. Whether to disable the inference of data type for CSV data.
         * If true, all columns will be registered as strings.
         * 
* * bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disableTypeInference. */ @java.lang.Override public boolean getDisableTypeInference() { return disableTypeInference_; } /** * * *
         * Optional. Whether to disable the inference of data type for CSV data.
         * If true, all columns will be registered as strings.
         * 
* * bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The disableTypeInference to set. * @return This builder for chaining. */ public Builder setDisableTypeInference(boolean value) { disableTypeInference_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
         * Optional. Whether to disable the inference of data type for CSV data.
         * If true, all columns will be registered as strings.
         * 
* * bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDisableTypeInference() { bitField0_ = (bitField0_ & ~0x00000008); 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.CsvOptions) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions) private static final com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions(); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CsvOptions 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.CsvOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface JsonOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions) com.google.protobuf.MessageOrBuilder { /** * * *
       * Optional. The character encoding of the data. The default is UTF-8.
       * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ java.lang.String getEncoding(); /** * * *
       * 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. */ com.google.protobuf.ByteString getEncodingBytes(); /** * * *
       * 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 The disableTypeInference. */ boolean getDisableTypeInference(); } /** * * *
     * Describe JSON data format.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions} */ public static final class JsonOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions) JsonOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use JsonOptions.newBuilder() to construct. private JsonOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private JsonOptions() { encoding_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JsonOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.ResourcesProto .internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_JsonOptions_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_JsonOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.class, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder.class); } public static final int ENCODING_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** * * *
       * Optional. The character encoding of the data. The default is UTF-8.
       * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ @java.lang.Override public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } } /** * * *
       * 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).
       * 
* * bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disableTypeInference. */ @java.lang.Override public boolean getDisableTypeInference() { return disableTypeInference_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encoding_); } if (disableTypeInference_ != false) { output.writeBool(2, disableTypeInference_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encoding_); } if (disableTypeInference_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, disableTypeInference_); } 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.JsonOptions)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions other = (com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions) obj; if (!getEncoding().equals(other.getEncoding())) return false; if (getDisableTypeInference() != other.getDisableTypeInference()) 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) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + DISABLE_TYPE_INFERENCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTypeInference()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions 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.JsonOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions 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.JsonOptions parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions 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.JsonOptions 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.JsonOptions 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.JsonOptions 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.JsonOptions 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.JsonOptions 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.JsonOptions 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.JsonOptions 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; } /** * * *
       * Describe JSON data format.
       * 
* * Protobuf type {@code google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions) com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.ResourcesProto .internal_static_google_cloud_dataplex_v1_Zone_DiscoverySpec_JsonOptions_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_JsonOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.class, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder.class); } // Construct using com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; encoding_ = ""; disableTypeInference_ = false; 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_JsonOptions_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions build() { com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions buildPartial() { com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions result = new com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.encoding_ = encoding_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.disableTypeInference_ = disableTypeInference_; } } @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.JsonOptions) { return mergeFrom((com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions other) { if (other == com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.getDefaultInstance()) return this; if (!other.getEncoding().isEmpty()) { encoding_ = other.encoding_; bitField0_ |= 0x00000001; onChanged(); } if (other.getDisableTypeInference() != false) { setDisableTypeInference(other.getDisableTypeInference()); } 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: { encoding_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { disableTypeInference_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 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 encoding_ = ""; /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * 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. */ public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof 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; } } /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The encoding to set. * @return This builder for chaining. */ public Builder setEncoding(java.lang.String value) { if (value == null) { throw new NullPointerException(); } encoding_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Optional. The character encoding of the data. The default is UTF-8.
         * 
* * string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEncoding() { encoding_ = getDefaultInstance().getEncoding(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
         * 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).
         * 
* * bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disableTypeInference. */ @java.lang.Override public boolean getDisableTypeInference() { return 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).
         * 
* * 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); } /** * * *
     * Optional. Configuration for CSV data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The csvOptions. */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions getCsvOptions() { return csvOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.getDefaultInstance() : csvOptions_; } /** * * *
     * Optional. Configuration for CSV data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsOrBuilder getCsvOptionsOrBuilder() { return csvOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.getDefaultInstance() : csvOptions_; } public static final int JSON_OPTIONS_FIELD_NUMBER = 5; private com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions jsonOptions_; /** * * *
     * Optional. Configuration for Json data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the jsonOptions field is set. */ @java.lang.Override public boolean hasJsonOptions() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Optional. Configuration for Json data.
     * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The jsonOptions. */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions getJsonOptions() { return jsonOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.getDefaultInstance() : jsonOptions_; } /** * * *
     * Optional. Configuration for Json data.
     * 
* * * .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 * * * *`.
     * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = ""; if (triggerCase_ == 10) { ref = trigger_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (triggerCase_ == 10) { trigger_ = s; } return s; } } /** * * *
     * 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_; /** * * *
       * Required. Whether discovery is enabled.
       * 
* * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** * * *
       * Required. Whether discovery is enabled.
       * 
* * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Required. Whether discovery is enabled.
       * 
* * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000001); enabled_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList includePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureIncludePatternsIsMutable() { if (!includePatterns_.isModifiable()) { includePatterns_ = new com.google.protobuf.LazyStringArrayList(includePatterns_); } bitField0_ |= 0x00000002; } /** * * *
       * 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.
       * 
* * repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearIncludePatterns() { includePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (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 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.
       * 
* * repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearExcludePatterns() { excludePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (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 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. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The csvOptions. */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions getCsvOptions() { if (csvOptionsBuilder_ == null) { return csvOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.getDefaultInstance() : csvOptions_; } else { return csvOptionsBuilder_.getMessage(); } } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setCsvOptions( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions value) { if (csvOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } csvOptions_ = value; } else { csvOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setCsvOptions( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.Builder builderForValue) { if (csvOptionsBuilder_ == null) { csvOptions_ = builderForValue.build(); } else { csvOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeCsvOptions( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions value) { if (csvOptionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && csvOptions_ != null && csvOptions_ != com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions .getDefaultInstance()) { getCsvOptionsBuilder().mergeFrom(value); } else { csvOptions_ = value; } } else { csvOptionsBuilder_.mergeFrom(value); } if (csvOptions_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearCsvOptions() { bitField0_ = (bitField0_ & ~0x00000008); csvOptions_ = null; if (csvOptionsBuilder_ != null) { csvOptionsBuilder_.dispose(); csvOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.Builder getCsvOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCsvOptionsFieldBuilder().getBuilder(); } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsOrBuilder getCsvOptionsOrBuilder() { if (csvOptionsBuilder_ != null) { return csvOptionsBuilder_.getMessageOrBuilder(); } else { return csvOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions.getDefaultInstance() : csvOptions_; } } /** * * *
       * Optional. Configuration for CSV data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ 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> getCsvOptionsFieldBuilder() { if (csvOptionsBuilder_ == null) { csvOptionsBuilder_ = new 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>( getCsvOptions(), getParentForChildren(), isClean()); csvOptions_ = null; } return csvOptionsBuilder_; } private com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions jsonOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder> jsonOptionsBuilder_; /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the jsonOptions field is set. */ public boolean hasJsonOptions() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The jsonOptions. */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions getJsonOptions() { if (jsonOptionsBuilder_ == null) { return jsonOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.getDefaultInstance() : jsonOptions_; } else { return jsonOptionsBuilder_.getMessage(); } } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setJsonOptions( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions value) { if (jsonOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } jsonOptions_ = value; } else { jsonOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setJsonOptions( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder builderForValue) { if (jsonOptionsBuilder_ == null) { jsonOptions_ = builderForValue.build(); } else { jsonOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeJsonOptions( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions value) { if (jsonOptionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && jsonOptions_ != null && jsonOptions_ != com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions .getDefaultInstance()) { getJsonOptionsBuilder().mergeFrom(value); } else { jsonOptions_ = value; } } else { jsonOptionsBuilder_.mergeFrom(value); } if (jsonOptions_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearJsonOptions() { bitField0_ = (bitField0_ & ~0x00000010); jsonOptions_ = null; if (jsonOptionsBuilder_ != null) { jsonOptionsBuilder_.dispose(); jsonOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder getJsonOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getJsonOptionsFieldBuilder().getBuilder(); } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder getJsonOptionsOrBuilder() { if (jsonOptionsBuilder_ != null) { return jsonOptionsBuilder_.getMessageOrBuilder(); } else { return jsonOptions_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.getDefaultInstance() : jsonOptions_; } } /** * * *
       * Optional. Configuration for Json data.
       * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder> getJsonOptionsFieldBuilder() { if (jsonOptionsBuilder_ == null) { jsonOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions.Builder, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsOrBuilder>( getJsonOptions(), getParentForChildren(), isClean()); jsonOptions_ = null; } return jsonOptionsBuilder_; } /** * * *
       * 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 * * * *`.
       * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The schedule. */ @java.lang.Override public java.lang.String getSchedule() { java.lang.Object ref = ""; if (triggerCase_ == 10) { ref = trigger_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (triggerCase_ == 10) { trigger_ = s; } return s; } else { return (java.lang.String) 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]; * * @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 * * * *`.
       * 
* * string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearSchedule() { if (triggerCase_ == 10) { triggerCase_ = 0; trigger_ = null; 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 * * * *`.
       * 
* * 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}`.
   * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * 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_ = ""; /** * * *
   * Optional. User friendly display name.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** * * *
   * Optional. User friendly display name.
   * 
* * 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.
   * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ @java.lang.Override public java.lang.String getUid() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** * * *
   * 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.
   * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. The time when the zone was created.
   * 
* * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. The time when the zone was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The time when the zone was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. The time when the zone was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.dataplex.v1.ResourcesProto .internal_static_google_cloud_dataplex_v1_Zone_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
   * Optional. User defined labels for the zone.
   * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
   * Optional. User defined labels for the zone.
   * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
   * Optional. User defined labels for the zone.
   * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Optional. User defined labels for the zone.
   * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DESCRIPTION_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Optional. Description of the zone.
   * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * * *
   * Optional. Description of the zone.
   * 
* * 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.
   * 
* * * .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The discoverySpec. */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpec getDiscoverySpec() { return discoverySpec_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance() : 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]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder getDiscoverySpecOrBuilder() { return discoverySpec_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance() : discoverySpec_; } public static final int RESOURCE_SPEC_FIELD_NUMBER = 104; private com.google.cloud.dataplex.v1.Zone.ResourceSpec resourceSpec_; /** * * *
   * Required. Specification of the resources that are referenced by the assets
   * within this zone.
   * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the resourceSpec field is set. */ @java.lang.Override public boolean hasResourceSpec() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Required. Specification of the resources that are referenced by the assets
   * within this zone.
   * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * * * @return The resourceSpec. */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.ResourceSpec getResourceSpec() { return resourceSpec_ == null ? com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance() : resourceSpec_; } /** * * *
   * Required. Specification of the resources that are referenced by the assets
   * within this zone.
   * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder getResourceSpecOrBuilder() { return resourceSpec_ == null ? com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance() : resourceSpec_; } public static final int ASSET_STATUS_FIELD_NUMBER = 105; private com.google.cloud.dataplex.v1.AssetStatus assetStatus_; /** * * *
   * Output only. Aggregated status of the underlying assets of the zone.
   * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the assetStatus field is set. */ @java.lang.Override public boolean hasAssetStatus() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Output only. Aggregated status of the underlying assets of the zone.
   * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The assetStatus. */ @java.lang.Override public com.google.cloud.dataplex.v1.AssetStatus getAssetStatus() { return assetStatus_ == null ? com.google.cloud.dataplex.v1.AssetStatus.getDefaultInstance() : assetStatus_; } /** * * *
   * Output only. Aggregated status of the underlying assets of the zone.
   * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.cloud.dataplex.v1.AssetStatusOrBuilder getAssetStatusOrBuilder() { return assetStatus_ == null ? com.google.cloud.dataplex.v1.AssetStatus.getDefaultInstance() : assetStatus_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } if (type_ != com.google.cloud.dataplex.v1.Zone.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(9, type_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(103, getDiscoverySpec()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(104, getResourceSpec()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(105, getAssetStatus()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } if (type_ != com.google.cloud.dataplex.v1.Zone.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, type_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(103, getDiscoverySpec()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(104, getResourceSpec()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, getAssetStatus()); } 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)) { return super.equals(obj); } com.google.cloud.dataplex.v1.Zone other = (com.google.cloud.dataplex.v1.Zone) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getUid().equals(other.getUid())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; if (type_ != other.type_) return false; if (hasDiscoverySpec() != other.hasDiscoverySpec()) return false; if (hasDiscoverySpec()) { if (!getDiscoverySpec().equals(other.getDiscoverySpec())) return false; } if (hasResourceSpec() != other.hasResourceSpec()) return false; if (hasResourceSpec()) { if (!getResourceSpec().equals(other.getResourceSpec())) return false; } if (hasAssetStatus() != other.hasAssetStatus()) return false; if (hasAssetStatus()) { if (!getAssetStatus().equals(other.getAssetStatus())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasDiscoverySpec()) { hash = (37 * hash) + DISCOVERY_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDiscoverySpec().hashCode(); } if (hasResourceSpec()) { hash = (37 * hash) + RESOURCE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getResourceSpec().hashCode(); } if (hasAssetStatus()) { hash = (37 * hash) + ASSET_STATUS_FIELD_NUMBER; hash = (53 * hash) + getAssetStatus().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.Zone parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone 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 parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.Zone 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 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 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 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 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 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 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 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; } /** * * *
   * 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}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) 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) = { ... } * * * @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}`.
     * 
* * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (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}`.
     * 
* * * 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_ = ""; /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof 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; } } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. User friendly display name.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Optional. User friendly display name.
     * 
* * 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.
     * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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. */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof 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; } } /** * * *
     * 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.
     * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); bitField0_ = (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.
     * 
* * 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.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. The time when the zone was created.
     * 
* * * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000010); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. The time when the zone was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } bitField0_ |= 0x00000020; onChanged(); return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().getMutableMap().clear(); return this; } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000020; return internalGetMutableLabels().getMutableMap(); } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000020; return this; } /** * * *
     * Optional. User defined labels for the zone.
     * 
* * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000020; return this; } private java.lang.Object description_ = ""; /** * * *
     * Optional. Description of the zone.
     * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. Description of the zone.
     * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof 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; } } /** * * *
     * Optional. Description of the zone.
     * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Optional. Description of the zone.
     * 
* * string description = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Optional. Description of the zone.
     * 
* * 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; } /** * * *
     * 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 This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000100); type_ = 0; onChanged(); return this; } private com.google.cloud.dataplex.v1.Zone.DiscoverySpec discoverySpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.DiscoverySpec, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder, com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder> discoverySpecBuilder_; /** * * *
     * 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. */ public boolean hasDiscoverySpec() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * 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 The discoverySpec. */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec getDiscoverySpec() { if (discoverySpecBuilder_ == null) { return discoverySpec_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance() : discoverySpec_; } else { return discoverySpecBuilder_.getMessage(); } } /** * * *
     * 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]; * */ public Builder setDiscoverySpec(com.google.cloud.dataplex.v1.Zone.DiscoverySpec value) { if (discoverySpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } discoverySpec_ = value; } else { discoverySpecBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * 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]; * */ public Builder setDiscoverySpec( com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder builderForValue) { if (discoverySpecBuilder_ == null) { discoverySpec_ = builderForValue.build(); } else { discoverySpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * 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]; * */ public Builder mergeDiscoverySpec(com.google.cloud.dataplex.v1.Zone.DiscoverySpec value) { if (discoverySpecBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && discoverySpec_ != null && discoverySpec_ != com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance()) { getDiscoverySpecBuilder().mergeFrom(value); } else { discoverySpec_ = value; } } else { discoverySpecBuilder_.mergeFrom(value); } if (discoverySpec_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * 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]; * */ public Builder clearDiscoverySpec() { bitField0_ = (bitField0_ & ~0x00000200); discoverySpec_ = null; if (discoverySpecBuilder_ != null) { discoverySpecBuilder_.dispose(); discoverySpecBuilder_ = null; } onChanged(); return this; } /** * * *
     * 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]; * */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder getDiscoverySpecBuilder() { bitField0_ |= 0x00000200; onChanged(); return getDiscoverySpecFieldBuilder().getBuilder(); } /** * * *
     * 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]; * */ public com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder getDiscoverySpecOrBuilder() { if (discoverySpecBuilder_ != null) { return discoverySpecBuilder_.getMessageOrBuilder(); } else { return discoverySpec_ == null ? com.google.cloud.dataplex.v1.Zone.DiscoverySpec.getDefaultInstance() : 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]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.DiscoverySpec, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder, com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder> getDiscoverySpecFieldBuilder() { if (discoverySpecBuilder_ == null) { discoverySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.DiscoverySpec, com.google.cloud.dataplex.v1.Zone.DiscoverySpec.Builder, com.google.cloud.dataplex.v1.Zone.DiscoverySpecOrBuilder>( getDiscoverySpec(), getParentForChildren(), isClean()); discoverySpec_ = null; } return discoverySpecBuilder_; } private com.google.cloud.dataplex.v1.Zone.ResourceSpec resourceSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.ResourceSpec, com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder, com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder> resourceSpecBuilder_; /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the resourceSpec field is set. */ public boolean hasResourceSpec() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * * * @return The resourceSpec. */ public com.google.cloud.dataplex.v1.Zone.ResourceSpec getResourceSpec() { if (resourceSpecBuilder_ == null) { return resourceSpec_ == null ? com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance() : resourceSpec_; } else { return resourceSpecBuilder_.getMessage(); } } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setResourceSpec(com.google.cloud.dataplex.v1.Zone.ResourceSpec value) { if (resourceSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceSpec_ = value; } else { resourceSpecBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setResourceSpec( com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder builderForValue) { if (resourceSpecBuilder_ == null) { resourceSpec_ = builderForValue.build(); } else { resourceSpecBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeResourceSpec(com.google.cloud.dataplex.v1.Zone.ResourceSpec value) { if (resourceSpecBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && resourceSpec_ != null && resourceSpec_ != com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance()) { getResourceSpecBuilder().mergeFrom(value); } else { resourceSpec_ = value; } } else { resourceSpecBuilder_.mergeFrom(value); } if (resourceSpec_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearResourceSpec() { bitField0_ = (bitField0_ & ~0x00000400); resourceSpec_ = null; if (resourceSpecBuilder_ != null) { resourceSpecBuilder_.dispose(); resourceSpecBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder getResourceSpecBuilder() { bitField0_ |= 0x00000400; onChanged(); return getResourceSpecFieldBuilder().getBuilder(); } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder getResourceSpecOrBuilder() { if (resourceSpecBuilder_ != null) { return resourceSpecBuilder_.getMessageOrBuilder(); } else { return resourceSpec_ == null ? com.google.cloud.dataplex.v1.Zone.ResourceSpec.getDefaultInstance() : resourceSpec_; } } /** * * *
     * Required. Specification of the resources that are referenced by the assets
     * within this zone.
     * 
* * * .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.ResourceSpec, com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder, com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder> getResourceSpecFieldBuilder() { if (resourceSpecBuilder_ == null) { resourceSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Zone.ResourceSpec, com.google.cloud.dataplex.v1.Zone.ResourceSpec.Builder, com.google.cloud.dataplex.v1.Zone.ResourceSpecOrBuilder>( getResourceSpec(), getParentForChildren(), isClean()); resourceSpec_ = null; } return resourceSpecBuilder_; } private com.google.cloud.dataplex.v1.AssetStatus assetStatus_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.AssetStatus, com.google.cloud.dataplex.v1.AssetStatus.Builder, com.google.cloud.dataplex.v1.AssetStatusOrBuilder> assetStatusBuilder_; /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the assetStatus field is set. */ public boolean hasAssetStatus() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The assetStatus. */ public com.google.cloud.dataplex.v1.AssetStatus getAssetStatus() { if (assetStatusBuilder_ == null) { return assetStatus_ == null ? com.google.cloud.dataplex.v1.AssetStatus.getDefaultInstance() : assetStatus_; } else { return assetStatusBuilder_.getMessage(); } } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAssetStatus(com.google.cloud.dataplex.v1.AssetStatus value) { if (assetStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } assetStatus_ = value; } else { assetStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setAssetStatus( com.google.cloud.dataplex.v1.AssetStatus.Builder builderForValue) { if (assetStatusBuilder_ == null) { assetStatus_ = builderForValue.build(); } else { assetStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeAssetStatus(com.google.cloud.dataplex.v1.AssetStatus value) { if (assetStatusBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && assetStatus_ != null && assetStatus_ != com.google.cloud.dataplex.v1.AssetStatus.getDefaultInstance()) { getAssetStatusBuilder().mergeFrom(value); } else { assetStatus_ = value; } } else { assetStatusBuilder_.mergeFrom(value); } if (assetStatus_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearAssetStatus() { bitField0_ = (bitField0_ & ~0x00000800); assetStatus_ = null; if (assetStatusBuilder_ != null) { assetStatusBuilder_.dispose(); assetStatusBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.AssetStatus.Builder getAssetStatusBuilder() { bitField0_ |= 0x00000800; onChanged(); return getAssetStatusFieldBuilder().getBuilder(); } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.dataplex.v1.AssetStatusOrBuilder getAssetStatusOrBuilder() { if (assetStatusBuilder_ != null) { return assetStatusBuilder_.getMessageOrBuilder(); } else { return assetStatus_ == null ? com.google.cloud.dataplex.v1.AssetStatus.getDefaultInstance() : assetStatus_; } } /** * * *
     * Output only. Aggregated status of the underlying assets of the zone.
     * 
* * * .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.AssetStatus, com.google.cloud.dataplex.v1.AssetStatus.Builder, com.google.cloud.dataplex.v1.AssetStatusOrBuilder> getAssetStatusFieldBuilder() { if (assetStatusBuilder_ == null) { assetStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.AssetStatus, com.google.cloud.dataplex.v1.AssetStatus.Builder, com.google.cloud.dataplex.v1.AssetStatusOrBuilder>( getAssetStatus(), getParentForChildren(), isClean()); assetStatus_ = null; } return assetStatusBuilder_; } @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) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Zone) private static final com.google.cloud.dataplex.v1.Zone DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Zone(); } public static com.google.cloud.dataplex.v1.Zone getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Zone 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy