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.5
package com.google.cloud.dataplex.v1;
/**
*
*
*
* EntrySource contains source system related information for the
* entry.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.EntrySource}
*/
public final class EntrySource extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.EntrySource)
EntrySourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use EntrySource.newBuilder() to construct.
private EntrySource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EntrySource() {
resource_ = "";
system_ = "";
platform_ = "";
displayName_ = "";
description_ = "";
ancestors_ = java.util.Collections.emptyList();
location_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new EntrySource();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_EntrySource_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 7:
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.CatalogProto
.internal_static_google_cloud_dataplex_v1_EntrySource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.EntrySource.class,
com.google.cloud.dataplex.v1.EntrySource.Builder.class);
}
public interface AncestorOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.EntrySource.Ancestor)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The update time of the resource in the source system.
*
*
* .google.protobuf.Timestamp update_time = 11;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
public static final int LOCATION_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object location_ = "";
/**
*
*
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
*
* string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for location.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLocationBytes() {
java.lang.Object ref = location_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
location_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(system_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, system_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, platform_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7);
for (int i = 0; i < ancestors_.size(); i++) {
output.writeMessage(9, ancestors_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(10, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(11, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, location_);
}
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(resource_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(system_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, system_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platform_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, platform_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
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(7, labels__);
}
for (int i = 0; i < ancestors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, ancestors_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, location_);
}
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.EntrySource)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.EntrySource other = (com.google.cloud.dataplex.v1.EntrySource) obj;
if (!getResource().equals(other.getResource())) return false;
if (!getSystem().equals(other.getSystem())) return false;
if (!getPlatform().equals(other.getPlatform())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (!getAncestorsList().equals(other.getAncestorsList())) 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 (!getLocation().equals(other.getLocation())) 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) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
hash = (37 * hash) + SYSTEM_FIELD_NUMBER;
hash = (53 * hash) + getSystem().hashCode();
hash = (37 * hash) + PLATFORM_FIELD_NUMBER;
hash = (53 * hash) + getPlatform().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
if (getAncestorsCount() > 0) {
hash = (37 * hash) + ANCESTORS_FIELD_NUMBER;
hash = (53 * hash) + getAncestorsList().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();
}
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.EntrySource parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.EntrySource 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.EntrySource 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.EntrySource 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.EntrySource 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;
}
/**
*
*
*
* EntrySource contains source system related information for the
* entry.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.EntrySource}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.EntrySource)
com.google.cloud.dataplex.v1.EntrySourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_EntrySource_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 7:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 7:
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.CatalogProto
.internal_static_google_cloud_dataplex_v1_EntrySource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.EntrySource.class,
com.google.cloud.dataplex.v1.EntrySource.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.EntrySource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAncestorsFieldBuilder();
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resource_ = "";
system_ = "";
platform_ = "";
displayName_ = "";
description_ = "";
internalGetMutableLabels().clear();
if (ancestorsBuilder_ == null) {
ancestors_ = java.util.Collections.emptyList();
} else {
ancestors_ = null;
ancestorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
location_ = "";
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_EntrySource_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.EntrySource getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.EntrySource build() {
com.google.cloud.dataplex.v1.EntrySource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.EntrySource buildPartial() {
com.google.cloud.dataplex.v1.EntrySource result =
new com.google.cloud.dataplex.v1.EntrySource(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.dataplex.v1.EntrySource result) {
if (ancestorsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
ancestors_ = java.util.Collections.unmodifiableList(ancestors_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.ancestors_ = ancestors_;
} else {
result.ancestors_ = ancestorsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.dataplex.v1.EntrySource result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resource_ = resource_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.system_ = system_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.platform_ = platform_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.location_ = location_;
}
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.EntrySource) {
return mergeFrom((com.google.cloud.dataplex.v1.EntrySource) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.EntrySource other) {
if (other == com.google.cloud.dataplex.v1.EntrySource.getDefaultInstance()) return this;
if (!other.getResource().isEmpty()) {
resource_ = other.resource_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSystem().isEmpty()) {
system_ = other.system_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getPlatform().isEmpty()) {
platform_ = other.platform_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000010;
onChanged();
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000020;
if (ancestorsBuilder_ == null) {
if (!other.ancestors_.isEmpty()) {
if (ancestors_.isEmpty()) {
ancestors_ = other.ancestors_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureAncestorsIsMutable();
ancestors_.addAll(other.ancestors_);
}
onChanged();
}
} else {
if (!other.ancestors_.isEmpty()) {
if (ancestorsBuilder_.isEmpty()) {
ancestorsBuilder_.dispose();
ancestorsBuilder_ = null;
ancestors_ = other.ancestors_;
bitField0_ = (bitField0_ & ~0x00000040);
ancestorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAncestorsFieldBuilder()
: null;
} else {
ancestorsBuilder_.addAllMessages(other.ancestors_);
}
}
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (!other.getLocation().isEmpty()) {
location_ = other.location_;
bitField0_ |= 0x00000200;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
resource_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
system_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
platform_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 42:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 42
case 50:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 50
case 58:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 58
case 74:
{
com.google.cloud.dataplex.v1.EntrySource.Ancestor m =
input.readMessage(
com.google.cloud.dataplex.v1.EntrySource.Ancestor.parser(),
extensionRegistry);
if (ancestorsBuilder_ == null) {
ensureAncestorsIsMutable();
ancestors_.add(m);
} else {
ancestorsBuilder_.addMessage(m);
}
break;
} // case 74
case 82:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 82
case 90:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 90
case 98:
{
location_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 98
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 resource_ = "";
/**
*
*
*
* The name of the resource in the source system.
* The maximum size of the field is 4000 characters.
*
* The name of the source system.
* The maximum size of the field is 64 characters.
*
*
* string system = 2;
*
* @return The bytes for system.
*/
public com.google.protobuf.ByteString getSystemBytes() {
java.lang.Object ref = system_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
system_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the source system.
* The maximum size of the field is 64 characters.
*
*
* string system = 2;
*
* @param value The system to set.
* @return This builder for chaining.
*/
public Builder setSystem(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
system_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The name of the source system.
* The maximum size of the field is 64 characters.
*
*
* string system = 2;
*
* @return This builder for chaining.
*/
public Builder clearSystem() {
system_ = getDefaultInstance().getSystem();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The name of the source system.
* The maximum size of the field is 64 characters.
*
*
* string system = 2;
*
* @param value The bytes for system to set.
* @return This builder for chaining.
*/
public Builder setSystemBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
system_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object platform_ = "";
/**
*
*
*
* The platform containing the source system.
* The maximum size of the field is 64 characters.
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
*
* string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The location to set.
* @return This builder for chaining.
*/
public Builder setLocation(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
* Output only. Location of the resource in the source system. Entry will be
* searchable by this location. By default, this should match the location of
* the EntryGroup containing this entry. A different value allows capturing
* source location for data external to GCP.
*
*
* string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for location to set.
* @return This builder for chaining.
*/
public Builder setLocationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
location_ = value;
bitField0_ |= 0x00000200;
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.EntrySource)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.EntrySource)
private static final com.google.cloud.dataplex.v1.EntrySource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.EntrySource();
}
public static com.google.cloud.dataplex.v1.EntrySource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EntrySource 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.EntrySource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}