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

proto.com.cognite.client.dto.EntityMatchResult 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;

/**
 * 
 *An entity match result. The result contains the source (match from object) with a set of
 *potential matches along with a confidence score.
 * 
* * Protobuf type {@code com.cognite.beam.proto.EntityMatchResult} */ public final class EntityMatchResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.cognite.beam.proto.EntityMatchResult) EntityMatchResultOrBuilder { private static final long serialVersionUID = 0L; // Use EntityMatchResult.newBuilder() to construct. private EntityMatchResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EntityMatchResult() { matches_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EntityMatchResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EntityMatchResult( 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: { com.google.protobuf.Struct.Builder subBuilder = null; if (source_ != null) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { matches_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } matches_.add( input.readMessage(com.cognite.client.dto.EntityMatch.parser(), extensionRegistry)); 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_ & 0x00000001) != 0)) { matches_ = java.util.Collections.unmodifiableList(matches_); } 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_EntityMatchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.EntityMatchResult.class, com.cognite.client.dto.EntityMatchResult.Builder.class); } public static final int SOURCE_FIELD_NUMBER = 1; private com.google.protobuf.Struct source_; /** * .google.protobuf.Struct source = 1; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return source_ != null; } /** * .google.protobuf.Struct source = 1; * @return The source. */ @java.lang.Override public com.google.protobuf.Struct getSource() { return source_ == null ? com.google.protobuf.Struct.getDefaultInstance() : source_; } /** * .google.protobuf.Struct source = 1; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getSourceOrBuilder() { return getSource(); } public static final int MATCHES_FIELD_NUMBER = 2; private java.util.List matches_; /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ @java.lang.Override public java.util.List getMatchesList() { return matches_; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ @java.lang.Override public java.util.List getMatchesOrBuilderList() { return matches_; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ @java.lang.Override public int getMatchesCount() { return matches_.size(); } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ @java.lang.Override public com.cognite.client.dto.EntityMatch getMatches(int index) { return matches_.get(index); } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ @java.lang.Override public com.cognite.client.dto.EntityMatchOrBuilder getMatchesOrBuilder( int index) { return matches_.get(index); } 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 (source_ != null) { output.writeMessage(1, getSource()); } for (int i = 0; i < matches_.size(); i++) { output.writeMessage(2, matches_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (source_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSource()); } for (int i = 0; i < matches_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, matches_.get(i)); } 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.EntityMatchResult)) { return super.equals(obj); } com.cognite.client.dto.EntityMatchResult other = (com.cognite.client.dto.EntityMatchResult) obj; if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (!getMatchesList() .equals(other.getMatchesList())) 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 (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (getMatchesCount() > 0) { hash = (37 * hash) + MATCHES_FIELD_NUMBER; hash = (53 * hash) + getMatchesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.cognite.client.dto.EntityMatchResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.EntityMatchResult 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.EntityMatchResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.EntityMatchResult 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.EntityMatchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.cognite.client.dto.EntityMatchResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.cognite.client.dto.EntityMatchResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.EntityMatchResult 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.EntityMatchResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.cognite.client.dto.EntityMatchResult 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.EntityMatchResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.cognite.client.dto.EntityMatchResult 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.EntityMatchResult 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 result. The result contains the source (match from object) with a set of
   *potential matches along with a confidence score.
   * 
* * Protobuf type {@code com.cognite.beam.proto.EntityMatchResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.cognite.beam.proto.EntityMatchResult) com.cognite.client.dto.EntityMatchResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.cognite.client.dto.EntityMatchResult.class, com.cognite.client.dto.EntityMatchResult.Builder.class); } // Construct using com.cognite.client.dto.EntityMatchResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMatchesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { source_ = null; sourceBuilder_ = null; } if (matchesBuilder_ == null) { matches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { matchesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.cognite.client.dto.EntityMatchOuterClass.internal_static_com_cognite_beam_proto_EntityMatchResult_descriptor; } @java.lang.Override public com.cognite.client.dto.EntityMatchResult getDefaultInstanceForType() { return com.cognite.client.dto.EntityMatchResult.getDefaultInstance(); } @java.lang.Override public com.cognite.client.dto.EntityMatchResult build() { com.cognite.client.dto.EntityMatchResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.cognite.client.dto.EntityMatchResult buildPartial() { com.cognite.client.dto.EntityMatchResult result = new com.cognite.client.dto.EntityMatchResult(this); int from_bitField0_ = bitField0_; if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } if (matchesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { matches_ = java.util.Collections.unmodifiableList(matches_); bitField0_ = (bitField0_ & ~0x00000001); } result.matches_ = matches_; } else { result.matches_ = matchesBuilder_.build(); } 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.EntityMatchResult) { return mergeFrom((com.cognite.client.dto.EntityMatchResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.cognite.client.dto.EntityMatchResult other) { if (other == com.cognite.client.dto.EntityMatchResult.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (matchesBuilder_ == null) { if (!other.matches_.isEmpty()) { if (matches_.isEmpty()) { matches_ = other.matches_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMatchesIsMutable(); matches_.addAll(other.matches_); } onChanged(); } } else { if (!other.matches_.isEmpty()) { if (matchesBuilder_.isEmpty()) { matchesBuilder_.dispose(); matchesBuilder_ = null; matches_ = other.matches_; bitField0_ = (bitField0_ & ~0x00000001); matchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchesFieldBuilder() : null; } else { matchesBuilder_.addAllMessages(other.matches_); } } } 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.EntityMatchResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.cognite.client.dto.EntityMatchResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Struct source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> sourceBuilder_; /** * .google.protobuf.Struct source = 1; * @return Whether the source field is set. */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** * .google.protobuf.Struct source = 1; * @return The source. */ public com.google.protobuf.Struct getSource() { if (sourceBuilder_ == null) { return source_ == null ? com.google.protobuf.Struct.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * .google.protobuf.Struct source = 1; */ public Builder setSource(com.google.protobuf.Struct value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Struct source = 1; */ public Builder setSource( com.google.protobuf.Struct.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Struct source = 1; */ public Builder mergeSource(com.google.protobuf.Struct value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = com.google.protobuf.Struct.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Struct source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { source_ = null; sourceBuilder_ = null; } return this; } /** * .google.protobuf.Struct source = 1; */ public com.google.protobuf.Struct.Builder getSourceBuilder() { onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * .google.protobuf.Struct source = 1; */ public com.google.protobuf.StructOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? com.google.protobuf.Struct.getDefaultInstance() : source_; } } /** * .google.protobuf.Struct source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private java.util.List matches_ = java.util.Collections.emptyList(); private void ensureMatchesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { matches_ = new java.util.ArrayList(matches_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.EntityMatch, com.cognite.client.dto.EntityMatch.Builder, com.cognite.client.dto.EntityMatchOrBuilder> matchesBuilder_; /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public java.util.List getMatchesList() { if (matchesBuilder_ == null) { return java.util.Collections.unmodifiableList(matches_); } else { return matchesBuilder_.getMessageList(); } } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public int getMatchesCount() { if (matchesBuilder_ == null) { return matches_.size(); } else { return matchesBuilder_.getCount(); } } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public com.cognite.client.dto.EntityMatch getMatches(int index) { if (matchesBuilder_ == null) { return matches_.get(index); } else { return matchesBuilder_.getMessage(index); } } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder setMatches( int index, com.cognite.client.dto.EntityMatch value) { if (matchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchesIsMutable(); matches_.set(index, value); onChanged(); } else { matchesBuilder_.setMessage(index, value); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder setMatches( int index, com.cognite.client.dto.EntityMatch.Builder builderForValue) { if (matchesBuilder_ == null) { ensureMatchesIsMutable(); matches_.set(index, builderForValue.build()); onChanged(); } else { matchesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder addMatches(com.cognite.client.dto.EntityMatch value) { if (matchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchesIsMutable(); matches_.add(value); onChanged(); } else { matchesBuilder_.addMessage(value); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder addMatches( int index, com.cognite.client.dto.EntityMatch value) { if (matchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchesIsMutable(); matches_.add(index, value); onChanged(); } else { matchesBuilder_.addMessage(index, value); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder addMatches( com.cognite.client.dto.EntityMatch.Builder builderForValue) { if (matchesBuilder_ == null) { ensureMatchesIsMutable(); matches_.add(builderForValue.build()); onChanged(); } else { matchesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder addMatches( int index, com.cognite.client.dto.EntityMatch.Builder builderForValue) { if (matchesBuilder_ == null) { ensureMatchesIsMutable(); matches_.add(index, builderForValue.build()); onChanged(); } else { matchesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder addAllMatches( java.lang.Iterable values) { if (matchesBuilder_ == null) { ensureMatchesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, matches_); onChanged(); } else { matchesBuilder_.addAllMessages(values); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder clearMatches() { if (matchesBuilder_ == null) { matches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { matchesBuilder_.clear(); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public Builder removeMatches(int index) { if (matchesBuilder_ == null) { ensureMatchesIsMutable(); matches_.remove(index); onChanged(); } else { matchesBuilder_.remove(index); } return this; } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public com.cognite.client.dto.EntityMatch.Builder getMatchesBuilder( int index) { return getMatchesFieldBuilder().getBuilder(index); } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public com.cognite.client.dto.EntityMatchOrBuilder getMatchesOrBuilder( int index) { if (matchesBuilder_ == null) { return matches_.get(index); } else { return matchesBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public java.util.List getMatchesOrBuilderList() { if (matchesBuilder_ != null) { return matchesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(matches_); } } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public com.cognite.client.dto.EntityMatch.Builder addMatchesBuilder() { return getMatchesFieldBuilder().addBuilder( com.cognite.client.dto.EntityMatch.getDefaultInstance()); } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public com.cognite.client.dto.EntityMatch.Builder addMatchesBuilder( int index) { return getMatchesFieldBuilder().addBuilder( index, com.cognite.client.dto.EntityMatch.getDefaultInstance()); } /** * repeated .com.cognite.beam.proto.EntityMatch matches = 2; */ public java.util.List getMatchesBuilderList() { return getMatchesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.EntityMatch, com.cognite.client.dto.EntityMatch.Builder, com.cognite.client.dto.EntityMatchOrBuilder> getMatchesFieldBuilder() { if (matchesBuilder_ == null) { matchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.cognite.client.dto.EntityMatch, com.cognite.client.dto.EntityMatch.Builder, com.cognite.client.dto.EntityMatchOrBuilder>( matches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); matches_ = null; } return matchesBuilder_; } @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.EntityMatchResult) } // @@protoc_insertion_point(class_scope:com.cognite.beam.proto.EntityMatchResult) private static final com.cognite.client.dto.EntityMatchResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.cognite.client.dto.EntityMatchResult(); } public static com.cognite.client.dto.EntityMatchResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EntityMatchResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EntityMatchResult(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.EntityMatchResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy