Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/catalog.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.dataplex.v1;
/**
*
*
*
* An entry is a representation of a data asset which can be described by
* various metadata.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Entry}
*/
public final class Entry extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Entry)
EntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entry() {
name_ = "";
entryType_ = "";
parentEntry_ = "";
fullyQualifiedName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Entry();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_Entry_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 9:
return internalGetAspects();
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.CatalogProto
.internal_static_google_cloud_dataplex_v1_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Entry.class,
com.google.cloud.dataplex.v1.Entry.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @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 ENTRY_TYPE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object entryType_ = "";
/**
*
*
*
* Required. Immutable. The resource name of the EntryType used to create this
* Entry.
*
* Output only. The time when the Entry was last updated.
*
*
* .google.protobuf.Timestamp update_time = 6 [(.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 ASPECTS_FIELD_NUMBER = 9;
private static final class AspectsDefaultEntryHolder {
static final com.google.protobuf.MapEntry
defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_Entry_AspectsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.cloud.dataplex.v1.Aspect.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField
aspects_;
private com.google.protobuf.MapField
internalGetAspects() {
if (aspects_ == null) {
return com.google.protobuf.MapField.emptyMapField(AspectsDefaultEntryHolder.defaultEntry);
}
return aspects_;
}
public int getAspectsCount() {
return internalGetAspects().getMap().size();
}
/**
*
*
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
*
*
* map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Aspect getAspectsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetAspects().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int PARENT_ENTRY_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object parentEntry_ = "";
/**
*
*
*
* Optional. Immutable. The resource name of the parent entry.
*
* An entry is a representation of a data asset which can be described by
* various metadata.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.Entry}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Entry)
com.google.cloud.dataplex.v1.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_Entry_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 9:
return internalGetAspects();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 9:
return internalGetMutableAspects();
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.CatalogProto
.internal_static_google_cloud_dataplex_v1_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Entry.class,
com.google.cloud.dataplex.v1.Entry.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Entry.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();
getEntrySourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
entryType_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
internalGetMutableAspects().clear();
parentEntry_ = "";
fullyQualifiedName_ = "";
entrySource_ = null;
if (entrySourceBuilder_ != null) {
entrySourceBuilder_.dispose();
entrySourceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_Entry_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Entry getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Entry.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Entry build() {
com.google.cloud.dataplex.v1.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Entry buildPartial() {
com.google.cloud.dataplex.v1.Entry result = new com.google.cloud.dataplex.v1.Entry(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Entry result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.entryType_ = entryType_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.aspects_ = internalGetAspects().build(AspectsDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.parentEntry_ = parentEntry_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.fullyQualifiedName_ = fullyQualifiedName_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.entrySource_ =
entrySourceBuilder_ == null ? entrySource_ : entrySourceBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.Entry) {
return mergeFrom((com.google.cloud.dataplex.v1.Entry) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Entry other) {
if (other == com.google.cloud.dataplex.v1.Entry.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEntryType().isEmpty()) {
entryType_ = other.entryType_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
internalGetMutableAspects().mergeFrom(other.internalGetAspects());
bitField0_ |= 0x00000010;
if (!other.getParentEntry().isEmpty()) {
parentEntry_ = other.parentEntry_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getFullyQualifiedName().isEmpty()) {
fullyQualifiedName_ = other.fullyQualifiedName_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasEntrySource()) {
mergeEntrySource(other.getEntrySource());
}
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 34:
{
entryType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 34
case 42:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 42
case 50:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 50
case 74:
{
com.google.protobuf.MapEntry
aspects__ =
input.readMessage(
AspectsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableAspects()
.ensureBuilderMap()
.put(aspects__.getKey(), aspects__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 74
case 82:
{
parentEntry_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 82
case 98:
{
fullyQualifiedName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 98
case 122:
{
input.readMessage(getEntrySourceFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 122
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_ = "";
/**
*
*
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @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;
}
}
/**
*
*
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @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;
}
/**
*
*
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Identifier. The relative resource name of the Entry, of the form:
* projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @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 entryType_ = "";
/**
*
*
*
* Required. Immutable. The resource name of the EntryType used to create this
* Entry.
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
*
*
* map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.Aspect getAspectsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetMutableAspects().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return aspectsConverter.build(map.get(key));
}
public Builder clearAspects() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableAspects().clear();
return this;
}
/**
*
*
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*
*
*
* map<string, .google.cloud.dataplex.v1.Aspect> aspects = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder putAllAspects(
java.util.Map values) {
for (java.util.Map.Entry e :
values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableAspects().ensureBuilderMap().putAll(values);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* Optional. The Aspects attached to the Entry.
* The format for the key can be one of the following:
* 1. {projectId}.{locationId}.{aspectTypeId} (if the aspect is attached
* directly to the entry)
* 2. {projectId}.{locationId}.{aspectTypeId}@{path} (if the aspect is
* attached to an entry's path)
*