proto.com.cognite.client.dto.Relationship Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdf-sdk-java Show documentation
Show all versions of cdf-sdk-java Show documentation
Java SDK for reading and writing from/to CDF resources.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: relationship.proto
package com.cognite.client.dto;
/**
* Protobuf type {@code com.cognite.beam.proto.Relationship}
*/
public final class Relationship extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.Relationship)
RelationshipOrBuilder {
private static final long serialVersionUID = 0L;
// Use Relationship.newBuilder() to construct.
private Relationship(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Relationship() {
externalId_ = "";
sourceExternalId_ = "";
sourceType_ = 0;
targetExternalId_ = "";
targetType_ = 0;
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Relationship();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Relationship(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
externalId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
sourceExternalId_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
sourceType_ = rawValue;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
targetExternalId_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
targetType_ = rawValue;
break;
}
case 48: {
bitField0_ |= 0x00000004;
startTime_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000008;
endTime_ = input.readInt64();
break;
}
case 69: {
bitField0_ |= 0x00000010;
confidence_ = input.readFloat();
break;
}
case 72: {
bitField0_ |= 0x00000020;
dataSetId_ = input.readInt64();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000040;
}
labels_.add(s);
break;
}
case 88: {
bitField0_ |= 0x00000040;
createdTime_ = input.readInt64();
break;
}
case 96: {
bitField0_ |= 0x00000080;
lastUpdatedTime_ = input.readInt64();
break;
}
case 106: {
com.cognite.client.dto.Asset.Builder subBuilder = null;
if (sourceCase_ == 13) {
subBuilder = ((com.cognite.client.dto.Asset) source_).toBuilder();
}
source_ =
input.readMessage(com.cognite.client.dto.Asset.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.Asset) source_);
source_ = subBuilder.buildPartial();
}
sourceCase_ = 13;
break;
}
case 114: {
com.cognite.client.dto.Event.Builder subBuilder = null;
if (sourceCase_ == 14) {
subBuilder = ((com.cognite.client.dto.Event) source_).toBuilder();
}
source_ =
input.readMessage(com.cognite.client.dto.Event.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.Event) source_);
source_ = subBuilder.buildPartial();
}
sourceCase_ = 14;
break;
}
case 122: {
com.cognite.client.dto.TimeseriesMetadata.Builder subBuilder = null;
if (sourceCase_ == 15) {
subBuilder = ((com.cognite.client.dto.TimeseriesMetadata) source_).toBuilder();
}
source_ =
input.readMessage(com.cognite.client.dto.TimeseriesMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.TimeseriesMetadata) source_);
source_ = subBuilder.buildPartial();
}
sourceCase_ = 15;
break;
}
case 130: {
com.cognite.client.dto.FileMetadata.Builder subBuilder = null;
if (sourceCase_ == 16) {
subBuilder = ((com.cognite.client.dto.FileMetadata) source_).toBuilder();
}
source_ =
input.readMessage(com.cognite.client.dto.FileMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.FileMetadata) source_);
source_ = subBuilder.buildPartial();
}
sourceCase_ = 16;
break;
}
case 138: {
com.cognite.client.dto.SequenceMetadata.Builder subBuilder = null;
if (sourceCase_ == 17) {
subBuilder = ((com.cognite.client.dto.SequenceMetadata) source_).toBuilder();
}
source_ =
input.readMessage(com.cognite.client.dto.SequenceMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.SequenceMetadata) source_);
source_ = subBuilder.buildPartial();
}
sourceCase_ = 17;
break;
}
case 146: {
com.cognite.client.dto.Asset.Builder subBuilder = null;
if (targetCase_ == 18) {
subBuilder = ((com.cognite.client.dto.Asset) target_).toBuilder();
}
target_ =
input.readMessage(com.cognite.client.dto.Asset.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.Asset) target_);
target_ = subBuilder.buildPartial();
}
targetCase_ = 18;
break;
}
case 154: {
com.cognite.client.dto.Event.Builder subBuilder = null;
if (targetCase_ == 19) {
subBuilder = ((com.cognite.client.dto.Event) target_).toBuilder();
}
target_ =
input.readMessage(com.cognite.client.dto.Event.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.Event) target_);
target_ = subBuilder.buildPartial();
}
targetCase_ = 19;
break;
}
case 162: {
com.cognite.client.dto.TimeseriesMetadata.Builder subBuilder = null;
if (targetCase_ == 20) {
subBuilder = ((com.cognite.client.dto.TimeseriesMetadata) target_).toBuilder();
}
target_ =
input.readMessage(com.cognite.client.dto.TimeseriesMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.TimeseriesMetadata) target_);
target_ = subBuilder.buildPartial();
}
targetCase_ = 20;
break;
}
case 170: {
com.cognite.client.dto.FileMetadata.Builder subBuilder = null;
if (targetCase_ == 21) {
subBuilder = ((com.cognite.client.dto.FileMetadata) target_).toBuilder();
}
target_ =
input.readMessage(com.cognite.client.dto.FileMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.FileMetadata) target_);
target_ = subBuilder.buildPartial();
}
targetCase_ = 21;
break;
}
case 178: {
com.cognite.client.dto.SequenceMetadata.Builder subBuilder = null;
if (targetCase_ == 22) {
subBuilder = ((com.cognite.client.dto.SequenceMetadata) target_).toBuilder();
}
target_ =
input.readMessage(com.cognite.client.dto.SequenceMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.cognite.client.dto.SequenceMetadata) target_);
target_ = subBuilder.buildPartial();
}
targetCase_ = 22;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000040) != 0)) {
labels_ = labels_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.RelationshipOuterClass.internal_static_com_cognite_beam_proto_Relationship_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.RelationshipOuterClass.internal_static_com_cognite_beam_proto_Relationship_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Relationship.class, com.cognite.client.dto.Relationship.Builder.class);
}
/**
* Protobuf enum {@code com.cognite.beam.proto.Relationship.ResourceType}
*/
public enum ResourceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ASSET = 0;
*/
ASSET(0),
/**
* TIME_SERIES = 1;
*/
TIME_SERIES(1),
/**
* FILE = 2;
*/
FILE(2),
/**
* EVENT = 3;
*/
EVENT(3),
/**
* SEQUENCE = 4;
*/
SEQUENCE(4),
UNRECOGNIZED(-1),
;
/**
* ASSET = 0;
*/
public static final int ASSET_VALUE = 0;
/**
* TIME_SERIES = 1;
*/
public static final int TIME_SERIES_VALUE = 1;
/**
* FILE = 2;
*/
public static final int FILE_VALUE = 2;
/**
* EVENT = 3;
*/
public static final int EVENT_VALUE = 3;
/**
* SEQUENCE = 4;
*/
public static final int SEQUENCE_VALUE = 4;
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 ResourceType 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 ResourceType forNumber(int value) {
switch (value) {
case 0: return ASSET;
case 1: return TIME_SERIES;
case 2: return FILE;
case 3: return EVENT;
case 4: return SEQUENCE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ResourceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ResourceType findValueByNumber(int number) {
return ResourceType.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.cognite.client.dto.Relationship.getDescriptor().getEnumTypes().get(0);
}
private static final ResourceType[] VALUES = values();
public static ResourceType 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 ResourceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.cognite.beam.proto.Relationship.ResourceType)
}
private int bitField0_;
private int sourceCase_ = 0;
private java.lang.Object source_;
public enum SourceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SOURCE_ASSET(13),
SOURCE_EVENT(14),
SOURCE_TIMESERIES(15),
SOURCE_FILE(16),
SOURCE_SEQUENCE(17),
SOURCE_NOT_SET(0);
private final int value;
private SourceCase(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 SourceCase valueOf(int value) {
return forNumber(value);
}
public static SourceCase forNumber(int value) {
switch (value) {
case 13: return SOURCE_ASSET;
case 14: return SOURCE_EVENT;
case 15: return SOURCE_TIMESERIES;
case 16: return SOURCE_FILE;
case 17: return SOURCE_SEQUENCE;
case 0: return SOURCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SourceCase
getSourceCase() {
return SourceCase.forNumber(
sourceCase_);
}
private int targetCase_ = 0;
private java.lang.Object target_;
public enum TargetCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TARGET_ASSET(18),
TARGET_EVENT(19),
TARGET_TIMESERIES(20),
TARGET_FILE(21),
TARGET_SEQUENCE(22),
TARGET_NOT_SET(0);
private final int value;
private TargetCase(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 TargetCase valueOf(int value) {
return forNumber(value);
}
public static TargetCase forNumber(int value) {
switch (value) {
case 18: return TARGET_ASSET;
case 19: return TARGET_EVENT;
case 20: return TARGET_TIMESERIES;
case 21: return TARGET_FILE;
case 22: return TARGET_SEQUENCE;
case 0: return TARGET_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TargetCase
getTargetCase() {
return TargetCase.forNumber(
targetCase_);
}
public static final int EXTERNAL_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object externalId_;
/**
* string external_id = 1;
* @return The externalId.
*/
@java.lang.Override
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
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();
externalId_ = s;
return s;
}
}
/**
* string external_id = 1;
* @return The bytes for externalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_EXTERNAL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object sourceExternalId_;
/**
* optional string source_external_id = 2;
* @return Whether the sourceExternalId field is set.
*/
@java.lang.Override
public boolean hasSourceExternalId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string source_external_id = 2;
* @return The sourceExternalId.
*/
@java.lang.Override
public java.lang.String getSourceExternalId() {
java.lang.Object ref = sourceExternalId_;
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();
sourceExternalId_ = s;
return s;
}
}
/**
* optional string source_external_id = 2;
* @return The bytes for sourceExternalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceExternalIdBytes() {
java.lang.Object ref = sourceExternalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceExternalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_TYPE_FIELD_NUMBER = 3;
private int sourceType_;
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @return The enum numeric value on the wire for sourceType.
*/
@java.lang.Override public int getSourceTypeValue() {
return sourceType_;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @return The sourceType.
*/
@java.lang.Override public com.cognite.client.dto.Relationship.ResourceType getSourceType() {
@SuppressWarnings("deprecation")
com.cognite.client.dto.Relationship.ResourceType result = com.cognite.client.dto.Relationship.ResourceType.valueOf(sourceType_);
return result == null ? com.cognite.client.dto.Relationship.ResourceType.UNRECOGNIZED : result;
}
public static final int TARGET_EXTERNAL_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object targetExternalId_;
/**
* optional string target_external_id = 4;
* @return Whether the targetExternalId field is set.
*/
@java.lang.Override
public boolean hasTargetExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string target_external_id = 4;
* @return The targetExternalId.
*/
@java.lang.Override
public java.lang.String getTargetExternalId() {
java.lang.Object ref = targetExternalId_;
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();
targetExternalId_ = s;
return s;
}
}
/**
* optional string target_external_id = 4;
* @return The bytes for targetExternalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetExternalIdBytes() {
java.lang.Object ref = targetExternalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetExternalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_TYPE_FIELD_NUMBER = 5;
private int targetType_;
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @return The enum numeric value on the wire for targetType.
*/
@java.lang.Override public int getTargetTypeValue() {
return targetType_;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @return The targetType.
*/
@java.lang.Override public com.cognite.client.dto.Relationship.ResourceType getTargetType() {
@SuppressWarnings("deprecation")
com.cognite.client.dto.Relationship.ResourceType result = com.cognite.client.dto.Relationship.ResourceType.valueOf(targetType_);
return result == null ? com.cognite.client.dto.Relationship.ResourceType.UNRECOGNIZED : result;
}
public static final int START_TIME_FIELD_NUMBER = 6;
private long startTime_;
/**
* optional int64 start_time = 6;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 start_time = 6;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int END_TIME_FIELD_NUMBER = 7;
private long endTime_;
/**
* optional int64 end_time = 7;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 end_time = 7;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
public static final int CONFIDENCE_FIELD_NUMBER = 8;
private float confidence_;
/**
* optional float confidence = 8;
* @return Whether the confidence field is set.
*/
@java.lang.Override
public boolean hasConfidence() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional float confidence = 8;
* @return The confidence.
*/
@java.lang.Override
public float getConfidence() {
return confidence_;
}
public static final int DATA_SET_ID_FIELD_NUMBER = 9;
private long dataSetId_;
/**
* optional int64 data_set_id = 9;
* @return Whether the dataSetId field is set.
*/
@java.lang.Override
public boolean hasDataSetId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 data_set_id = 9;
* @return The dataSetId.
*/
@java.lang.Override
public long getDataSetId() {
return dataSetId_;
}
public static final int LABELS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList labels_;
/**
* repeated string labels = 10;
* @return A list containing the labels.
*/
public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_;
}
/**
* repeated string labels = 10;
* @return The count of labels.
*/
public int getLabelsCount() {
return labels_.size();
}
/**
* repeated string labels = 10;
* @param index The index of the element to return.
* @return The labels at the given index.
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
* repeated string labels = 10;
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
public static final int CREATED_TIME_FIELD_NUMBER = 11;
private long createdTime_;
/**
* optional int64 created_time = 11;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 created_time = 11;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
public static final int LAST_UPDATED_TIME_FIELD_NUMBER = 12;
private long lastUpdatedTime_;
/**
* optional int64 last_updated_time = 12;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 last_updated_time = 12;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
public static final int SOURCE_ASSET_FIELD_NUMBER = 13;
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
* @return Whether the sourceAsset field is set.
*/
@java.lang.Override
public boolean hasSourceAsset() {
return sourceCase_ == 13;
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
* @return The sourceAsset.
*/
@java.lang.Override
public com.cognite.client.dto.Asset getSourceAsset() {
if (sourceCase_ == 13) {
return (com.cognite.client.dto.Asset) source_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
@java.lang.Override
public com.cognite.client.dto.AssetOrBuilder getSourceAssetOrBuilder() {
if (sourceCase_ == 13) {
return (com.cognite.client.dto.Asset) source_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
public static final int SOURCE_EVENT_FIELD_NUMBER = 14;
/**
* .com.cognite.beam.proto.Event source_event = 14;
* @return Whether the sourceEvent field is set.
*/
@java.lang.Override
public boolean hasSourceEvent() {
return sourceCase_ == 14;
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
* @return The sourceEvent.
*/
@java.lang.Override
public com.cognite.client.dto.Event getSourceEvent() {
if (sourceCase_ == 14) {
return (com.cognite.client.dto.Event) source_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
@java.lang.Override
public com.cognite.client.dto.EventOrBuilder getSourceEventOrBuilder() {
if (sourceCase_ == 14) {
return (com.cognite.client.dto.Event) source_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
public static final int SOURCE_TIMESERIES_FIELD_NUMBER = 15;
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
* @return Whether the sourceTimeseries field is set.
*/
@java.lang.Override
public boolean hasSourceTimeseries() {
return sourceCase_ == 15;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
* @return The sourceTimeseries.
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadata getSourceTimeseries() {
if (sourceCase_ == 15) {
return (com.cognite.client.dto.TimeseriesMetadata) source_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadataOrBuilder getSourceTimeseriesOrBuilder() {
if (sourceCase_ == 15) {
return (com.cognite.client.dto.TimeseriesMetadata) source_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
public static final int SOURCE_FILE_FIELD_NUMBER = 16;
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
* @return Whether the sourceFile field is set.
*/
@java.lang.Override
public boolean hasSourceFile() {
return sourceCase_ == 16;
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
* @return The sourceFile.
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadata getSourceFile() {
if (sourceCase_ == 16) {
return (com.cognite.client.dto.FileMetadata) source_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadataOrBuilder getSourceFileOrBuilder() {
if (sourceCase_ == 16) {
return (com.cognite.client.dto.FileMetadata) source_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
public static final int SOURCE_SEQUENCE_FIELD_NUMBER = 17;
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
* @return Whether the sourceSequence field is set.
*/
@java.lang.Override
public boolean hasSourceSequence() {
return sourceCase_ == 17;
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
* @return The sourceSequence.
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadata getSourceSequence() {
if (sourceCase_ == 17) {
return (com.cognite.client.dto.SequenceMetadata) source_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadataOrBuilder getSourceSequenceOrBuilder() {
if (sourceCase_ == 17) {
return (com.cognite.client.dto.SequenceMetadata) source_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
public static final int TARGET_ASSET_FIELD_NUMBER = 18;
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
* @return Whether the targetAsset field is set.
*/
@java.lang.Override
public boolean hasTargetAsset() {
return targetCase_ == 18;
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
* @return The targetAsset.
*/
@java.lang.Override
public com.cognite.client.dto.Asset getTargetAsset() {
if (targetCase_ == 18) {
return (com.cognite.client.dto.Asset) target_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
@java.lang.Override
public com.cognite.client.dto.AssetOrBuilder getTargetAssetOrBuilder() {
if (targetCase_ == 18) {
return (com.cognite.client.dto.Asset) target_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
public static final int TARGET_EVENT_FIELD_NUMBER = 19;
/**
* .com.cognite.beam.proto.Event target_event = 19;
* @return Whether the targetEvent field is set.
*/
@java.lang.Override
public boolean hasTargetEvent() {
return targetCase_ == 19;
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
* @return The targetEvent.
*/
@java.lang.Override
public com.cognite.client.dto.Event getTargetEvent() {
if (targetCase_ == 19) {
return (com.cognite.client.dto.Event) target_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
@java.lang.Override
public com.cognite.client.dto.EventOrBuilder getTargetEventOrBuilder() {
if (targetCase_ == 19) {
return (com.cognite.client.dto.Event) target_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
public static final int TARGET_TIMESERIES_FIELD_NUMBER = 20;
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
* @return Whether the targetTimeseries field is set.
*/
@java.lang.Override
public boolean hasTargetTimeseries() {
return targetCase_ == 20;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
* @return The targetTimeseries.
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadata getTargetTimeseries() {
if (targetCase_ == 20) {
return (com.cognite.client.dto.TimeseriesMetadata) target_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadataOrBuilder getTargetTimeseriesOrBuilder() {
if (targetCase_ == 20) {
return (com.cognite.client.dto.TimeseriesMetadata) target_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
public static final int TARGET_FILE_FIELD_NUMBER = 21;
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
* @return Whether the targetFile field is set.
*/
@java.lang.Override
public boolean hasTargetFile() {
return targetCase_ == 21;
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
* @return The targetFile.
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadata getTargetFile() {
if (targetCase_ == 21) {
return (com.cognite.client.dto.FileMetadata) target_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadataOrBuilder getTargetFileOrBuilder() {
if (targetCase_ == 21) {
return (com.cognite.client.dto.FileMetadata) target_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
public static final int TARGET_SEQUENCE_FIELD_NUMBER = 22;
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
* @return Whether the targetSequence field is set.
*/
@java.lang.Override
public boolean hasTargetSequence() {
return targetCase_ == 22;
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
* @return The targetSequence.
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadata getTargetSequence() {
if (targetCase_ == 22) {
return (com.cognite.client.dto.SequenceMetadata) target_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadataOrBuilder getTargetSequenceOrBuilder() {
if (targetCase_ == 22) {
return (com.cognite.client.dto.SequenceMetadata) target_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
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(externalId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceExternalId_);
}
if (sourceType_ != com.cognite.client.dto.Relationship.ResourceType.ASSET.getNumber()) {
output.writeEnum(3, sourceType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, targetExternalId_);
}
if (targetType_ != com.cognite.client.dto.Relationship.ResourceType.ASSET.getNumber()) {
output.writeEnum(5, targetType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(6, startTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(7, endTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeFloat(8, confidence_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(9, dataSetId_);
}
for (int i = 0; i < labels_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, labels_.getRaw(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(11, createdTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(12, lastUpdatedTime_);
}
if (sourceCase_ == 13) {
output.writeMessage(13, (com.cognite.client.dto.Asset) source_);
}
if (sourceCase_ == 14) {
output.writeMessage(14, (com.cognite.client.dto.Event) source_);
}
if (sourceCase_ == 15) {
output.writeMessage(15, (com.cognite.client.dto.TimeseriesMetadata) source_);
}
if (sourceCase_ == 16) {
output.writeMessage(16, (com.cognite.client.dto.FileMetadata) source_);
}
if (sourceCase_ == 17) {
output.writeMessage(17, (com.cognite.client.dto.SequenceMetadata) source_);
}
if (targetCase_ == 18) {
output.writeMessage(18, (com.cognite.client.dto.Asset) target_);
}
if (targetCase_ == 19) {
output.writeMessage(19, (com.cognite.client.dto.Event) target_);
}
if (targetCase_ == 20) {
output.writeMessage(20, (com.cognite.client.dto.TimeseriesMetadata) target_);
}
if (targetCase_ == 21) {
output.writeMessage(21, (com.cognite.client.dto.FileMetadata) target_);
}
if (targetCase_ == 22) {
output.writeMessage(22, (com.cognite.client.dto.SequenceMetadata) target_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externalId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceExternalId_);
}
if (sourceType_ != com.cognite.client.dto.Relationship.ResourceType.ASSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, sourceType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, targetExternalId_);
}
if (targetType_ != com.cognite.client.dto.Relationship.ResourceType.ASSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, targetType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, startTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, endTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(8, confidence_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, dataSetId_);
}
{
int dataSize = 0;
for (int i = 0; i < labels_.size(); i++) {
dataSize += computeStringSizeNoTag(labels_.getRaw(i));
}
size += dataSize;
size += 1 * getLabelsList().size();
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, createdTime_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, lastUpdatedTime_);
}
if (sourceCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.cognite.client.dto.Asset) source_);
}
if (sourceCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (com.cognite.client.dto.Event) source_);
}
if (sourceCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.cognite.client.dto.TimeseriesMetadata) source_);
}
if (sourceCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (com.cognite.client.dto.FileMetadata) source_);
}
if (sourceCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, (com.cognite.client.dto.SequenceMetadata) source_);
}
if (targetCase_ == 18) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, (com.cognite.client.dto.Asset) target_);
}
if (targetCase_ == 19) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, (com.cognite.client.dto.Event) target_);
}
if (targetCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, (com.cognite.client.dto.TimeseriesMetadata) target_);
}
if (targetCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, (com.cognite.client.dto.FileMetadata) target_);
}
if (targetCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, (com.cognite.client.dto.SequenceMetadata) target_);
}
size += unknownFields.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.cognite.client.dto.Relationship)) {
return super.equals(obj);
}
com.cognite.client.dto.Relationship other = (com.cognite.client.dto.Relationship) obj;
if (!getExternalId()
.equals(other.getExternalId())) return false;
if (hasSourceExternalId() != other.hasSourceExternalId()) return false;
if (hasSourceExternalId()) {
if (!getSourceExternalId()
.equals(other.getSourceExternalId())) return false;
}
if (sourceType_ != other.sourceType_) return false;
if (hasTargetExternalId() != other.hasTargetExternalId()) return false;
if (hasTargetExternalId()) {
if (!getTargetExternalId()
.equals(other.getTargetExternalId())) return false;
}
if (targetType_ != other.targetType_) return false;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (getStartTime()
!= other.getStartTime()) return false;
}
if (hasEndTime() != other.hasEndTime()) return false;
if (hasEndTime()) {
if (getEndTime()
!= other.getEndTime()) return false;
}
if (hasConfidence() != other.hasConfidence()) return false;
if (hasConfidence()) {
if (java.lang.Float.floatToIntBits(getConfidence())
!= java.lang.Float.floatToIntBits(
other.getConfidence())) return false;
}
if (hasDataSetId() != other.hasDataSetId()) return false;
if (hasDataSetId()) {
if (getDataSetId()
!= other.getDataSetId()) return false;
}
if (!getLabelsList()
.equals(other.getLabelsList())) return false;
if (hasCreatedTime() != other.hasCreatedTime()) return false;
if (hasCreatedTime()) {
if (getCreatedTime()
!= other.getCreatedTime()) return false;
}
if (hasLastUpdatedTime() != other.hasLastUpdatedTime()) return false;
if (hasLastUpdatedTime()) {
if (getLastUpdatedTime()
!= other.getLastUpdatedTime()) return false;
}
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 13:
if (!getSourceAsset()
.equals(other.getSourceAsset())) return false;
break;
case 14:
if (!getSourceEvent()
.equals(other.getSourceEvent())) return false;
break;
case 15:
if (!getSourceTimeseries()
.equals(other.getSourceTimeseries())) return false;
break;
case 16:
if (!getSourceFile()
.equals(other.getSourceFile())) return false;
break;
case 17:
if (!getSourceSequence()
.equals(other.getSourceSequence())) return false;
break;
case 0:
default:
}
if (!getTargetCase().equals(other.getTargetCase())) return false;
switch (targetCase_) {
case 18:
if (!getTargetAsset()
.equals(other.getTargetAsset())) return false;
break;
case 19:
if (!getTargetEvent()
.equals(other.getTargetEvent())) return false;
break;
case 20:
if (!getTargetTimeseries()
.equals(other.getTargetTimeseries())) return false;
break;
case 21:
if (!getTargetFile()
.equals(other.getTargetFile())) return false;
break;
case 22:
if (!getTargetSequence()
.equals(other.getTargetSequence())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) 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) + EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getExternalId().hashCode();
if (hasSourceExternalId()) {
hash = (37 * hash) + SOURCE_EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getSourceExternalId().hashCode();
}
hash = (37 * hash) + SOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + sourceType_;
if (hasTargetExternalId()) {
hash = (37 * hash) + TARGET_EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getTargetExternalId().hashCode();
}
hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER;
hash = (53 * hash) + targetType_;
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
}
if (hasEndTime()) {
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndTime());
}
if (hasConfidence()) {
hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getConfidence());
}
if (hasDataSetId()) {
hash = (37 * hash) + DATA_SET_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataSetId());
}
if (getLabelsCount() > 0) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + getLabelsList().hashCode();
}
if (hasCreatedTime()) {
hash = (37 * hash) + CREATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreatedTime());
}
if (hasLastUpdatedTime()) {
hash = (37 * hash) + LAST_UPDATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLastUpdatedTime());
}
switch (sourceCase_) {
case 13:
hash = (37 * hash) + SOURCE_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getSourceAsset().hashCode();
break;
case 14:
hash = (37 * hash) + SOURCE_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getSourceEvent().hashCode();
break;
case 15:
hash = (37 * hash) + SOURCE_TIMESERIES_FIELD_NUMBER;
hash = (53 * hash) + getSourceTimeseries().hashCode();
break;
case 16:
hash = (37 * hash) + SOURCE_FILE_FIELD_NUMBER;
hash = (53 * hash) + getSourceFile().hashCode();
break;
case 17:
hash = (37 * hash) + SOURCE_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + getSourceSequence().hashCode();
break;
case 0:
default:
}
switch (targetCase_) {
case 18:
hash = (37 * hash) + TARGET_ASSET_FIELD_NUMBER;
hash = (53 * hash) + getTargetAsset().hashCode();
break;
case 19:
hash = (37 * hash) + TARGET_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getTargetEvent().hashCode();
break;
case 20:
hash = (37 * hash) + TARGET_TIMESERIES_FIELD_NUMBER;
hash = (53 * hash) + getTargetTimeseries().hashCode();
break;
case 21:
hash = (37 * hash) + TARGET_FILE_FIELD_NUMBER;
hash = (53 * hash) + getTargetFile().hashCode();
break;
case 22:
hash = (37 * hash) + TARGET_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + getTargetSequence().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.Relationship parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Relationship parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Relationship parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Relationship parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Relationship parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.Relationship parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.Relationship parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Relationship 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.cognite.client.dto.Relationship parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Relationship 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.cognite.client.dto.Relationship parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.Relationship 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.cognite.client.dto.Relationship 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;
}
/**
* Protobuf type {@code com.cognite.beam.proto.Relationship}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.Relationship)
com.cognite.client.dto.RelationshipOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.RelationshipOuterClass.internal_static_com_cognite_beam_proto_Relationship_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.RelationshipOuterClass.internal_static_com_cognite_beam_proto_Relationship_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.Relationship.class, com.cognite.client.dto.Relationship.Builder.class);
}
// Construct using com.cognite.client.dto.Relationship.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
externalId_ = "";
sourceExternalId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
sourceType_ = 0;
targetExternalId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
targetType_ = 0;
startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
endTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
confidence_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
dataSetId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
createdTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
lastUpdatedTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
sourceCase_ = 0;
source_ = null;
targetCase_ = 0;
target_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.RelationshipOuterClass.internal_static_com_cognite_beam_proto_Relationship_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.Relationship getDefaultInstanceForType() {
return com.cognite.client.dto.Relationship.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.Relationship build() {
com.cognite.client.dto.Relationship result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.Relationship buildPartial() {
com.cognite.client.dto.Relationship result = new com.cognite.client.dto.Relationship(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.externalId_ = externalId_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.sourceExternalId_ = sourceExternalId_;
result.sourceType_ = sourceType_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.targetExternalId_ = targetExternalId_;
result.targetType_ = targetType_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.startTime_ = startTime_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.endTime_ = endTime_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.confidence_ = confidence_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.dataSetId_ = dataSetId_;
to_bitField0_ |= 0x00000020;
}
if (((bitField0_ & 0x00000040) != 0)) {
labels_ = labels_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000040);
}
result.labels_ = labels_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.createdTime_ = createdTime_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.lastUpdatedTime_ = lastUpdatedTime_;
to_bitField0_ |= 0x00000080;
}
if (sourceCase_ == 13) {
if (sourceAssetBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceAssetBuilder_.build();
}
}
if (sourceCase_ == 14) {
if (sourceEventBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceEventBuilder_.build();
}
}
if (sourceCase_ == 15) {
if (sourceTimeseriesBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceTimeseriesBuilder_.build();
}
}
if (sourceCase_ == 16) {
if (sourceFileBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceFileBuilder_.build();
}
}
if (sourceCase_ == 17) {
if (sourceSequenceBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceSequenceBuilder_.build();
}
}
if (targetCase_ == 18) {
if (targetAssetBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetAssetBuilder_.build();
}
}
if (targetCase_ == 19) {
if (targetEventBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetEventBuilder_.build();
}
}
if (targetCase_ == 20) {
if (targetTimeseriesBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetTimeseriesBuilder_.build();
}
}
if (targetCase_ == 21) {
if (targetFileBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetFileBuilder_.build();
}
}
if (targetCase_ == 22) {
if (targetSequenceBuilder_ == null) {
result.target_ = target_;
} else {
result.target_ = targetSequenceBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.sourceCase_ = sourceCase_;
result.targetCase_ = targetCase_;
onBuilt();
return result;
}
@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.cognite.client.dto.Relationship) {
return mergeFrom((com.cognite.client.dto.Relationship)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.Relationship other) {
if (other == com.cognite.client.dto.Relationship.getDefaultInstance()) return this;
if (!other.getExternalId().isEmpty()) {
externalId_ = other.externalId_;
onChanged();
}
if (other.hasSourceExternalId()) {
bitField0_ |= 0x00000001;
sourceExternalId_ = other.sourceExternalId_;
onChanged();
}
if (other.sourceType_ != 0) {
setSourceTypeValue(other.getSourceTypeValue());
}
if (other.hasTargetExternalId()) {
bitField0_ |= 0x00000002;
targetExternalId_ = other.targetExternalId_;
onChanged();
}
if (other.targetType_ != 0) {
setTargetTypeValue(other.getTargetTypeValue());
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (other.hasEndTime()) {
setEndTime(other.getEndTime());
}
if (other.hasConfidence()) {
setConfidence(other.getConfidence());
}
if (other.hasDataSetId()) {
setDataSetId(other.getDataSetId());
}
if (!other.labels_.isEmpty()) {
if (labels_.isEmpty()) {
labels_ = other.labels_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureLabelsIsMutable();
labels_.addAll(other.labels_);
}
onChanged();
}
if (other.hasCreatedTime()) {
setCreatedTime(other.getCreatedTime());
}
if (other.hasLastUpdatedTime()) {
setLastUpdatedTime(other.getLastUpdatedTime());
}
switch (other.getSourceCase()) {
case SOURCE_ASSET: {
mergeSourceAsset(other.getSourceAsset());
break;
}
case SOURCE_EVENT: {
mergeSourceEvent(other.getSourceEvent());
break;
}
case SOURCE_TIMESERIES: {
mergeSourceTimeseries(other.getSourceTimeseries());
break;
}
case SOURCE_FILE: {
mergeSourceFile(other.getSourceFile());
break;
}
case SOURCE_SEQUENCE: {
mergeSourceSequence(other.getSourceSequence());
break;
}
case SOURCE_NOT_SET: {
break;
}
}
switch (other.getTargetCase()) {
case TARGET_ASSET: {
mergeTargetAsset(other.getTargetAsset());
break;
}
case TARGET_EVENT: {
mergeTargetEvent(other.getTargetEvent());
break;
}
case TARGET_TIMESERIES: {
mergeTargetTimeseries(other.getTargetTimeseries());
break;
}
case TARGET_FILE: {
mergeTargetFile(other.getTargetFile());
break;
}
case TARGET_SEQUENCE: {
mergeTargetSequence(other.getTargetSequence());
break;
}
case TARGET_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
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 {
com.cognite.client.dto.Relationship parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.Relationship) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sourceCase_ = 0;
private java.lang.Object source_;
public SourceCase
getSourceCase() {
return SourceCase.forNumber(
sourceCase_);
}
public Builder clearSource() {
sourceCase_ = 0;
source_ = null;
onChanged();
return this;
}
private int targetCase_ = 0;
private java.lang.Object target_;
public TargetCase
getTargetCase() {
return TargetCase.forNumber(
targetCase_);
}
public Builder clearTarget() {
targetCase_ = 0;
target_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object externalId_ = "";
/**
* string external_id = 1;
* @return The externalId.
*/
public java.lang.String getExternalId() {
java.lang.Object ref = externalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
externalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string external_id = 1;
* @return The bytes for externalId.
*/
public com.google.protobuf.ByteString
getExternalIdBytes() {
java.lang.Object ref = externalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
externalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string external_id = 1;
* @param value The externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
externalId_ = value;
onChanged();
return this;
}
/**
* string external_id = 1;
* @return This builder for chaining.
*/
public Builder clearExternalId() {
externalId_ = getDefaultInstance().getExternalId();
onChanged();
return this;
}
/**
* string external_id = 1;
* @param value The bytes for externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
externalId_ = value;
onChanged();
return this;
}
private java.lang.Object sourceExternalId_ = "";
/**
* optional string source_external_id = 2;
* @return Whether the sourceExternalId field is set.
*/
public boolean hasSourceExternalId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string source_external_id = 2;
* @return The sourceExternalId.
*/
public java.lang.String getSourceExternalId() {
java.lang.Object ref = sourceExternalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sourceExternalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string source_external_id = 2;
* @return The bytes for sourceExternalId.
*/
public com.google.protobuf.ByteString
getSourceExternalIdBytes() {
java.lang.Object ref = sourceExternalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sourceExternalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string source_external_id = 2;
* @param value The sourceExternalId to set.
* @return This builder for chaining.
*/
public Builder setSourceExternalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sourceExternalId_ = value;
onChanged();
return this;
}
/**
* optional string source_external_id = 2;
* @return This builder for chaining.
*/
public Builder clearSourceExternalId() {
bitField0_ = (bitField0_ & ~0x00000001);
sourceExternalId_ = getDefaultInstance().getSourceExternalId();
onChanged();
return this;
}
/**
* optional string source_external_id = 2;
* @param value The bytes for sourceExternalId to set.
* @return This builder for chaining.
*/
public Builder setSourceExternalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
sourceExternalId_ = value;
onChanged();
return this;
}
private int sourceType_ = 0;
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @return The enum numeric value on the wire for sourceType.
*/
@java.lang.Override public int getSourceTypeValue() {
return sourceType_;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @param value The enum numeric value on the wire for sourceType to set.
* @return This builder for chaining.
*/
public Builder setSourceTypeValue(int value) {
sourceType_ = value;
onChanged();
return this;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @return The sourceType.
*/
@java.lang.Override
public com.cognite.client.dto.Relationship.ResourceType getSourceType() {
@SuppressWarnings("deprecation")
com.cognite.client.dto.Relationship.ResourceType result = com.cognite.client.dto.Relationship.ResourceType.valueOf(sourceType_);
return result == null ? com.cognite.client.dto.Relationship.ResourceType.UNRECOGNIZED : result;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @param value The sourceType to set.
* @return This builder for chaining.
*/
public Builder setSourceType(com.cognite.client.dto.Relationship.ResourceType value) {
if (value == null) {
throw new NullPointerException();
}
sourceType_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType source_type = 3;
* @return This builder for chaining.
*/
public Builder clearSourceType() {
sourceType_ = 0;
onChanged();
return this;
}
private java.lang.Object targetExternalId_ = "";
/**
* optional string target_external_id = 4;
* @return Whether the targetExternalId field is set.
*/
public boolean hasTargetExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string target_external_id = 4;
* @return The targetExternalId.
*/
public java.lang.String getTargetExternalId() {
java.lang.Object ref = targetExternalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
targetExternalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string target_external_id = 4;
* @return The bytes for targetExternalId.
*/
public com.google.protobuf.ByteString
getTargetExternalIdBytes() {
java.lang.Object ref = targetExternalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetExternalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string target_external_id = 4;
* @param value The targetExternalId to set.
* @return This builder for chaining.
*/
public Builder setTargetExternalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
targetExternalId_ = value;
onChanged();
return this;
}
/**
* optional string target_external_id = 4;
* @return This builder for chaining.
*/
public Builder clearTargetExternalId() {
bitField0_ = (bitField0_ & ~0x00000002);
targetExternalId_ = getDefaultInstance().getTargetExternalId();
onChanged();
return this;
}
/**
* optional string target_external_id = 4;
* @param value The bytes for targetExternalId to set.
* @return This builder for chaining.
*/
public Builder setTargetExternalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
targetExternalId_ = value;
onChanged();
return this;
}
private int targetType_ = 0;
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @return The enum numeric value on the wire for targetType.
*/
@java.lang.Override public int getTargetTypeValue() {
return targetType_;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @param value The enum numeric value on the wire for targetType to set.
* @return This builder for chaining.
*/
public Builder setTargetTypeValue(int value) {
targetType_ = value;
onChanged();
return this;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @return The targetType.
*/
@java.lang.Override
public com.cognite.client.dto.Relationship.ResourceType getTargetType() {
@SuppressWarnings("deprecation")
com.cognite.client.dto.Relationship.ResourceType result = com.cognite.client.dto.Relationship.ResourceType.valueOf(targetType_);
return result == null ? com.cognite.client.dto.Relationship.ResourceType.UNRECOGNIZED : result;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @param value The targetType to set.
* @return This builder for chaining.
*/
public Builder setTargetType(com.cognite.client.dto.Relationship.ResourceType value) {
if (value == null) {
throw new NullPointerException();
}
targetType_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.cognite.beam.proto.Relationship.ResourceType target_type = 5;
* @return This builder for chaining.
*/
public Builder clearTargetType() {
targetType_ = 0;
onChanged();
return this;
}
private long startTime_ ;
/**
* optional int64 start_time = 6;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 start_time = 6;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
* optional int64 start_time = 6;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000004;
startTime_ = value;
onChanged();
return this;
}
/**
* optional int64 start_time = 6;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000004);
startTime_ = 0L;
onChanged();
return this;
}
private long endTime_ ;
/**
* optional int64 end_time = 7;
* @return Whether the endTime field is set.
*/
@java.lang.Override
public boolean hasEndTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 end_time = 7;
* @return The endTime.
*/
@java.lang.Override
public long getEndTime() {
return endTime_;
}
/**
* optional int64 end_time = 7;
* @param value The endTime to set.
* @return This builder for chaining.
*/
public Builder setEndTime(long value) {
bitField0_ |= 0x00000008;
endTime_ = value;
onChanged();
return this;
}
/**
* optional int64 end_time = 7;
* @return This builder for chaining.
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000008);
endTime_ = 0L;
onChanged();
return this;
}
private float confidence_ ;
/**
* optional float confidence = 8;
* @return Whether the confidence field is set.
*/
@java.lang.Override
public boolean hasConfidence() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional float confidence = 8;
* @return The confidence.
*/
@java.lang.Override
public float getConfidence() {
return confidence_;
}
/**
* optional float confidence = 8;
* @param value The confidence to set.
* @return This builder for chaining.
*/
public Builder setConfidence(float value) {
bitField0_ |= 0x00000010;
confidence_ = value;
onChanged();
return this;
}
/**
* optional float confidence = 8;
* @return This builder for chaining.
*/
public Builder clearConfidence() {
bitField0_ = (bitField0_ & ~0x00000010);
confidence_ = 0F;
onChanged();
return this;
}
private long dataSetId_ ;
/**
* optional int64 data_set_id = 9;
* @return Whether the dataSetId field is set.
*/
@java.lang.Override
public boolean hasDataSetId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 data_set_id = 9;
* @return The dataSetId.
*/
@java.lang.Override
public long getDataSetId() {
return dataSetId_;
}
/**
* optional int64 data_set_id = 9;
* @param value The dataSetId to set.
* @return This builder for chaining.
*/
public Builder setDataSetId(long value) {
bitField0_ |= 0x00000020;
dataSetId_ = value;
onChanged();
return this;
}
/**
* optional int64 data_set_id = 9;
* @return This builder for chaining.
*/
public Builder clearDataSetId() {
bitField0_ = (bitField0_ & ~0x00000020);
dataSetId_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
labels_ = new com.google.protobuf.LazyStringArrayList(labels_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated string labels = 10;
* @return A list containing the labels.
*/
public com.google.protobuf.ProtocolStringList
getLabelsList() {
return labels_.getUnmodifiableView();
}
/**
* repeated string labels = 10;
* @return The count of labels.
*/
public int getLabelsCount() {
return labels_.size();
}
/**
* repeated string labels = 10;
* @param index The index of the element to return.
* @return The labels at the given index.
*/
public java.lang.String getLabels(int index) {
return labels_.get(index);
}
/**
* repeated string labels = 10;
* @param index The index of the value to return.
* @return The bytes of the labels at the given index.
*/
public com.google.protobuf.ByteString
getLabelsBytes(int index) {
return labels_.getByteString(index);
}
/**
* repeated string labels = 10;
* @param index The index to set the value at.
* @param value The labels to set.
* @return This builder for chaining.
*/
public Builder setLabels(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.set(index, value);
onChanged();
return this;
}
/**
* repeated string labels = 10;
* @param value The labels to add.
* @return This builder for chaining.
*/
public Builder addLabels(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
/**
* repeated string labels = 10;
* @param values The labels to add.
* @return This builder for chaining.
*/
public Builder addAllLabels(
java.lang.Iterable values) {
ensureLabelsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, labels_);
onChanged();
return this;
}
/**
* repeated string labels = 10;
* @return This builder for chaining.
*/
public Builder clearLabels() {
labels_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* repeated string labels = 10;
* @param value The bytes of the labels to add.
* @return This builder for chaining.
*/
public Builder addLabelsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLabelsIsMutable();
labels_.add(value);
onChanged();
return this;
}
private long createdTime_ ;
/**
* optional int64 created_time = 11;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 created_time = 11;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
/**
* optional int64 created_time = 11;
* @param value The createdTime to set.
* @return This builder for chaining.
*/
public Builder setCreatedTime(long value) {
bitField0_ |= 0x00000080;
createdTime_ = value;
onChanged();
return this;
}
/**
* optional int64 created_time = 11;
* @return This builder for chaining.
*/
public Builder clearCreatedTime() {
bitField0_ = (bitField0_ & ~0x00000080);
createdTime_ = 0L;
onChanged();
return this;
}
private long lastUpdatedTime_ ;
/**
* optional int64 last_updated_time = 12;
* @return Whether the lastUpdatedTime field is set.
*/
@java.lang.Override
public boolean hasLastUpdatedTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 last_updated_time = 12;
* @return The lastUpdatedTime.
*/
@java.lang.Override
public long getLastUpdatedTime() {
return lastUpdatedTime_;
}
/**
* optional int64 last_updated_time = 12;
* @param value The lastUpdatedTime to set.
* @return This builder for chaining.
*/
public Builder setLastUpdatedTime(long value) {
bitField0_ |= 0x00000100;
lastUpdatedTime_ = value;
onChanged();
return this;
}
/**
* optional int64 last_updated_time = 12;
* @return This builder for chaining.
*/
public Builder clearLastUpdatedTime() {
bitField0_ = (bitField0_ & ~0x00000100);
lastUpdatedTime_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Asset, com.cognite.client.dto.Asset.Builder, com.cognite.client.dto.AssetOrBuilder> sourceAssetBuilder_;
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
* @return Whether the sourceAsset field is set.
*/
@java.lang.Override
public boolean hasSourceAsset() {
return sourceCase_ == 13;
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
* @return The sourceAsset.
*/
@java.lang.Override
public com.cognite.client.dto.Asset getSourceAsset() {
if (sourceAssetBuilder_ == null) {
if (sourceCase_ == 13) {
return (com.cognite.client.dto.Asset) source_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
} else {
if (sourceCase_ == 13) {
return sourceAssetBuilder_.getMessage();
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
public Builder setSourceAsset(com.cognite.client.dto.Asset value) {
if (sourceAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceAssetBuilder_.setMessage(value);
}
sourceCase_ = 13;
return this;
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
public Builder setSourceAsset(
com.cognite.client.dto.Asset.Builder builderForValue) {
if (sourceAssetBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceAssetBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 13;
return this;
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
public Builder mergeSourceAsset(com.cognite.client.dto.Asset value) {
if (sourceAssetBuilder_ == null) {
if (sourceCase_ == 13 &&
source_ != com.cognite.client.dto.Asset.getDefaultInstance()) {
source_ = com.cognite.client.dto.Asset.newBuilder((com.cognite.client.dto.Asset) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 13) {
sourceAssetBuilder_.mergeFrom(value);
}
sourceAssetBuilder_.setMessage(value);
}
sourceCase_ = 13;
return this;
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
public Builder clearSourceAsset() {
if (sourceAssetBuilder_ == null) {
if (sourceCase_ == 13) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 13) {
sourceCase_ = 0;
source_ = null;
}
sourceAssetBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
public com.cognite.client.dto.Asset.Builder getSourceAssetBuilder() {
return getSourceAssetFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
@java.lang.Override
public com.cognite.client.dto.AssetOrBuilder getSourceAssetOrBuilder() {
if ((sourceCase_ == 13) && (sourceAssetBuilder_ != null)) {
return sourceAssetBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 13) {
return (com.cognite.client.dto.Asset) source_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Asset source_asset = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Asset, com.cognite.client.dto.Asset.Builder, com.cognite.client.dto.AssetOrBuilder>
getSourceAssetFieldBuilder() {
if (sourceAssetBuilder_ == null) {
if (!(sourceCase_ == 13)) {
source_ = com.cognite.client.dto.Asset.getDefaultInstance();
}
sourceAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Asset, com.cognite.client.dto.Asset.Builder, com.cognite.client.dto.AssetOrBuilder>(
(com.cognite.client.dto.Asset) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 13;
onChanged();;
return sourceAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Event, com.cognite.client.dto.Event.Builder, com.cognite.client.dto.EventOrBuilder> sourceEventBuilder_;
/**
* .com.cognite.beam.proto.Event source_event = 14;
* @return Whether the sourceEvent field is set.
*/
@java.lang.Override
public boolean hasSourceEvent() {
return sourceCase_ == 14;
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
* @return The sourceEvent.
*/
@java.lang.Override
public com.cognite.client.dto.Event getSourceEvent() {
if (sourceEventBuilder_ == null) {
if (sourceCase_ == 14) {
return (com.cognite.client.dto.Event) source_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
} else {
if (sourceCase_ == 14) {
return sourceEventBuilder_.getMessage();
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
public Builder setSourceEvent(com.cognite.client.dto.Event value) {
if (sourceEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceEventBuilder_.setMessage(value);
}
sourceCase_ = 14;
return this;
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
public Builder setSourceEvent(
com.cognite.client.dto.Event.Builder builderForValue) {
if (sourceEventBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceEventBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 14;
return this;
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
public Builder mergeSourceEvent(com.cognite.client.dto.Event value) {
if (sourceEventBuilder_ == null) {
if (sourceCase_ == 14 &&
source_ != com.cognite.client.dto.Event.getDefaultInstance()) {
source_ = com.cognite.client.dto.Event.newBuilder((com.cognite.client.dto.Event) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 14) {
sourceEventBuilder_.mergeFrom(value);
}
sourceEventBuilder_.setMessage(value);
}
sourceCase_ = 14;
return this;
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
public Builder clearSourceEvent() {
if (sourceEventBuilder_ == null) {
if (sourceCase_ == 14) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 14) {
sourceCase_ = 0;
source_ = null;
}
sourceEventBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
public com.cognite.client.dto.Event.Builder getSourceEventBuilder() {
return getSourceEventFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
@java.lang.Override
public com.cognite.client.dto.EventOrBuilder getSourceEventOrBuilder() {
if ((sourceCase_ == 14) && (sourceEventBuilder_ != null)) {
return sourceEventBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 14) {
return (com.cognite.client.dto.Event) source_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Event source_event = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Event, com.cognite.client.dto.Event.Builder, com.cognite.client.dto.EventOrBuilder>
getSourceEventFieldBuilder() {
if (sourceEventBuilder_ == null) {
if (!(sourceCase_ == 14)) {
source_ = com.cognite.client.dto.Event.getDefaultInstance();
}
sourceEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Event, com.cognite.client.dto.Event.Builder, com.cognite.client.dto.EventOrBuilder>(
(com.cognite.client.dto.Event) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 14;
onChanged();;
return sourceEventBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.TimeseriesMetadata, com.cognite.client.dto.TimeseriesMetadata.Builder, com.cognite.client.dto.TimeseriesMetadataOrBuilder> sourceTimeseriesBuilder_;
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
* @return Whether the sourceTimeseries field is set.
*/
@java.lang.Override
public boolean hasSourceTimeseries() {
return sourceCase_ == 15;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
* @return The sourceTimeseries.
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadata getSourceTimeseries() {
if (sourceTimeseriesBuilder_ == null) {
if (sourceCase_ == 15) {
return (com.cognite.client.dto.TimeseriesMetadata) source_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
} else {
if (sourceCase_ == 15) {
return sourceTimeseriesBuilder_.getMessage();
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
public Builder setSourceTimeseries(com.cognite.client.dto.TimeseriesMetadata value) {
if (sourceTimeseriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceTimeseriesBuilder_.setMessage(value);
}
sourceCase_ = 15;
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
public Builder setSourceTimeseries(
com.cognite.client.dto.TimeseriesMetadata.Builder builderForValue) {
if (sourceTimeseriesBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceTimeseriesBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 15;
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
public Builder mergeSourceTimeseries(com.cognite.client.dto.TimeseriesMetadata value) {
if (sourceTimeseriesBuilder_ == null) {
if (sourceCase_ == 15 &&
source_ != com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance()) {
source_ = com.cognite.client.dto.TimeseriesMetadata.newBuilder((com.cognite.client.dto.TimeseriesMetadata) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 15) {
sourceTimeseriesBuilder_.mergeFrom(value);
}
sourceTimeseriesBuilder_.setMessage(value);
}
sourceCase_ = 15;
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
public Builder clearSourceTimeseries() {
if (sourceTimeseriesBuilder_ == null) {
if (sourceCase_ == 15) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 15) {
sourceCase_ = 0;
source_ = null;
}
sourceTimeseriesBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
public com.cognite.client.dto.TimeseriesMetadata.Builder getSourceTimeseriesBuilder() {
return getSourceTimeseriesFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadataOrBuilder getSourceTimeseriesOrBuilder() {
if ((sourceCase_ == 15) && (sourceTimeseriesBuilder_ != null)) {
return sourceTimeseriesBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 15) {
return (com.cognite.client.dto.TimeseriesMetadata) source_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata source_timeseries = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.TimeseriesMetadata, com.cognite.client.dto.TimeseriesMetadata.Builder, com.cognite.client.dto.TimeseriesMetadataOrBuilder>
getSourceTimeseriesFieldBuilder() {
if (sourceTimeseriesBuilder_ == null) {
if (!(sourceCase_ == 15)) {
source_ = com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
sourceTimeseriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.TimeseriesMetadata, com.cognite.client.dto.TimeseriesMetadata.Builder, com.cognite.client.dto.TimeseriesMetadataOrBuilder>(
(com.cognite.client.dto.TimeseriesMetadata) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 15;
onChanged();;
return sourceTimeseriesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.FileMetadata, com.cognite.client.dto.FileMetadata.Builder, com.cognite.client.dto.FileMetadataOrBuilder> sourceFileBuilder_;
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
* @return Whether the sourceFile field is set.
*/
@java.lang.Override
public boolean hasSourceFile() {
return sourceCase_ == 16;
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
* @return The sourceFile.
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadata getSourceFile() {
if (sourceFileBuilder_ == null) {
if (sourceCase_ == 16) {
return (com.cognite.client.dto.FileMetadata) source_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
} else {
if (sourceCase_ == 16) {
return sourceFileBuilder_.getMessage();
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
public Builder setSourceFile(com.cognite.client.dto.FileMetadata value) {
if (sourceFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceFileBuilder_.setMessage(value);
}
sourceCase_ = 16;
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
public Builder setSourceFile(
com.cognite.client.dto.FileMetadata.Builder builderForValue) {
if (sourceFileBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceFileBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 16;
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
public Builder mergeSourceFile(com.cognite.client.dto.FileMetadata value) {
if (sourceFileBuilder_ == null) {
if (sourceCase_ == 16 &&
source_ != com.cognite.client.dto.FileMetadata.getDefaultInstance()) {
source_ = com.cognite.client.dto.FileMetadata.newBuilder((com.cognite.client.dto.FileMetadata) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 16) {
sourceFileBuilder_.mergeFrom(value);
}
sourceFileBuilder_.setMessage(value);
}
sourceCase_ = 16;
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
public Builder clearSourceFile() {
if (sourceFileBuilder_ == null) {
if (sourceCase_ == 16) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 16) {
sourceCase_ = 0;
source_ = null;
}
sourceFileBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
public com.cognite.client.dto.FileMetadata.Builder getSourceFileBuilder() {
return getSourceFileFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadataOrBuilder getSourceFileOrBuilder() {
if ((sourceCase_ == 16) && (sourceFileBuilder_ != null)) {
return sourceFileBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 16) {
return (com.cognite.client.dto.FileMetadata) source_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.FileMetadata source_file = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.FileMetadata, com.cognite.client.dto.FileMetadata.Builder, com.cognite.client.dto.FileMetadataOrBuilder>
getSourceFileFieldBuilder() {
if (sourceFileBuilder_ == null) {
if (!(sourceCase_ == 16)) {
source_ = com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
sourceFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.FileMetadata, com.cognite.client.dto.FileMetadata.Builder, com.cognite.client.dto.FileMetadataOrBuilder>(
(com.cognite.client.dto.FileMetadata) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 16;
onChanged();;
return sourceFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.SequenceMetadata, com.cognite.client.dto.SequenceMetadata.Builder, com.cognite.client.dto.SequenceMetadataOrBuilder> sourceSequenceBuilder_;
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
* @return Whether the sourceSequence field is set.
*/
@java.lang.Override
public boolean hasSourceSequence() {
return sourceCase_ == 17;
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
* @return The sourceSequence.
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadata getSourceSequence() {
if (sourceSequenceBuilder_ == null) {
if (sourceCase_ == 17) {
return (com.cognite.client.dto.SequenceMetadata) source_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
} else {
if (sourceCase_ == 17) {
return sourceSequenceBuilder_.getMessage();
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
public Builder setSourceSequence(com.cognite.client.dto.SequenceMetadata value) {
if (sourceSequenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceSequenceBuilder_.setMessage(value);
}
sourceCase_ = 17;
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
public Builder setSourceSequence(
com.cognite.client.dto.SequenceMetadata.Builder builderForValue) {
if (sourceSequenceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceSequenceBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 17;
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
public Builder mergeSourceSequence(com.cognite.client.dto.SequenceMetadata value) {
if (sourceSequenceBuilder_ == null) {
if (sourceCase_ == 17 &&
source_ != com.cognite.client.dto.SequenceMetadata.getDefaultInstance()) {
source_ = com.cognite.client.dto.SequenceMetadata.newBuilder((com.cognite.client.dto.SequenceMetadata) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 17) {
sourceSequenceBuilder_.mergeFrom(value);
}
sourceSequenceBuilder_.setMessage(value);
}
sourceCase_ = 17;
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
public Builder clearSourceSequence() {
if (sourceSequenceBuilder_ == null) {
if (sourceCase_ == 17) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 17) {
sourceCase_ = 0;
source_ = null;
}
sourceSequenceBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
public com.cognite.client.dto.SequenceMetadata.Builder getSourceSequenceBuilder() {
return getSourceSequenceFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadataOrBuilder getSourceSequenceOrBuilder() {
if ((sourceCase_ == 17) && (sourceSequenceBuilder_ != null)) {
return sourceSequenceBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 17) {
return (com.cognite.client.dto.SequenceMetadata) source_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.SequenceMetadata source_sequence = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.SequenceMetadata, com.cognite.client.dto.SequenceMetadata.Builder, com.cognite.client.dto.SequenceMetadataOrBuilder>
getSourceSequenceFieldBuilder() {
if (sourceSequenceBuilder_ == null) {
if (!(sourceCase_ == 17)) {
source_ = com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
sourceSequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.SequenceMetadata, com.cognite.client.dto.SequenceMetadata.Builder, com.cognite.client.dto.SequenceMetadataOrBuilder>(
(com.cognite.client.dto.SequenceMetadata) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 17;
onChanged();;
return sourceSequenceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Asset, com.cognite.client.dto.Asset.Builder, com.cognite.client.dto.AssetOrBuilder> targetAssetBuilder_;
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
* @return Whether the targetAsset field is set.
*/
@java.lang.Override
public boolean hasTargetAsset() {
return targetCase_ == 18;
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
* @return The targetAsset.
*/
@java.lang.Override
public com.cognite.client.dto.Asset getTargetAsset() {
if (targetAssetBuilder_ == null) {
if (targetCase_ == 18) {
return (com.cognite.client.dto.Asset) target_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
} else {
if (targetCase_ == 18) {
return targetAssetBuilder_.getMessage();
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
public Builder setTargetAsset(com.cognite.client.dto.Asset value) {
if (targetAssetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetAssetBuilder_.setMessage(value);
}
targetCase_ = 18;
return this;
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
public Builder setTargetAsset(
com.cognite.client.dto.Asset.Builder builderForValue) {
if (targetAssetBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetAssetBuilder_.setMessage(builderForValue.build());
}
targetCase_ = 18;
return this;
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
public Builder mergeTargetAsset(com.cognite.client.dto.Asset value) {
if (targetAssetBuilder_ == null) {
if (targetCase_ == 18 &&
target_ != com.cognite.client.dto.Asset.getDefaultInstance()) {
target_ = com.cognite.client.dto.Asset.newBuilder((com.cognite.client.dto.Asset) target_)
.mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
if (targetCase_ == 18) {
targetAssetBuilder_.mergeFrom(value);
}
targetAssetBuilder_.setMessage(value);
}
targetCase_ = 18;
return this;
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
public Builder clearTargetAsset() {
if (targetAssetBuilder_ == null) {
if (targetCase_ == 18) {
targetCase_ = 0;
target_ = null;
onChanged();
}
} else {
if (targetCase_ == 18) {
targetCase_ = 0;
target_ = null;
}
targetAssetBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
public com.cognite.client.dto.Asset.Builder getTargetAssetBuilder() {
return getTargetAssetFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
@java.lang.Override
public com.cognite.client.dto.AssetOrBuilder getTargetAssetOrBuilder() {
if ((targetCase_ == 18) && (targetAssetBuilder_ != null)) {
return targetAssetBuilder_.getMessageOrBuilder();
} else {
if (targetCase_ == 18) {
return (com.cognite.client.dto.Asset) target_;
}
return com.cognite.client.dto.Asset.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Asset target_asset = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Asset, com.cognite.client.dto.Asset.Builder, com.cognite.client.dto.AssetOrBuilder>
getTargetAssetFieldBuilder() {
if (targetAssetBuilder_ == null) {
if (!(targetCase_ == 18)) {
target_ = com.cognite.client.dto.Asset.getDefaultInstance();
}
targetAssetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Asset, com.cognite.client.dto.Asset.Builder, com.cognite.client.dto.AssetOrBuilder>(
(com.cognite.client.dto.Asset) target_,
getParentForChildren(),
isClean());
target_ = null;
}
targetCase_ = 18;
onChanged();;
return targetAssetBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Event, com.cognite.client.dto.Event.Builder, com.cognite.client.dto.EventOrBuilder> targetEventBuilder_;
/**
* .com.cognite.beam.proto.Event target_event = 19;
* @return Whether the targetEvent field is set.
*/
@java.lang.Override
public boolean hasTargetEvent() {
return targetCase_ == 19;
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
* @return The targetEvent.
*/
@java.lang.Override
public com.cognite.client.dto.Event getTargetEvent() {
if (targetEventBuilder_ == null) {
if (targetCase_ == 19) {
return (com.cognite.client.dto.Event) target_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
} else {
if (targetCase_ == 19) {
return targetEventBuilder_.getMessage();
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
public Builder setTargetEvent(com.cognite.client.dto.Event value) {
if (targetEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetEventBuilder_.setMessage(value);
}
targetCase_ = 19;
return this;
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
public Builder setTargetEvent(
com.cognite.client.dto.Event.Builder builderForValue) {
if (targetEventBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetEventBuilder_.setMessage(builderForValue.build());
}
targetCase_ = 19;
return this;
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
public Builder mergeTargetEvent(com.cognite.client.dto.Event value) {
if (targetEventBuilder_ == null) {
if (targetCase_ == 19 &&
target_ != com.cognite.client.dto.Event.getDefaultInstance()) {
target_ = com.cognite.client.dto.Event.newBuilder((com.cognite.client.dto.Event) target_)
.mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
if (targetCase_ == 19) {
targetEventBuilder_.mergeFrom(value);
}
targetEventBuilder_.setMessage(value);
}
targetCase_ = 19;
return this;
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
public Builder clearTargetEvent() {
if (targetEventBuilder_ == null) {
if (targetCase_ == 19) {
targetCase_ = 0;
target_ = null;
onChanged();
}
} else {
if (targetCase_ == 19) {
targetCase_ = 0;
target_ = null;
}
targetEventBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
public com.cognite.client.dto.Event.Builder getTargetEventBuilder() {
return getTargetEventFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
@java.lang.Override
public com.cognite.client.dto.EventOrBuilder getTargetEventOrBuilder() {
if ((targetCase_ == 19) && (targetEventBuilder_ != null)) {
return targetEventBuilder_.getMessageOrBuilder();
} else {
if (targetCase_ == 19) {
return (com.cognite.client.dto.Event) target_;
}
return com.cognite.client.dto.Event.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.Event target_event = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Event, com.cognite.client.dto.Event.Builder, com.cognite.client.dto.EventOrBuilder>
getTargetEventFieldBuilder() {
if (targetEventBuilder_ == null) {
if (!(targetCase_ == 19)) {
target_ = com.cognite.client.dto.Event.getDefaultInstance();
}
targetEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.Event, com.cognite.client.dto.Event.Builder, com.cognite.client.dto.EventOrBuilder>(
(com.cognite.client.dto.Event) target_,
getParentForChildren(),
isClean());
target_ = null;
}
targetCase_ = 19;
onChanged();;
return targetEventBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.TimeseriesMetadata, com.cognite.client.dto.TimeseriesMetadata.Builder, com.cognite.client.dto.TimeseriesMetadataOrBuilder> targetTimeseriesBuilder_;
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
* @return Whether the targetTimeseries field is set.
*/
@java.lang.Override
public boolean hasTargetTimeseries() {
return targetCase_ == 20;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
* @return The targetTimeseries.
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadata getTargetTimeseries() {
if (targetTimeseriesBuilder_ == null) {
if (targetCase_ == 20) {
return (com.cognite.client.dto.TimeseriesMetadata) target_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
} else {
if (targetCase_ == 20) {
return targetTimeseriesBuilder_.getMessage();
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
public Builder setTargetTimeseries(com.cognite.client.dto.TimeseriesMetadata value) {
if (targetTimeseriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetTimeseriesBuilder_.setMessage(value);
}
targetCase_ = 20;
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
public Builder setTargetTimeseries(
com.cognite.client.dto.TimeseriesMetadata.Builder builderForValue) {
if (targetTimeseriesBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetTimeseriesBuilder_.setMessage(builderForValue.build());
}
targetCase_ = 20;
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
public Builder mergeTargetTimeseries(com.cognite.client.dto.TimeseriesMetadata value) {
if (targetTimeseriesBuilder_ == null) {
if (targetCase_ == 20 &&
target_ != com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance()) {
target_ = com.cognite.client.dto.TimeseriesMetadata.newBuilder((com.cognite.client.dto.TimeseriesMetadata) target_)
.mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
if (targetCase_ == 20) {
targetTimeseriesBuilder_.mergeFrom(value);
}
targetTimeseriesBuilder_.setMessage(value);
}
targetCase_ = 20;
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
public Builder clearTargetTimeseries() {
if (targetTimeseriesBuilder_ == null) {
if (targetCase_ == 20) {
targetCase_ = 0;
target_ = null;
onChanged();
}
} else {
if (targetCase_ == 20) {
targetCase_ = 0;
target_ = null;
}
targetTimeseriesBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
public com.cognite.client.dto.TimeseriesMetadata.Builder getTargetTimeseriesBuilder() {
return getTargetTimeseriesFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
@java.lang.Override
public com.cognite.client.dto.TimeseriesMetadataOrBuilder getTargetTimeseriesOrBuilder() {
if ((targetCase_ == 20) && (targetTimeseriesBuilder_ != null)) {
return targetTimeseriesBuilder_.getMessageOrBuilder();
} else {
if (targetCase_ == 20) {
return (com.cognite.client.dto.TimeseriesMetadata) target_;
}
return com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.TimeseriesMetadata target_timeseries = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.TimeseriesMetadata, com.cognite.client.dto.TimeseriesMetadata.Builder, com.cognite.client.dto.TimeseriesMetadataOrBuilder>
getTargetTimeseriesFieldBuilder() {
if (targetTimeseriesBuilder_ == null) {
if (!(targetCase_ == 20)) {
target_ = com.cognite.client.dto.TimeseriesMetadata.getDefaultInstance();
}
targetTimeseriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.TimeseriesMetadata, com.cognite.client.dto.TimeseriesMetadata.Builder, com.cognite.client.dto.TimeseriesMetadataOrBuilder>(
(com.cognite.client.dto.TimeseriesMetadata) target_,
getParentForChildren(),
isClean());
target_ = null;
}
targetCase_ = 20;
onChanged();;
return targetTimeseriesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.FileMetadata, com.cognite.client.dto.FileMetadata.Builder, com.cognite.client.dto.FileMetadataOrBuilder> targetFileBuilder_;
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
* @return Whether the targetFile field is set.
*/
@java.lang.Override
public boolean hasTargetFile() {
return targetCase_ == 21;
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
* @return The targetFile.
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadata getTargetFile() {
if (targetFileBuilder_ == null) {
if (targetCase_ == 21) {
return (com.cognite.client.dto.FileMetadata) target_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
} else {
if (targetCase_ == 21) {
return targetFileBuilder_.getMessage();
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
public Builder setTargetFile(com.cognite.client.dto.FileMetadata value) {
if (targetFileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetFileBuilder_.setMessage(value);
}
targetCase_ = 21;
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
public Builder setTargetFile(
com.cognite.client.dto.FileMetadata.Builder builderForValue) {
if (targetFileBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetFileBuilder_.setMessage(builderForValue.build());
}
targetCase_ = 21;
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
public Builder mergeTargetFile(com.cognite.client.dto.FileMetadata value) {
if (targetFileBuilder_ == null) {
if (targetCase_ == 21 &&
target_ != com.cognite.client.dto.FileMetadata.getDefaultInstance()) {
target_ = com.cognite.client.dto.FileMetadata.newBuilder((com.cognite.client.dto.FileMetadata) target_)
.mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
if (targetCase_ == 21) {
targetFileBuilder_.mergeFrom(value);
}
targetFileBuilder_.setMessage(value);
}
targetCase_ = 21;
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
public Builder clearTargetFile() {
if (targetFileBuilder_ == null) {
if (targetCase_ == 21) {
targetCase_ = 0;
target_ = null;
onChanged();
}
} else {
if (targetCase_ == 21) {
targetCase_ = 0;
target_ = null;
}
targetFileBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
public com.cognite.client.dto.FileMetadata.Builder getTargetFileBuilder() {
return getTargetFileFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
@java.lang.Override
public com.cognite.client.dto.FileMetadataOrBuilder getTargetFileOrBuilder() {
if ((targetCase_ == 21) && (targetFileBuilder_ != null)) {
return targetFileBuilder_.getMessageOrBuilder();
} else {
if (targetCase_ == 21) {
return (com.cognite.client.dto.FileMetadata) target_;
}
return com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.FileMetadata target_file = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.FileMetadata, com.cognite.client.dto.FileMetadata.Builder, com.cognite.client.dto.FileMetadataOrBuilder>
getTargetFileFieldBuilder() {
if (targetFileBuilder_ == null) {
if (!(targetCase_ == 21)) {
target_ = com.cognite.client.dto.FileMetadata.getDefaultInstance();
}
targetFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.FileMetadata, com.cognite.client.dto.FileMetadata.Builder, com.cognite.client.dto.FileMetadataOrBuilder>(
(com.cognite.client.dto.FileMetadata) target_,
getParentForChildren(),
isClean());
target_ = null;
}
targetCase_ = 21;
onChanged();;
return targetFileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.SequenceMetadata, com.cognite.client.dto.SequenceMetadata.Builder, com.cognite.client.dto.SequenceMetadataOrBuilder> targetSequenceBuilder_;
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
* @return Whether the targetSequence field is set.
*/
@java.lang.Override
public boolean hasTargetSequence() {
return targetCase_ == 22;
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
* @return The targetSequence.
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadata getTargetSequence() {
if (targetSequenceBuilder_ == null) {
if (targetCase_ == 22) {
return (com.cognite.client.dto.SequenceMetadata) target_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
} else {
if (targetCase_ == 22) {
return targetSequenceBuilder_.getMessage();
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
public Builder setTargetSequence(com.cognite.client.dto.SequenceMetadata value) {
if (targetSequenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
target_ = value;
onChanged();
} else {
targetSequenceBuilder_.setMessage(value);
}
targetCase_ = 22;
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
public Builder setTargetSequence(
com.cognite.client.dto.SequenceMetadata.Builder builderForValue) {
if (targetSequenceBuilder_ == null) {
target_ = builderForValue.build();
onChanged();
} else {
targetSequenceBuilder_.setMessage(builderForValue.build());
}
targetCase_ = 22;
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
public Builder mergeTargetSequence(com.cognite.client.dto.SequenceMetadata value) {
if (targetSequenceBuilder_ == null) {
if (targetCase_ == 22 &&
target_ != com.cognite.client.dto.SequenceMetadata.getDefaultInstance()) {
target_ = com.cognite.client.dto.SequenceMetadata.newBuilder((com.cognite.client.dto.SequenceMetadata) target_)
.mergeFrom(value).buildPartial();
} else {
target_ = value;
}
onChanged();
} else {
if (targetCase_ == 22) {
targetSequenceBuilder_.mergeFrom(value);
}
targetSequenceBuilder_.setMessage(value);
}
targetCase_ = 22;
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
public Builder clearTargetSequence() {
if (targetSequenceBuilder_ == null) {
if (targetCase_ == 22) {
targetCase_ = 0;
target_ = null;
onChanged();
}
} else {
if (targetCase_ == 22) {
targetCase_ = 0;
target_ = null;
}
targetSequenceBuilder_.clear();
}
return this;
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
public com.cognite.client.dto.SequenceMetadata.Builder getTargetSequenceBuilder() {
return getTargetSequenceFieldBuilder().getBuilder();
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
@java.lang.Override
public com.cognite.client.dto.SequenceMetadataOrBuilder getTargetSequenceOrBuilder() {
if ((targetCase_ == 22) && (targetSequenceBuilder_ != null)) {
return targetSequenceBuilder_.getMessageOrBuilder();
} else {
if (targetCase_ == 22) {
return (com.cognite.client.dto.SequenceMetadata) target_;
}
return com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
}
/**
* .com.cognite.beam.proto.SequenceMetadata target_sequence = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.SequenceMetadata, com.cognite.client.dto.SequenceMetadata.Builder, com.cognite.client.dto.SequenceMetadataOrBuilder>
getTargetSequenceFieldBuilder() {
if (targetSequenceBuilder_ == null) {
if (!(targetCase_ == 22)) {
target_ = com.cognite.client.dto.SequenceMetadata.getDefaultInstance();
}
targetSequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.cognite.client.dto.SequenceMetadata, com.cognite.client.dto.SequenceMetadata.Builder, com.cognite.client.dto.SequenceMetadataOrBuilder>(
(com.cognite.client.dto.SequenceMetadata) target_,
getParentForChildren(),
isClean());
target_ = null;
}
targetCase_ = 22;
onChanged();;
return targetSequenceBuilder_;
}
@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:com.cognite.beam.proto.Relationship)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.Relationship)
private static final com.cognite.client.dto.Relationship DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.Relationship();
}
public static com.cognite.client.dto.Relationship getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Relationship parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Relationship(input, extensionRegistry);
}
};
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.cognite.client.dto.Relationship getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy