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

yandex.cloud.api.ai.vision.v1.ImageCopySearch Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/ai/vision/v1/image_copy_search.proto

package yandex.cloud.api.ai.vision.v1;

public final class ImageCopySearch {
  private ImageCopySearch() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ImageCopySearchAnnotationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Number of image copies
     * 
* * int64 copy_count = 1; * @return The copyCount. */ long getCopyCount(); /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ java.util.List getTopResultsList(); /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch getTopResults(int index); /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ int getTopResultsCount(); /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ java.util.List getTopResultsOrBuilderList(); /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder getTopResultsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation} */ public static final class ImageCopySearchAnnotation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation) ImageCopySearchAnnotationOrBuilder { private static final long serialVersionUID = 0L; // Use ImageCopySearchAnnotation.newBuilder() to construct. private ImageCopySearchAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImageCopySearchAnnotation() { topResults_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ImageCopySearchAnnotation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ImageCopySearchAnnotation( 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: { copyCount_ = input.readInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { topResults_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } topResults_.add( input.readMessage(yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.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)) { topResults_ = java.util.Collections.unmodifiableList(topResults_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.class, yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.Builder.class); } public static final int COPY_COUNT_FIELD_NUMBER = 1; private long copyCount_; /** *
     * Number of image copies
     * 
* * int64 copy_count = 1; * @return The copyCount. */ @java.lang.Override public long getCopyCount() { return copyCount_; } public static final int TOP_RESULTS_FIELD_NUMBER = 2; private java.util.List topResults_; /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ @java.lang.Override public java.util.List getTopResultsList() { return topResults_; } /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ @java.lang.Override public java.util.List getTopResultsOrBuilderList() { return topResults_; } /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ @java.lang.Override public int getTopResultsCount() { return topResults_.size(); } /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch getTopResults(int index) { return topResults_.get(index); } /** *
     * Top relevance result of image copy search
     * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder getTopResultsOrBuilder( int index) { return topResults_.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 (copyCount_ != 0L) { output.writeInt64(1, copyCount_); } for (int i = 0; i < topResults_.size(); i++) { output.writeMessage(2, topResults_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (copyCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, copyCount_); } for (int i = 0; i < topResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, topResults_.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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation)) { return super.equals(obj); } yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation other = (yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation) obj; if (getCopyCount() != other.getCopyCount()) return false; if (!getTopResultsList() .equals(other.getTopResultsList())) 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(); hash = (37 * hash) + COPY_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCopyCount()); if (getTopResultsCount() > 0) { hash = (37 * hash) + TOP_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getTopResultsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation 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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation 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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation 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(yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation) yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.class, yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.Builder.class); } // Construct using yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTopResultsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); copyCount_ = 0L; if (topResultsBuilder_ == null) { topResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { topResultsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_descriptor; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation getDefaultInstanceForType() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation build() { yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation buildPartial() { yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation result = new yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation(this); int from_bitField0_ = bitField0_; result.copyCount_ = copyCount_; if (topResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topResults_ = java.util.Collections.unmodifiableList(topResults_); bitField0_ = (bitField0_ & ~0x00000001); } result.topResults_ = topResults_; } else { result.topResults_ = topResultsBuilder_.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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation) { return mergeFrom((yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation other) { if (other == yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation.getDefaultInstance()) return this; if (other.getCopyCount() != 0L) { setCopyCount(other.getCopyCount()); } if (topResultsBuilder_ == null) { if (!other.topResults_.isEmpty()) { if (topResults_.isEmpty()) { topResults_ = other.topResults_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTopResultsIsMutable(); topResults_.addAll(other.topResults_); } onChanged(); } } else { if (!other.topResults_.isEmpty()) { if (topResultsBuilder_.isEmpty()) { topResultsBuilder_.dispose(); topResultsBuilder_ = null; topResults_ = other.topResults_; bitField0_ = (bitField0_ & ~0x00000001); topResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTopResultsFieldBuilder() : null; } else { topResultsBuilder_.addAllMessages(other.topResults_); } } } 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 { yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long copyCount_ ; /** *
       * Number of image copies
       * 
* * int64 copy_count = 1; * @return The copyCount. */ @java.lang.Override public long getCopyCount() { return copyCount_; } /** *
       * Number of image copies
       * 
* * int64 copy_count = 1; * @param value The copyCount to set. * @return This builder for chaining. */ public Builder setCopyCount(long value) { copyCount_ = value; onChanged(); return this; } /** *
       * Number of image copies
       * 
* * int64 copy_count = 1; * @return This builder for chaining. */ public Builder clearCopyCount() { copyCount_ = 0L; onChanged(); return this; } private java.util.List topResults_ = java.util.Collections.emptyList(); private void ensureTopResultsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { topResults_ = new java.util.ArrayList(topResults_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder> topResultsBuilder_; /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public java.util.List getTopResultsList() { if (topResultsBuilder_ == null) { return java.util.Collections.unmodifiableList(topResults_); } else { return topResultsBuilder_.getMessageList(); } } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public int getTopResultsCount() { if (topResultsBuilder_ == null) { return topResults_.size(); } else { return topResultsBuilder_.getCount(); } } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch getTopResults(int index) { if (topResultsBuilder_ == null) { return topResults_.get(index); } else { return topResultsBuilder_.getMessage(index); } } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder setTopResults( int index, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch value) { if (topResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopResultsIsMutable(); topResults_.set(index, value); onChanged(); } else { topResultsBuilder_.setMessage(index, value); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder setTopResults( int index, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder builderForValue) { if (topResultsBuilder_ == null) { ensureTopResultsIsMutable(); topResults_.set(index, builderForValue.build()); onChanged(); } else { topResultsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder addTopResults(yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch value) { if (topResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopResultsIsMutable(); topResults_.add(value); onChanged(); } else { topResultsBuilder_.addMessage(value); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder addTopResults( int index, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch value) { if (topResultsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTopResultsIsMutable(); topResults_.add(index, value); onChanged(); } else { topResultsBuilder_.addMessage(index, value); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder addTopResults( yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder builderForValue) { if (topResultsBuilder_ == null) { ensureTopResultsIsMutable(); topResults_.add(builderForValue.build()); onChanged(); } else { topResultsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder addTopResults( int index, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder builderForValue) { if (topResultsBuilder_ == null) { ensureTopResultsIsMutable(); topResults_.add(index, builderForValue.build()); onChanged(); } else { topResultsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder addAllTopResults( java.lang.Iterable values) { if (topResultsBuilder_ == null) { ensureTopResultsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, topResults_); onChanged(); } else { topResultsBuilder_.addAllMessages(values); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder clearTopResults() { if (topResultsBuilder_ == null) { topResults_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { topResultsBuilder_.clear(); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public Builder removeTopResults(int index) { if (topResultsBuilder_ == null) { ensureTopResultsIsMutable(); topResults_.remove(index); onChanged(); } else { topResultsBuilder_.remove(index); } return this; } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder getTopResultsBuilder( int index) { return getTopResultsFieldBuilder().getBuilder(index); } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder getTopResultsOrBuilder( int index) { if (topResultsBuilder_ == null) { return topResults_.get(index); } else { return topResultsBuilder_.getMessageOrBuilder(index); } } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public java.util.List getTopResultsOrBuilderList() { if (topResultsBuilder_ != null) { return topResultsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(topResults_); } } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder addTopResultsBuilder() { return getTopResultsFieldBuilder().addBuilder( yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.getDefaultInstance()); } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder addTopResultsBuilder( int index) { return getTopResultsFieldBuilder().addBuilder( index, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.getDefaultInstance()); } /** *
       * Top relevance result of image copy search
       * 
* * repeated .yandex.cloud.ai.vision.v1.CopyMatch top_results = 2; */ public java.util.List getTopResultsBuilderList() { return getTopResultsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder> getTopResultsFieldBuilder() { if (topResultsBuilder_ == null) { topResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder>( topResults_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); topResults_ = null; } return topResultsBuilder_; } @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:yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation) } // @@protoc_insertion_point(class_scope:yandex.cloud.ai.vision.v1.ImageCopySearchAnnotation) private static final yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation(); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ImageCopySearchAnnotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImageCopySearchAnnotation(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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.ImageCopySearchAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CopyMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ai.vision.v1.CopyMatch) com.google.protobuf.MessageOrBuilder { /** *
     *url of image
     * 
* * string image_url = 1; * @return The imageUrl. */ java.lang.String getImageUrl(); /** *
     *url of image
     * 
* * string image_url = 1; * @return The bytes for imageUrl. */ com.google.protobuf.ByteString getImageUrlBytes(); /** *
     *url of page that contains image
     * 
* * string page_url = 2; * @return The pageUrl. */ java.lang.String getPageUrl(); /** *
     *url of page that contains image
     * 
* * string page_url = 2; * @return The bytes for pageUrl. */ com.google.protobuf.ByteString getPageUrlBytes(); /** *
     *page title that contains image
     * 
* * string title = 3; * @return The title. */ java.lang.String getTitle(); /** *
     *page title that contains image
     * 
* * string title = 3; * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** *
     *image description
     * 
* * string description = 4; * @return The description. */ java.lang.String getDescription(); /** *
     *image description
     * 
* * string description = 4; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.CopyMatch} */ public static final class CopyMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ai.vision.v1.CopyMatch) CopyMatchOrBuilder { private static final long serialVersionUID = 0L; // Use CopyMatch.newBuilder() to construct. private CopyMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CopyMatch() { imageUrl_ = ""; pageUrl_ = ""; title_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CopyMatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CopyMatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); imageUrl_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); pageUrl_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); title_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_CopyMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_CopyMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.class, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder.class); } public static final int IMAGE_URL_FIELD_NUMBER = 1; private volatile java.lang.Object imageUrl_; /** *
     *url of image
     * 
* * string image_url = 1; * @return The imageUrl. */ @java.lang.Override public java.lang.String getImageUrl() { java.lang.Object ref = imageUrl_; 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(); imageUrl_ = s; return s; } } /** *
     *url of image
     * 
* * string image_url = 1; * @return The bytes for imageUrl. */ @java.lang.Override public com.google.protobuf.ByteString getImageUrlBytes() { java.lang.Object ref = imageUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); imageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object pageUrl_; /** *
     *url of page that contains image
     * 
* * string page_url = 2; * @return The pageUrl. */ @java.lang.Override public java.lang.String getPageUrl() { java.lang.Object ref = pageUrl_; 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(); pageUrl_ = s; return s; } } /** *
     *url of page that contains image
     * 
* * string page_url = 2; * @return The bytes for pageUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPageUrlBytes() { java.lang.Object ref = pageUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object title_; /** *
     *page title that contains image
     * 
* * string title = 3; * @return The title. */ @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; 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(); title_ = s; return s; } } /** *
     *page title that contains image
     * 
* * string title = 3; * @return The bytes for title. */ @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
     *image description
     * 
* * string description = 4; * @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; } } /** *
     *image description
     * 
* * string description = 4; * @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; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, imageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, imageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageUrl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } 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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch)) { return super.equals(obj); } yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch other = (yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch) obj; if (!getImageUrl() .equals(other.getImageUrl())) return false; if (!getPageUrl() .equals(other.getPageUrl())) return false; if (!getTitle() .equals(other.getTitle())) return false; if (!getDescription() .equals(other.getDescription())) 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(); hash = (37 * hash) + IMAGE_URL_FIELD_NUMBER; hash = (53 * hash) + getImageUrl().hashCode(); hash = (37 * hash) + PAGE_URL_FIELD_NUMBER; hash = (53 * hash) + getPageUrl().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch 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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch 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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch 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(yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ai.vision.v1.CopyMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ai.vision.v1.CopyMatch) yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_CopyMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_CopyMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.class, yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.Builder.class); } // Construct using yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.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(); imageUrl_ = ""; pageUrl_ = ""; title_ = ""; description_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.internal_static_yandex_cloud_ai_vision_v1_CopyMatch_descriptor; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch getDefaultInstanceForType() { return yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch build() { yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch buildPartial() { yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch result = new yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch(this); result.imageUrl_ = imageUrl_; result.pageUrl_ = pageUrl_; result.title_ = title_; result.description_ = description_; 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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch) { return mergeFrom((yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch other) { if (other == yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch.getDefaultInstance()) return this; if (!other.getImageUrl().isEmpty()) { imageUrl_ = other.imageUrl_; onChanged(); } if (!other.getPageUrl().isEmpty()) { pageUrl_ = other.pageUrl_; onChanged(); } if (!other.getTitle().isEmpty()) { title_ = other.title_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; 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 { yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object imageUrl_ = ""; /** *
       *url of image
       * 
* * string image_url = 1; * @return The imageUrl. */ public java.lang.String getImageUrl() { java.lang.Object ref = imageUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *url of image
       * 
* * string image_url = 1; * @return The bytes for imageUrl. */ public com.google.protobuf.ByteString getImageUrlBytes() { java.lang.Object ref = imageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); imageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *url of image
       * 
* * string image_url = 1; * @param value The imageUrl to set. * @return This builder for chaining. */ public Builder setImageUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } imageUrl_ = value; onChanged(); return this; } /** *
       *url of image
       * 
* * string image_url = 1; * @return This builder for chaining. */ public Builder clearImageUrl() { imageUrl_ = getDefaultInstance().getImageUrl(); onChanged(); return this; } /** *
       *url of image
       * 
* * string image_url = 1; * @param value The bytes for imageUrl to set. * @return This builder for chaining. */ public Builder setImageUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); imageUrl_ = value; onChanged(); return this; } private java.lang.Object pageUrl_ = ""; /** *
       *url of page that contains image
       * 
* * string page_url = 2; * @return The pageUrl. */ public java.lang.String getPageUrl() { java.lang.Object ref = pageUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *url of page that contains image
       * 
* * string page_url = 2; * @return The bytes for pageUrl. */ public com.google.protobuf.ByteString getPageUrlBytes() { java.lang.Object ref = pageUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *url of page that contains image
       * 
* * string page_url = 2; * @param value The pageUrl to set. * @return This builder for chaining. */ public Builder setPageUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageUrl_ = value; onChanged(); return this; } /** *
       *url of page that contains image
       * 
* * string page_url = 2; * @return This builder for chaining. */ public Builder clearPageUrl() { pageUrl_ = getDefaultInstance().getPageUrl(); onChanged(); return this; } /** *
       *url of page that contains image
       * 
* * string page_url = 2; * @param value The bytes for pageUrl to set. * @return This builder for chaining. */ public Builder setPageUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageUrl_ = value; onChanged(); return this; } private java.lang.Object title_ = ""; /** *
       *page title that contains image
       * 
* * string title = 3; * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *page title that contains image
       * 
* * string title = 3; * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *page title that contains image
       * 
* * string title = 3; * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; onChanged(); return this; } /** *
       *page title that contains image
       * 
* * string title = 3; * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** *
       *page title that contains image
       * 
* * string title = 3; * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       *image description
       * 
* * string description = 4; * @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; } } /** *
       *image description
       * 
* * string description = 4; * @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; } } /** *
       *image description
       * 
* * string description = 4; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       *image description
       * 
* * string description = 4; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       *image description
       * 
* * string description = 4; * @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); description_ = 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:yandex.cloud.ai.vision.v1.CopyMatch) } // @@protoc_insertion_point(class_scope:yandex.cloud.ai.vision.v1.CopyMatch) private static final yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch(); } public static yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CopyMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CopyMatch(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 yandex.cloud.api.ai.vision.v1.ImageCopySearch.CopyMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ai_vision_v1_CopyMatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ai_vision_v1_CopyMatch_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n1yandex/cloud/ai/vision/v1/image_copy_s" + "earch.proto\022\031yandex.cloud.ai.vision.v1\"j" + "\n\031ImageCopySearchAnnotation\022\022\n\ncopy_coun" + "t\030\001 \001(\003\0229\n\013top_results\030\002 \003(\0132$.yandex.cl" + "oud.ai.vision.v1.CopyMatch\"T\n\tCopyMatch\022" + "\021\n\timage_url\030\001 \001(\t\022\020\n\010page_url\030\002 \001(\t\022\r\n\005" + "title\030\003 \001(\t\022\023\n\013description\030\004 \001(\tBe\n\035yand" + "ex.cloud.api.ai.vision.v1ZDgithub.com/ya" + "ndex-cloud/go-genproto/yandex/cloud/ai/v" + "ision/v1;visionb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ai_vision_v1_ImageCopySearchAnnotation_descriptor, new java.lang.String[] { "CopyCount", "TopResults", }); internal_static_yandex_cloud_ai_vision_v1_CopyMatch_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_ai_vision_v1_CopyMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ai_vision_v1_CopyMatch_descriptor, new java.lang.String[] { "ImageUrl", "PageUrl", "Title", "Description", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy