All Downloads are FREE. Search and download functionalities are using the official Maven repository.

proto.com.cognite.client.dto.EntityMatch Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: entity_match.proto

package com.cognite.client.dto;

/**
 * 
 *A potential match (match to object) together with the associated confidence score of the match.
 * 
* * Protobuf type {@code com.cognite.beam.proto.EntityMatch} */ public final class EntityMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.cognite.beam.proto.EntityMatch) EntityMatchOrBuilder { private static final long serialVersionUID = 0L; // Use EntityMatch.newBuilder() to construct. private EntityMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EntityMatch() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EntityMatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EntityMatch( 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 9: { bitField0_ |= 0x00000001; score_ = input.readDouble(); break; } case 18: { com.google.protobuf.Struct.Builder subBuilder = null; if (target_ != null) { subBuilder = target_.toBuilder(); } target_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = subBuilder.buildPartial(); } 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 { 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_EntityMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.EntityMatch.class, com.cognite.client.dto.EntityMatch.Builder.class); } private int bitField0_; public static final int SCORE_FIELD_NUMBER = 1; private double score_; /** * optional double score = 1; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000001) != 0); } /** * optional double score = 1; * @return The score. */ @java.lang.Override public double getScore() { return score_; } public static final int TARGET_FIELD_NUMBER = 2; private com.google.protobuf.Struct target_; /** * .google.protobuf.Struct target = 2; * @return Whether the target field is set. */ @java.lang.Override public boolean hasTarget() { return target_ != null; } /** * .google.protobuf.Struct target = 2; * @return The target. */ @java.lang.Override public com.google.protobuf.Struct getTarget() { return target_ == null ? com.google.protobuf.Struct.getDefaultInstance() : target_; } /** * .google.protobuf.Struct target = 2; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getTargetOrBuilder() { return getTarget(); } 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.writeDouble(1, score_); } if (target_ != null) { output.writeMessage(2, getTarget()); } 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 .computeDoubleSize(1, score_); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTarget()); } 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.EntityMatch)) { return super.equals(obj); } com.cognite.client.dto.EntityMatch other = (com.cognite.client.dto.EntityMatch) obj; if (hasScore() != other.hasScore()) return false; if (hasScore()) { if (java.lang.Double.doubleToLongBits(getScore()) != java.lang.Double.doubleToLongBits( other.getScore())) return false; } if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { if (!getTarget() .equals(other.getTarget())) 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 (hasScore()) { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getScore())); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.cognite.client.dto.EntityMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.EntityMatch 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.EntityMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.EntityMatch 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.EntityMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.EntityMatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.cognite.client.dto.EntityMatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.EntityMatch 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.EntityMatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.cognite.client.dto.EntityMatch 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.EntityMatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.EntityMatch 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.EntityMatch 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; } /** *
   *A potential match (match to object) together with the associated confidence score of the match.
   * 
* * Protobuf type {@code com.cognite.beam.proto.EntityMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.EntityMatch) com.cognite.client.dto.EntityMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.EntityMatch.class, com.cognite.client.dto.EntityMatch.Builder.class); } // Construct using com.cognite.client.dto.EntityMatch.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(); score_ = 0D; bitField0_ = (bitField0_ & ~0x00000001); if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatch_descriptor; } @java.lang.Override public com.cognite.client.dto.EntityMatch getDefaultInstanceForType() { return com.cognite.client.dto.EntityMatch.getDefaultInstance(); } @java.lang.Override public com.cognite.client.dto.EntityMatch build() { com.cognite.client.dto.EntityMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.cognite.client.dto.EntityMatch buildPartial() { com.cognite.client.dto.EntityMatch result = new com.cognite.client.dto.EntityMatch(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.score_ = score_; to_bitField0_ |= 0x00000001; } if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } 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.EntityMatch) { return mergeFrom((com.cognite.client.dto.EntityMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.cognite.client.dto.EntityMatch other) { if (other == com.cognite.client.dto.EntityMatch.getDefaultInstance()) return this; if (other.hasScore()) { setScore(other.getScore()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.EntityMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.cognite.client.dto.EntityMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private double score_ ; /** * optional double score = 1; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000001) != 0); } /** * optional double score = 1; * @return The score. */ @java.lang.Override public double getScore() { return score_; } /** * optional double score = 1; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(double value) { bitField0_ |= 0x00000001; score_ = value; onChanged(); return this; } /** * optional double score = 1; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000001); score_ = 0D; onChanged(); return this; } private com.google.protobuf.Struct target_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> targetBuilder_; /** * .google.protobuf.Struct target = 2; * @return Whether the target field is set. */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * .google.protobuf.Struct target = 2; * @return The target. */ public com.google.protobuf.Struct getTarget() { if (targetBuilder_ == null) { return target_ == null ? com.google.protobuf.Struct.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** * .google.protobuf.Struct target = 2; */ public Builder setTarget(com.google.protobuf.Struct value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Struct target = 2; */ public Builder setTarget( com.google.protobuf.Struct.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Struct target = 2; */ public Builder mergeTarget(com.google.protobuf.Struct value) { if (targetBuilder_ == null) { if (target_ != null) { target_ = com.google.protobuf.Struct.newBuilder(target_).mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Struct target = 2; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * .google.protobuf.Struct target = 2; */ public com.google.protobuf.Struct.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * .google.protobuf.Struct target = 2; */ public com.google.protobuf.StructOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_ == null ? com.google.protobuf.Struct.getDefaultInstance() : target_; } } /** * .google.protobuf.Struct target = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } @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.EntityMatch) } // @@protoc_insertion_point(class_scope:com.cognite.beam.proto.EntityMatch) private static final com.cognite.client.dto.EntityMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.cognite.client.dto.EntityMatch(); } public static com.cognite.client.dto.EntityMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EntityMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EntityMatch(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.EntityMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy