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

com.clarifai.grpc.api.WorkflowResultsSimilarity Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * WorkflowResultsSimilarity
 * 
* * Protobuf type {@code clarifai.api.WorkflowResultsSimilarity} */ public final class WorkflowResultsSimilarity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.WorkflowResultsSimilarity) WorkflowResultsSimilarityOrBuilder { private static final long serialVersionUID = 0L; // Use WorkflowResultsSimilarity.newBuilder() to construct. private WorkflowResultsSimilarity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WorkflowResultsSimilarity() { poolResults_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WorkflowResultsSimilarity(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkflowResultsSimilarity( 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.clarifai.grpc.api.Input.Builder subBuilder = null; if (probeInput_ != null) { subBuilder = probeInput_.toBuilder(); } probeInput_ = input.readMessage(com.clarifai.grpc.api.Input.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(probeInput_); probeInput_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { poolResults_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } poolResults_.add( input.readMessage(com.clarifai.grpc.api.Hit.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { poolResults_ = java.util.Collections.unmodifiableList(poolResults_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowResultsSimilarity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowResultsSimilarity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.WorkflowResultsSimilarity.class, com.clarifai.grpc.api.WorkflowResultsSimilarity.Builder.class); } public static final int PROBE_INPUT_FIELD_NUMBER = 1; private com.clarifai.grpc.api.Input probeInput_; /** *
   * The input with the specific data compare against all pool results
   * 
* * .clarifai.api.Input probe_input = 1; * @return Whether the probeInput field is set. */ @java.lang.Override public boolean hasProbeInput() { return probeInput_ != null; } /** *
   * The input with the specific data compare against all pool results
   * 
* * .clarifai.api.Input probe_input = 1; * @return The probeInput. */ @java.lang.Override public com.clarifai.grpc.api.Input getProbeInput() { return probeInput_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : probeInput_; } /** *
   * The input with the specific data compare against all pool results
   * 
* * .clarifai.api.Input probe_input = 1; */ @java.lang.Override public com.clarifai.grpc.api.InputOrBuilder getProbeInputOrBuilder() { return getProbeInput(); } public static final int POOL_RESULTS_FIELD_NUMBER = 2; private java.util.List poolResults_; /** * repeated .clarifai.api.Hit pool_results = 2; */ @java.lang.Override public java.util.List getPoolResultsList() { return poolResults_; } /** * repeated .clarifai.api.Hit pool_results = 2; */ @java.lang.Override public java.util.List getPoolResultsOrBuilderList() { return poolResults_; } /** * repeated .clarifai.api.Hit pool_results = 2; */ @java.lang.Override public int getPoolResultsCount() { return poolResults_.size(); } /** * repeated .clarifai.api.Hit pool_results = 2; */ @java.lang.Override public com.clarifai.grpc.api.Hit getPoolResults(int index) { return poolResults_.get(index); } /** * repeated .clarifai.api.Hit pool_results = 2; */ @java.lang.Override public com.clarifai.grpc.api.HitOrBuilder getPoolResultsOrBuilder( int index) { return poolResults_.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 (probeInput_ != null) { output.writeMessage(1, getProbeInput()); } for (int i = 0; i < poolResults_.size(); i++) { output.writeMessage(2, poolResults_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (probeInput_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getProbeInput()); } for (int i = 0; i < poolResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, poolResults_.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.clarifai.grpc.api.WorkflowResultsSimilarity)) { return super.equals(obj); } com.clarifai.grpc.api.WorkflowResultsSimilarity other = (com.clarifai.grpc.api.WorkflowResultsSimilarity) obj; if (hasProbeInput() != other.hasProbeInput()) return false; if (hasProbeInput()) { if (!getProbeInput() .equals(other.getProbeInput())) return false; } if (!getPoolResultsList() .equals(other.getPoolResultsList())) 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 (hasProbeInput()) { hash = (37 * hash) + PROBE_INPUT_FIELD_NUMBER; hash = (53 * hash) + getProbeInput().hashCode(); } if (getPoolResultsCount() > 0) { hash = (37 * hash) + POOL_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getPoolResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity 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.clarifai.grpc.api.WorkflowResultsSimilarity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity 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.clarifai.grpc.api.WorkflowResultsSimilarity parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity 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.clarifai.grpc.api.WorkflowResultsSimilarity 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; } /** *
   * WorkflowResultsSimilarity
   * 
* * Protobuf type {@code clarifai.api.WorkflowResultsSimilarity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.WorkflowResultsSimilarity) com.clarifai.grpc.api.WorkflowResultsSimilarityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowResultsSimilarity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowResultsSimilarity_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.WorkflowResultsSimilarity.class, com.clarifai.grpc.api.WorkflowResultsSimilarity.Builder.class); } // Construct using com.clarifai.grpc.api.WorkflowResultsSimilarity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPoolResultsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (probeInputBuilder_ == null) { probeInput_ = null; } else { probeInput_ = null; probeInputBuilder_ = null; } if (poolResultsBuilder_ == null) { poolResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { poolResultsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_WorkflowResultsSimilarity_descriptor; } @java.lang.Override public com.clarifai.grpc.api.WorkflowResultsSimilarity getDefaultInstanceForType() { return com.clarifai.grpc.api.WorkflowResultsSimilarity.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.WorkflowResultsSimilarity build() { com.clarifai.grpc.api.WorkflowResultsSimilarity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.WorkflowResultsSimilarity buildPartial() { com.clarifai.grpc.api.WorkflowResultsSimilarity result = new com.clarifai.grpc.api.WorkflowResultsSimilarity(this); int from_bitField0_ = bitField0_; if (probeInputBuilder_ == null) { result.probeInput_ = probeInput_; } else { result.probeInput_ = probeInputBuilder_.build(); } if (poolResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { poolResults_ = java.util.Collections.unmodifiableList(poolResults_); bitField0_ = (bitField0_ & ~0x00000001); } result.poolResults_ = poolResults_; } else { result.poolResults_ = poolResultsBuilder_.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.clarifai.grpc.api.WorkflowResultsSimilarity) { return mergeFrom((com.clarifai.grpc.api.WorkflowResultsSimilarity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.WorkflowResultsSimilarity other) { if (other == com.clarifai.grpc.api.WorkflowResultsSimilarity.getDefaultInstance()) return this; if (other.hasProbeInput()) { mergeProbeInput(other.getProbeInput()); } if (poolResultsBuilder_ == null) { if (!other.poolResults_.isEmpty()) { if (poolResults_.isEmpty()) { poolResults_ = other.poolResults_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePoolResultsIsMutable(); poolResults_.addAll(other.poolResults_); } onChanged(); } } else { if (!other.poolResults_.isEmpty()) { if (poolResultsBuilder_.isEmpty()) { poolResultsBuilder_.dispose(); poolResultsBuilder_ = null; poolResults_ = other.poolResults_; bitField0_ = (bitField0_ & ~0x00000001); poolResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPoolResultsFieldBuilder() : null; } else { poolResultsBuilder_.addAllMessages(other.poolResults_); } } } 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.clarifai.grpc.api.WorkflowResultsSimilarity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.WorkflowResultsSimilarity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.clarifai.grpc.api.Input probeInput_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> probeInputBuilder_; /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; * @return Whether the probeInput field is set. */ public boolean hasProbeInput() { return probeInputBuilder_ != null || probeInput_ != null; } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; * @return The probeInput. */ public com.clarifai.grpc.api.Input getProbeInput() { if (probeInputBuilder_ == null) { return probeInput_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : probeInput_; } else { return probeInputBuilder_.getMessage(); } } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ public Builder setProbeInput(com.clarifai.grpc.api.Input value) { if (probeInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } probeInput_ = value; onChanged(); } else { probeInputBuilder_.setMessage(value); } return this; } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ public Builder setProbeInput( com.clarifai.grpc.api.Input.Builder builderForValue) { if (probeInputBuilder_ == null) { probeInput_ = builderForValue.build(); onChanged(); } else { probeInputBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ public Builder mergeProbeInput(com.clarifai.grpc.api.Input value) { if (probeInputBuilder_ == null) { if (probeInput_ != null) { probeInput_ = com.clarifai.grpc.api.Input.newBuilder(probeInput_).mergeFrom(value).buildPartial(); } else { probeInput_ = value; } onChanged(); } else { probeInputBuilder_.mergeFrom(value); } return this; } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ public Builder clearProbeInput() { if (probeInputBuilder_ == null) { probeInput_ = null; onChanged(); } else { probeInput_ = null; probeInputBuilder_ = null; } return this; } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ public com.clarifai.grpc.api.Input.Builder getProbeInputBuilder() { onChanged(); return getProbeInputFieldBuilder().getBuilder(); } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ public com.clarifai.grpc.api.InputOrBuilder getProbeInputOrBuilder() { if (probeInputBuilder_ != null) { return probeInputBuilder_.getMessageOrBuilder(); } else { return probeInput_ == null ? com.clarifai.grpc.api.Input.getDefaultInstance() : probeInput_; } } /** *
     * The input with the specific data compare against all pool results
     * 
* * .clarifai.api.Input probe_input = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder> getProbeInputFieldBuilder() { if (probeInputBuilder_ == null) { probeInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Input, com.clarifai.grpc.api.Input.Builder, com.clarifai.grpc.api.InputOrBuilder>( getProbeInput(), getParentForChildren(), isClean()); probeInput_ = null; } return probeInputBuilder_; } private java.util.List poolResults_ = java.util.Collections.emptyList(); private void ensurePoolResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { poolResults_ = new java.util.ArrayList(poolResults_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Hit, com.clarifai.grpc.api.Hit.Builder, com.clarifai.grpc.api.HitOrBuilder> poolResultsBuilder_; /** * repeated .clarifai.api.Hit pool_results = 2; */ public java.util.List getPoolResultsList() { if (poolResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(poolResults_); } else { return poolResultsBuilder_.getMessageList(); } } /** * repeated .clarifai.api.Hit pool_results = 2; */ public int getPoolResultsCount() { if (poolResultsBuilder_ == null) { return poolResults_.size(); } else { return poolResultsBuilder_.getCount(); } } /** * repeated .clarifai.api.Hit pool_results = 2; */ public com.clarifai.grpc.api.Hit getPoolResults(int index) { if (poolResultsBuilder_ == null) { return poolResults_.get(index); } else { return poolResultsBuilder_.getMessage(index); } } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder setPoolResults( int index, com.clarifai.grpc.api.Hit value) { if (poolResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoolResultsIsMutable(); poolResults_.set(index, value); onChanged(); } else { poolResultsBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder setPoolResults( int index, com.clarifai.grpc.api.Hit.Builder builderForValue) { if (poolResultsBuilder_ == null) { ensurePoolResultsIsMutable(); poolResults_.set(index, builderForValue.build()); onChanged(); } else { poolResultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder addPoolResults(com.clarifai.grpc.api.Hit value) { if (poolResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoolResultsIsMutable(); poolResults_.add(value); onChanged(); } else { poolResultsBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder addPoolResults( int index, com.clarifai.grpc.api.Hit value) { if (poolResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoolResultsIsMutable(); poolResults_.add(index, value); onChanged(); } else { poolResultsBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder addPoolResults( com.clarifai.grpc.api.Hit.Builder builderForValue) { if (poolResultsBuilder_ == null) { ensurePoolResultsIsMutable(); poolResults_.add(builderForValue.build()); onChanged(); } else { poolResultsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder addPoolResults( int index, com.clarifai.grpc.api.Hit.Builder builderForValue) { if (poolResultsBuilder_ == null) { ensurePoolResultsIsMutable(); poolResults_.add(index, builderForValue.build()); onChanged(); } else { poolResultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder addAllPoolResults( java.lang.Iterable values) { if (poolResultsBuilder_ == null) { ensurePoolResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, poolResults_); onChanged(); } else { poolResultsBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder clearPoolResults() { if (poolResultsBuilder_ == null) { poolResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { poolResultsBuilder_.clear(); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public Builder removePoolResults(int index) { if (poolResultsBuilder_ == null) { ensurePoolResultsIsMutable(); poolResults_.remove(index); onChanged(); } else { poolResultsBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.Hit pool_results = 2; */ public com.clarifai.grpc.api.Hit.Builder getPoolResultsBuilder( int index) { return getPoolResultsFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.Hit pool_results = 2; */ public com.clarifai.grpc.api.HitOrBuilder getPoolResultsOrBuilder( int index) { if (poolResultsBuilder_ == null) { return poolResults_.get(index); } else { return poolResultsBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.Hit pool_results = 2; */ public java.util.List getPoolResultsOrBuilderList() { if (poolResultsBuilder_ != null) { return poolResultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(poolResults_); } } /** * repeated .clarifai.api.Hit pool_results = 2; */ public com.clarifai.grpc.api.Hit.Builder addPoolResultsBuilder() { return getPoolResultsFieldBuilder().addBuilder( com.clarifai.grpc.api.Hit.getDefaultInstance()); } /** * repeated .clarifai.api.Hit pool_results = 2; */ public com.clarifai.grpc.api.Hit.Builder addPoolResultsBuilder( int index) { return getPoolResultsFieldBuilder().addBuilder( index, com.clarifai.grpc.api.Hit.getDefaultInstance()); } /** * repeated .clarifai.api.Hit pool_results = 2; */ public java.util.List getPoolResultsBuilderList() { return getPoolResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Hit, com.clarifai.grpc.api.Hit.Builder, com.clarifai.grpc.api.HitOrBuilder> getPoolResultsFieldBuilder() { if (poolResultsBuilder_ == null) { poolResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.Hit, com.clarifai.grpc.api.Hit.Builder, com.clarifai.grpc.api.HitOrBuilder>( poolResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); poolResults_ = null; } return poolResultsBuilder_; } @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:clarifai.api.WorkflowResultsSimilarity) } // @@protoc_insertion_point(class_scope:clarifai.api.WorkflowResultsSimilarity) private static final com.clarifai.grpc.api.WorkflowResultsSimilarity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.WorkflowResultsSimilarity(); } public static com.clarifai.grpc.api.WorkflowResultsSimilarity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WorkflowResultsSimilarity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkflowResultsSimilarity(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.clarifai.grpc.api.WorkflowResultsSimilarity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy