proto.com.cognite.client.dto.EntityMatchModel 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: entity_match.proto
package com.cognite.client.dto;
/**
*
*An entity match model. Represents a matching model along with its configuration and meta data.
*
*
* Protobuf type {@code com.cognite.beam.proto.EntityMatchModel}
*/
public final class EntityMatchModel extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.cognite.beam.proto.EntityMatchModel)
EntityMatchModelOrBuilder {
private static final long serialVersionUID = 0L;
// Use EntityMatchModel.newBuilder() to construct.
private EntityMatchModel(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EntityMatchModel() {
externalId_ = "";
status_ = "";
name_ = "";
description_ = "";
featureType_ = "";
matchFields_ = java.util.Collections.emptyList();
classifier_ = "";
originalId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EntityMatchModel();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EntityMatchModel(
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 8: {
bitField0_ |= 0x00000001;
id_ = input.readInt64();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
externalId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
status_ = s;
break;
}
case 32: {
bitField0_ |= 0x00000008;
createdTime_ = input.readInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
startTime_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
statusTime_ = input.readInt64();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
name_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
description_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
featureType_ = s;
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
matchFields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
matchFields_.add(
input.readMessage(com.cognite.client.dto.MatchField.parser(), extensionRegistry));
break;
}
case 88: {
bitField0_ |= 0x00000200;
ignoreMissingFields_ = input.readBool();
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
classifier_ = s;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
originalId_ = s;
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_ & 0x00000200) != 0)) {
matchFields_ = java.util.Collections.unmodifiableList(matchFields_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchModel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchModel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.EntityMatchModel.class, com.cognite.client.dto.EntityMatchModel.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
* optional int64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int EXTERNAL_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object externalId_;
/**
* optional string external_id = 2;
* @return Whether the externalId field is set.
*/
@java.lang.Override
public boolean hasExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string external_id = 2;
* @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;
}
}
/**
* optional string external_id = 2;
* @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 STATUS_FIELD_NUMBER = 3;
private volatile java.lang.Object status_;
/**
* optional string status = 3;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string status = 3;
* @return The status.
*/
@java.lang.Override
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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();
status_ = s;
return s;
}
}
/**
* optional string status = 3;
* @return The bytes for status.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_TIME_FIELD_NUMBER = 4;
private long createdTime_;
/**
* optional int64 created_time = 4;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 created_time = 4;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
public static final int START_TIME_FIELD_NUMBER = 5;
private long startTime_;
/**
* optional int64 start_time = 5;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 start_time = 5;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
public static final int STATUS_TIME_FIELD_NUMBER = 6;
private long statusTime_;
/**
* optional int64 status_time = 6;
* @return Whether the statusTime field is set.
*/
@java.lang.Override
public boolean hasStatusTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 status_time = 6;
* @return The statusTime.
*/
@java.lang.Override
public long getStatusTime() {
return statusTime_;
}
public static final int NAME_FIELD_NUMBER = 7;
private volatile java.lang.Object name_;
/**
* optional string name = 7;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string name = 7;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* optional string name = 7;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 8;
private volatile java.lang.Object description_;
/**
* optional string description = 8;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string description = 8;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
* optional string description = 8;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEATURE_TYPE_FIELD_NUMBER = 9;
private volatile java.lang.Object featureType_;
/**
* optional string feature_type = 9;
* @return Whether the featureType field is set.
*/
@java.lang.Override
public boolean hasFeatureType() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string feature_type = 9;
* @return The featureType.
*/
@java.lang.Override
public java.lang.String getFeatureType() {
java.lang.Object ref = featureType_;
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();
featureType_ = s;
return s;
}
}
/**
* optional string feature_type = 9;
* @return The bytes for featureType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeatureTypeBytes() {
java.lang.Object ref = featureType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
featureType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MATCH_FIELDS_FIELD_NUMBER = 10;
private java.util.List matchFields_;
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
@java.lang.Override
public java.util.List getMatchFieldsList() {
return matchFields_;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
@java.lang.Override
public java.util.List extends com.cognite.client.dto.MatchFieldOrBuilder>
getMatchFieldsOrBuilderList() {
return matchFields_;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
@java.lang.Override
public int getMatchFieldsCount() {
return matchFields_.size();
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
@java.lang.Override
public com.cognite.client.dto.MatchField getMatchFields(int index) {
return matchFields_.get(index);
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
@java.lang.Override
public com.cognite.client.dto.MatchFieldOrBuilder getMatchFieldsOrBuilder(
int index) {
return matchFields_.get(index);
}
public static final int IGNORE_MISSING_FIELDS_FIELD_NUMBER = 11;
private boolean ignoreMissingFields_;
/**
* optional bool ignore_missing_fields = 11;
* @return Whether the ignoreMissingFields field is set.
*/
@java.lang.Override
public boolean hasIgnoreMissingFields() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional bool ignore_missing_fields = 11;
* @return The ignoreMissingFields.
*/
@java.lang.Override
public boolean getIgnoreMissingFields() {
return ignoreMissingFields_;
}
public static final int CLASSIFIER_FIELD_NUMBER = 12;
private volatile java.lang.Object classifier_;
/**
* optional string classifier = 12;
* @return Whether the classifier field is set.
*/
@java.lang.Override
public boolean hasClassifier() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string classifier = 12;
* @return The classifier.
*/
@java.lang.Override
public java.lang.String getClassifier() {
java.lang.Object ref = classifier_;
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();
classifier_ = s;
return s;
}
}
/**
* optional string classifier = 12;
* @return The bytes for classifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassifierBytes() {
java.lang.Object ref = classifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORIGINAL_ID_FIELD_NUMBER = 13;
private volatile java.lang.Object originalId_;
/**
* optional string original_id = 13;
* @return Whether the originalId field is set.
*/
@java.lang.Override
public boolean hasOriginalId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string original_id = 13;
* @return The originalId.
*/
@java.lang.Override
public java.lang.String getOriginalId() {
java.lang.Object ref = originalId_;
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();
originalId_ = s;
return s;
}
}
/**
* optional string original_id = 13;
* @return The bytes for originalId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginalIdBytes() {
java.lang.Object ref = originalId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, status_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt64(4, createdTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, startTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(6, statusTime_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, featureType_);
}
for (int i = 0; i < matchFields_.size(); i++) {
output.writeMessage(10, matchFields_.get(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(11, ignoreMissingFields_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, classifier_);
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, originalId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, status_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, createdTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, startTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, statusTime_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, featureType_);
}
for (int i = 0; i < matchFields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, matchFields_.get(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, ignoreMissingFields_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, classifier_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, originalId_);
}
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.EntityMatchModel)) {
return super.equals(obj);
}
com.cognite.client.dto.EntityMatchModel other = (com.cognite.client.dto.EntityMatchModel) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasExternalId() != other.hasExternalId()) return false;
if (hasExternalId()) {
if (!getExternalId()
.equals(other.getExternalId())) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasCreatedTime() != other.hasCreatedTime()) return false;
if (hasCreatedTime()) {
if (getCreatedTime()
!= other.getCreatedTime()) return false;
}
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (getStartTime()
!= other.getStartTime()) return false;
}
if (hasStatusTime() != other.hasStatusTime()) return false;
if (hasStatusTime()) {
if (getStatusTime()
!= other.getStatusTime()) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasFeatureType() != other.hasFeatureType()) return false;
if (hasFeatureType()) {
if (!getFeatureType()
.equals(other.getFeatureType())) return false;
}
if (!getMatchFieldsList()
.equals(other.getMatchFieldsList())) return false;
if (hasIgnoreMissingFields() != other.hasIgnoreMissingFields()) return false;
if (hasIgnoreMissingFields()) {
if (getIgnoreMissingFields()
!= other.getIgnoreMissingFields()) return false;
}
if (hasClassifier() != other.hasClassifier()) return false;
if (hasClassifier()) {
if (!getClassifier()
.equals(other.getClassifier())) return false;
}
if (hasOriginalId() != other.hasOriginalId()) return false;
if (hasOriginalId()) {
if (!getOriginalId()
.equals(other.getOriginalId())) return false;
}
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();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasExternalId()) {
hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getExternalId().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasCreatedTime()) {
hash = (37 * hash) + CREATED_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCreatedTime());
}
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTime());
}
if (hasStatusTime()) {
hash = (37 * hash) + STATUS_TIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStatusTime());
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasFeatureType()) {
hash = (37 * hash) + FEATURE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getFeatureType().hashCode();
}
if (getMatchFieldsCount() > 0) {
hash = (37 * hash) + MATCH_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getMatchFieldsList().hashCode();
}
if (hasIgnoreMissingFields()) {
hash = (37 * hash) + IGNORE_MISSING_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreMissingFields());
}
if (hasClassifier()) {
hash = (37 * hash) + CLASSIFIER_FIELD_NUMBER;
hash = (53 * hash) + getClassifier().hashCode();
}
if (hasOriginalId()) {
hash = (37 * hash) + ORIGINAL_ID_FIELD_NUMBER;
hash = (53 * hash) + getOriginalId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.cognite.client.dto.EntityMatchModel parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.EntityMatchModel 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.EntityMatchModel parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.EntityMatchModel 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.EntityMatchModel parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.cognite.client.dto.EntityMatchModel parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.cognite.client.dto.EntityMatchModel parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.EntityMatchModel 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.EntityMatchModel parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.cognite.client.dto.EntityMatchModel 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.EntityMatchModel parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.cognite.client.dto.EntityMatchModel 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.EntityMatchModel 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;
}
/**
*
*An entity match model. Represents a matching model along with its configuration and meta data.
*
*
* Protobuf type {@code com.cognite.beam.proto.EntityMatchModel}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.EntityMatchModel)
com.cognite.client.dto.EntityMatchModelOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchModel_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchModel_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.cognite.client.dto.EntityMatchModel.class, com.cognite.client.dto.EntityMatchModel.Builder.class);
}
// Construct using com.cognite.client.dto.EntityMatchModel.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMatchFieldsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
externalId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
status_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
createdTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
statusTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
featureType_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
if (matchFieldsBuilder_ == null) {
matchFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
matchFieldsBuilder_.clear();
}
ignoreMissingFields_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
classifier_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
originalId_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchModel_descriptor;
}
@java.lang.Override
public com.cognite.client.dto.EntityMatchModel getDefaultInstanceForType() {
return com.cognite.client.dto.EntityMatchModel.getDefaultInstance();
}
@java.lang.Override
public com.cognite.client.dto.EntityMatchModel build() {
com.cognite.client.dto.EntityMatchModel result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.cognite.client.dto.EntityMatchModel buildPartial() {
com.cognite.client.dto.EntityMatchModel result = new com.cognite.client.dto.EntityMatchModel(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.externalId_ = externalId_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createdTime_ = createdTime_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.startTime_ = startTime_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.statusTime_ = statusTime_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.featureType_ = featureType_;
if (matchFieldsBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
matchFields_ = java.util.Collections.unmodifiableList(matchFields_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.matchFields_ = matchFields_;
} else {
result.matchFields_ = matchFieldsBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.ignoreMissingFields_ = ignoreMissingFields_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.classifier_ = classifier_;
if (((from_bitField0_ & 0x00001000) != 0)) {
to_bitField0_ |= 0x00000800;
}
result.originalId_ = originalId_;
result.bitField0_ = to_bitField0_;
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.EntityMatchModel) {
return mergeFrom((com.cognite.client.dto.EntityMatchModel)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.cognite.client.dto.EntityMatchModel other) {
if (other == com.cognite.client.dto.EntityMatchModel.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasExternalId()) {
bitField0_ |= 0x00000002;
externalId_ = other.externalId_;
onChanged();
}
if (other.hasStatus()) {
bitField0_ |= 0x00000004;
status_ = other.status_;
onChanged();
}
if (other.hasCreatedTime()) {
setCreatedTime(other.getCreatedTime());
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (other.hasStatusTime()) {
setStatusTime(other.getStatusTime());
}
if (other.hasName()) {
bitField0_ |= 0x00000040;
name_ = other.name_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000080;
description_ = other.description_;
onChanged();
}
if (other.hasFeatureType()) {
bitField0_ |= 0x00000100;
featureType_ = other.featureType_;
onChanged();
}
if (matchFieldsBuilder_ == null) {
if (!other.matchFields_.isEmpty()) {
if (matchFields_.isEmpty()) {
matchFields_ = other.matchFields_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureMatchFieldsIsMutable();
matchFields_.addAll(other.matchFields_);
}
onChanged();
}
} else {
if (!other.matchFields_.isEmpty()) {
if (matchFieldsBuilder_.isEmpty()) {
matchFieldsBuilder_.dispose();
matchFieldsBuilder_ = null;
matchFields_ = other.matchFields_;
bitField0_ = (bitField0_ & ~0x00000200);
matchFieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMatchFieldsFieldBuilder() : null;
} else {
matchFieldsBuilder_.addAllMessages(other.matchFields_);
}
}
}
if (other.hasIgnoreMissingFields()) {
setIgnoreMissingFields(other.getIgnoreMissingFields());
}
if (other.hasClassifier()) {
bitField0_ |= 0x00000800;
classifier_ = other.classifier_;
onChanged();
}
if (other.hasOriginalId()) {
bitField0_ |= 0x00001000;
originalId_ = other.originalId_;
onChanged();
}
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.EntityMatchModel parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.cognite.client.dto.EntityMatchModel) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
* optional int64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
* optional int64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object externalId_ = "";
/**
* optional string external_id = 2;
* @return Whether the externalId field is set.
*/
public boolean hasExternalId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string external_id = 2;
* @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;
}
}
/**
* optional string external_id = 2;
* @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;
}
}
/**
* optional string external_id = 2;
* @param value The externalId to set.
* @return This builder for chaining.
*/
public Builder setExternalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
externalId_ = value;
onChanged();
return this;
}
/**
* optional string external_id = 2;
* @return This builder for chaining.
*/
public Builder clearExternalId() {
bitField0_ = (bitField0_ & ~0x00000002);
externalId_ = getDefaultInstance().getExternalId();
onChanged();
return this;
}
/**
* optional string external_id = 2;
* @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);
bitField0_ |= 0x00000002;
externalId_ = value;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
* optional string status = 3;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string status = 3;
* @return The status.
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string status = 3;
* @return The bytes for status.
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string status = 3;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
/**
* optional string status = 3;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = getDefaultInstance().getStatus();
onChanged();
return this;
}
/**
* optional string status = 3;
* @param value The bytes for status to set.
* @return This builder for chaining.
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
status_ = value;
onChanged();
return this;
}
private long createdTime_ ;
/**
* optional int64 created_time = 4;
* @return Whether the createdTime field is set.
*/
@java.lang.Override
public boolean hasCreatedTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int64 created_time = 4;
* @return The createdTime.
*/
@java.lang.Override
public long getCreatedTime() {
return createdTime_;
}
/**
* optional int64 created_time = 4;
* @param value The createdTime to set.
* @return This builder for chaining.
*/
public Builder setCreatedTime(long value) {
bitField0_ |= 0x00000008;
createdTime_ = value;
onChanged();
return this;
}
/**
* optional int64 created_time = 4;
* @return This builder for chaining.
*/
public Builder clearCreatedTime() {
bitField0_ = (bitField0_ & ~0x00000008);
createdTime_ = 0L;
onChanged();
return this;
}
private long startTime_ ;
/**
* optional int64 start_time = 5;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 start_time = 5;
* @return The startTime.
*/
@java.lang.Override
public long getStartTime() {
return startTime_;
}
/**
* optional int64 start_time = 5;
* @param value The startTime to set.
* @return This builder for chaining.
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000010;
startTime_ = value;
onChanged();
return this;
}
/**
* optional int64 start_time = 5;
* @return This builder for chaining.
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000010);
startTime_ = 0L;
onChanged();
return this;
}
private long statusTime_ ;
/**
* optional int64 status_time = 6;
* @return Whether the statusTime field is set.
*/
@java.lang.Override
public boolean hasStatusTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 status_time = 6;
* @return The statusTime.
*/
@java.lang.Override
public long getStatusTime() {
return statusTime_;
}
/**
* optional int64 status_time = 6;
* @param value The statusTime to set.
* @return This builder for chaining.
*/
public Builder setStatusTime(long value) {
bitField0_ |= 0x00000020;
statusTime_ = value;
onChanged();
return this;
}
/**
* optional int64 status_time = 6;
* @return This builder for chaining.
*/
public Builder clearStatusTime() {
bitField0_ = (bitField0_ & ~0x00000020);
statusTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 7;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string name = 7;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 7;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 7;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 7;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000040);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 7;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000040;
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 8;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string description = 8;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 8;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 8;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 8;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000080);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 8;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000080;
description_ = value;
onChanged();
return this;
}
private java.lang.Object featureType_ = "";
/**
* optional string feature_type = 9;
* @return Whether the featureType field is set.
*/
public boolean hasFeatureType() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string feature_type = 9;
* @return The featureType.
*/
public java.lang.String getFeatureType() {
java.lang.Object ref = featureType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
featureType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string feature_type = 9;
* @return The bytes for featureType.
*/
public com.google.protobuf.ByteString
getFeatureTypeBytes() {
java.lang.Object ref = featureType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
featureType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string feature_type = 9;
* @param value The featureType to set.
* @return This builder for chaining.
*/
public Builder setFeatureType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
featureType_ = value;
onChanged();
return this;
}
/**
* optional string feature_type = 9;
* @return This builder for chaining.
*/
public Builder clearFeatureType() {
bitField0_ = (bitField0_ & ~0x00000100);
featureType_ = getDefaultInstance().getFeatureType();
onChanged();
return this;
}
/**
* optional string feature_type = 9;
* @param value The bytes for featureType to set.
* @return This builder for chaining.
*/
public Builder setFeatureTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000100;
featureType_ = value;
onChanged();
return this;
}
private java.util.List matchFields_ =
java.util.Collections.emptyList();
private void ensureMatchFieldsIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
matchFields_ = new java.util.ArrayList(matchFields_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.MatchField, com.cognite.client.dto.MatchField.Builder, com.cognite.client.dto.MatchFieldOrBuilder> matchFieldsBuilder_;
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public java.util.List getMatchFieldsList() {
if (matchFieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(matchFields_);
} else {
return matchFieldsBuilder_.getMessageList();
}
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public int getMatchFieldsCount() {
if (matchFieldsBuilder_ == null) {
return matchFields_.size();
} else {
return matchFieldsBuilder_.getCount();
}
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public com.cognite.client.dto.MatchField getMatchFields(int index) {
if (matchFieldsBuilder_ == null) {
return matchFields_.get(index);
} else {
return matchFieldsBuilder_.getMessage(index);
}
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder setMatchFields(
int index, com.cognite.client.dto.MatchField value) {
if (matchFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMatchFieldsIsMutable();
matchFields_.set(index, value);
onChanged();
} else {
matchFieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder setMatchFields(
int index, com.cognite.client.dto.MatchField.Builder builderForValue) {
if (matchFieldsBuilder_ == null) {
ensureMatchFieldsIsMutable();
matchFields_.set(index, builderForValue.build());
onChanged();
} else {
matchFieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder addMatchFields(com.cognite.client.dto.MatchField value) {
if (matchFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMatchFieldsIsMutable();
matchFields_.add(value);
onChanged();
} else {
matchFieldsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder addMatchFields(
int index, com.cognite.client.dto.MatchField value) {
if (matchFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMatchFieldsIsMutable();
matchFields_.add(index, value);
onChanged();
} else {
matchFieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder addMatchFields(
com.cognite.client.dto.MatchField.Builder builderForValue) {
if (matchFieldsBuilder_ == null) {
ensureMatchFieldsIsMutable();
matchFields_.add(builderForValue.build());
onChanged();
} else {
matchFieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder addMatchFields(
int index, com.cognite.client.dto.MatchField.Builder builderForValue) {
if (matchFieldsBuilder_ == null) {
ensureMatchFieldsIsMutable();
matchFields_.add(index, builderForValue.build());
onChanged();
} else {
matchFieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder addAllMatchFields(
java.lang.Iterable extends com.cognite.client.dto.MatchField> values) {
if (matchFieldsBuilder_ == null) {
ensureMatchFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, matchFields_);
onChanged();
} else {
matchFieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder clearMatchFields() {
if (matchFieldsBuilder_ == null) {
matchFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
matchFieldsBuilder_.clear();
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public Builder removeMatchFields(int index) {
if (matchFieldsBuilder_ == null) {
ensureMatchFieldsIsMutable();
matchFields_.remove(index);
onChanged();
} else {
matchFieldsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public com.cognite.client.dto.MatchField.Builder getMatchFieldsBuilder(
int index) {
return getMatchFieldsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public com.cognite.client.dto.MatchFieldOrBuilder getMatchFieldsOrBuilder(
int index) {
if (matchFieldsBuilder_ == null) {
return matchFields_.get(index); } else {
return matchFieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public java.util.List extends com.cognite.client.dto.MatchFieldOrBuilder>
getMatchFieldsOrBuilderList() {
if (matchFieldsBuilder_ != null) {
return matchFieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(matchFields_);
}
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public com.cognite.client.dto.MatchField.Builder addMatchFieldsBuilder() {
return getMatchFieldsFieldBuilder().addBuilder(
com.cognite.client.dto.MatchField.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public com.cognite.client.dto.MatchField.Builder addMatchFieldsBuilder(
int index) {
return getMatchFieldsFieldBuilder().addBuilder(
index, com.cognite.client.dto.MatchField.getDefaultInstance());
}
/**
* repeated .com.cognite.beam.proto.MatchField match_fields = 10;
*/
public java.util.List
getMatchFieldsBuilderList() {
return getMatchFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.MatchField, com.cognite.client.dto.MatchField.Builder, com.cognite.client.dto.MatchFieldOrBuilder>
getMatchFieldsFieldBuilder() {
if (matchFieldsBuilder_ == null) {
matchFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.cognite.client.dto.MatchField, com.cognite.client.dto.MatchField.Builder, com.cognite.client.dto.MatchFieldOrBuilder>(
matchFields_,
((bitField0_ & 0x00000200) != 0),
getParentForChildren(),
isClean());
matchFields_ = null;
}
return matchFieldsBuilder_;
}
private boolean ignoreMissingFields_ ;
/**
* optional bool ignore_missing_fields = 11;
* @return Whether the ignoreMissingFields field is set.
*/
@java.lang.Override
public boolean hasIgnoreMissingFields() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional bool ignore_missing_fields = 11;
* @return The ignoreMissingFields.
*/
@java.lang.Override
public boolean getIgnoreMissingFields() {
return ignoreMissingFields_;
}
/**
* optional bool ignore_missing_fields = 11;
* @param value The ignoreMissingFields to set.
* @return This builder for chaining.
*/
public Builder setIgnoreMissingFields(boolean value) {
bitField0_ |= 0x00000400;
ignoreMissingFields_ = value;
onChanged();
return this;
}
/**
* optional bool ignore_missing_fields = 11;
* @return This builder for chaining.
*/
public Builder clearIgnoreMissingFields() {
bitField0_ = (bitField0_ & ~0x00000400);
ignoreMissingFields_ = false;
onChanged();
return this;
}
private java.lang.Object classifier_ = "";
/**
* optional string classifier = 12;
* @return Whether the classifier field is set.
*/
public boolean hasClassifier() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string classifier = 12;
* @return The classifier.
*/
public java.lang.String getClassifier() {
java.lang.Object ref = classifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string classifier = 12;
* @return The bytes for classifier.
*/
public com.google.protobuf.ByteString
getClassifierBytes() {
java.lang.Object ref = classifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string classifier = 12;
* @param value The classifier to set.
* @return This builder for chaining.
*/
public Builder setClassifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
classifier_ = value;
onChanged();
return this;
}
/**
* optional string classifier = 12;
* @return This builder for chaining.
*/
public Builder clearClassifier() {
bitField0_ = (bitField0_ & ~0x00000800);
classifier_ = getDefaultInstance().getClassifier();
onChanged();
return this;
}
/**
* optional string classifier = 12;
* @param value The bytes for classifier to set.
* @return This builder for chaining.
*/
public Builder setClassifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000800;
classifier_ = value;
onChanged();
return this;
}
private java.lang.Object originalId_ = "";
/**
* optional string original_id = 13;
* @return Whether the originalId field is set.
*/
public boolean hasOriginalId() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional string original_id = 13;
* @return The originalId.
*/
public java.lang.String getOriginalId() {
java.lang.Object ref = originalId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
originalId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string original_id = 13;
* @return The bytes for originalId.
*/
public com.google.protobuf.ByteString
getOriginalIdBytes() {
java.lang.Object ref = originalId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string original_id = 13;
* @param value The originalId to set.
* @return This builder for chaining.
*/
public Builder setOriginalId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
originalId_ = value;
onChanged();
return this;
}
/**
* optional string original_id = 13;
* @return This builder for chaining.
*/
public Builder clearOriginalId() {
bitField0_ = (bitField0_ & ~0x00001000);
originalId_ = getDefaultInstance().getOriginalId();
onChanged();
return this;
}
/**
* optional string original_id = 13;
* @param value The bytes for originalId to set.
* @return This builder for chaining.
*/
public Builder setOriginalIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00001000;
originalId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.cognite.beam.proto.EntityMatchModel)
}
// @@protoc_insertion_point(class_scope:com.cognite.beam.proto.EntityMatchModel)
private static final com.cognite.client.dto.EntityMatchModel DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.cognite.client.dto.EntityMatchModel();
}
public static com.cognite.client.dto.EntityMatchModel getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EntityMatchModel parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EntityMatchModel(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.EntityMatchModel getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy