implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.Aspect)
com.google.cloud.dataplex.v1.AspectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_Aspect_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.CatalogProto
.internal_static_google_cloud_dataplex_v1_Aspect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.Aspect.class,
com.google.cloud.dataplex.v1.Aspect.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.Aspect.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();
getDataFieldBuilder();
getAspectSourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
aspectType_ = "";
path_ = "";
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
aspectSource_ = null;
if (aspectSourceBuilder_ != null) {
aspectSourceBuilder_.dispose();
aspectSourceBuilder_ = 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_Aspect_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Aspect getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.Aspect.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Aspect build() {
com.google.cloud.dataplex.v1.Aspect result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.Aspect buildPartial() {
com.google.cloud.dataplex.v1.Aspect result = new com.google.cloud.dataplex.v1.Aspect(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.Aspect result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.aspectType_ = aspectType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.path_ = path_;
}
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.data_ = dataBuilder_ == null ? data_ : dataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.aspectSource_ =
aspectSourceBuilder_ == null ? aspectSource_ : aspectSourceBuilder_.build();
to_bitField0_ |= 0x00000008;
}
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.Aspect) {
return mergeFrom((com.google.cloud.dataplex.v1.Aspect) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.Aspect other) {
if (other == com.google.cloud.dataplex.v1.Aspect.getDefaultInstance()) return this;
if (!other.getAspectType().isEmpty()) {
aspectType_ = other.aspectType_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasAspectSource()) {
mergeAspectSource(other.getAspectSource());
}
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:
{
aspectType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
path_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 66:
{
input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 66
case 74:
{
input.readMessage(getAspectSourceFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 74
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 aspectType_ = "";
/**
*
*
*
* Output only. The resource name of the type used to create this Aspect.
*
*
* string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The aspectType.
*/
public java.lang.String getAspectType() {
java.lang.Object ref = aspectType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
aspectType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The resource name of the type used to create this Aspect.
*
*
* string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for aspectType.
*/
public com.google.protobuf.ByteString getAspectTypeBytes() {
java.lang.Object ref = aspectType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
aspectType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The resource name of the type used to create this Aspect.
*
*
* string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The aspectType to set.
* @return This builder for chaining.
*/
public Builder setAspectType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
aspectType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the type used to create this Aspect.
*
*
* string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearAspectType() {
aspectType_ = getDefaultInstance().getAspectType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the type used to create this Aspect.
*
*
* string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for aspectType to set.
* @return This builder for chaining.
*/
public Builder setAspectTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
aspectType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
*
*
* Output only. The path in the entry under which the aspect is attached.
*
*
* string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The path in the entry under which the aspect is attached.
*
*
* string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for path.
*/
public com.google.protobuf.ByteString getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The path in the entry under which the aspect is attached.
*
*
* string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The path in the entry under which the aspect is attached.
*
*
* string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. The path in the entry under which the aspect is attached.
*
*
* string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000002;
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 Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The time when the Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.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 Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000004);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.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 Aspect was created.
*
*
*
* .google.protobuf.Timestamp create_time = 3 [(.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 Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the updateTime field is set.
*/
public boolean hasUpdateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The time when the Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.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 Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.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_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
if (updateTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& updateTime_ != null
&& updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getUpdateTimeBuilder().mergeFrom(value);
} else {
updateTime_ = value;
}
} else {
updateTimeBuilder_.mergeFrom(value);
}
if (updateTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearUpdateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The time when the Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUpdateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The time when the Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_time = 4 [(.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 Aspect was last updated.
*
*
*
* .google.protobuf.Timestamp update_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>
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.Struct data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>
dataBuilder_;
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*
* @return Whether the data field is set.
*/
public boolean hasData() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*
* @return The data.
*/
public com.google.protobuf.Struct getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setData(com.google.protobuf.Struct value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setData(com.google.protobuf.Struct.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeData(com.google.protobuf.Struct value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& data_ != null
&& data_ != com.google.protobuf.Struct.getDefaultInstance()) {
getDataBuilder().mergeFrom(value);
} else {
data_ = value;
}
} else {
dataBuilder_.mergeFrom(value);
}
if (data_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000010);
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.protobuf.Struct.Builder getDataBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.protobuf.StructOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_;
}
}
/**
*
*
*
* Required. The content of the aspect, according to its aspect type schema.
* This will replace `content`.
* The maximum size of the field is 120KB (encoded as UTF-8).
*
*
* .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct,
com.google.protobuf.Struct.Builder,
com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean());
data_ = null;
}
return dataBuilder_;
}
private com.google.cloud.dataplex.v1.AspectSource aspectSource_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.AspectSource,
com.google.cloud.dataplex.v1.AspectSource.Builder,
com.google.cloud.dataplex.v1.AspectSourceOrBuilder>
aspectSourceBuilder_;
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the aspectSource field is set.
*/
public boolean hasAspectSource() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The aspectSource.
*/
public com.google.cloud.dataplex.v1.AspectSource getAspectSource() {
if (aspectSourceBuilder_ == null) {
return aspectSource_ == null
? com.google.cloud.dataplex.v1.AspectSource.getDefaultInstance()
: aspectSource_;
} else {
return aspectSourceBuilder_.getMessage();
}
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setAspectSource(com.google.cloud.dataplex.v1.AspectSource value) {
if (aspectSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
aspectSource_ = value;
} else {
aspectSourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setAspectSource(
com.google.cloud.dataplex.v1.AspectSource.Builder builderForValue) {
if (aspectSourceBuilder_ == null) {
aspectSource_ = builderForValue.build();
} else {
aspectSourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeAspectSource(com.google.cloud.dataplex.v1.AspectSource value) {
if (aspectSourceBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& aspectSource_ != null
&& aspectSource_ != com.google.cloud.dataplex.v1.AspectSource.getDefaultInstance()) {
getAspectSourceBuilder().mergeFrom(value);
} else {
aspectSource_ = value;
}
} else {
aspectSourceBuilder_.mergeFrom(value);
}
if (aspectSource_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearAspectSource() {
bitField0_ = (bitField0_ & ~0x00000020);
aspectSource_ = null;
if (aspectSourceBuilder_ != null) {
aspectSourceBuilder_.dispose();
aspectSourceBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.AspectSource.Builder getAspectSourceBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAspectSourceFieldBuilder().getBuilder();
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.AspectSourceOrBuilder getAspectSourceOrBuilder() {
if (aspectSourceBuilder_ != null) {
return aspectSourceBuilder_.getMessageOrBuilder();
} else {
return aspectSource_ == null
? com.google.cloud.dataplex.v1.AspectSource.getDefaultInstance()
: aspectSource_;
}
}
/**
*
* .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.AspectSource,
com.google.cloud.dataplex.v1.AspectSource.Builder,
com.google.cloud.dataplex.v1.AspectSourceOrBuilder>
getAspectSourceFieldBuilder() {
if (aspectSourceBuilder_ == null) {
aspectSourceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.AspectSource,
com.google.cloud.dataplex.v1.AspectSource.Builder,
com.google.cloud.dataplex.v1.AspectSourceOrBuilder>(
getAspectSource(), getParentForChildren(), isClean());
aspectSource_ = null;
}
return aspectSourceBuilder_;
}
@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.Aspect)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.Aspect)
private static final com.google.cloud.dataplex.v1.Aspect DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.Aspect();
}
public static com.google.cloud.dataplex.v1.Aspect getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Aspect 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.Aspect getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}