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

com.google.cloud.automl.v1.BoundingBoxMetricsEntry Maven / Gradle / Ivy

There is a newer version: 2.49.0
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/automl/v1/detection.proto

package com.google.cloud.automl.v1;

/**
 *
 *
 * 
 * Bounding box matching model metrics for a single intersection-over-union
 * threshold and multiple label match confidence thresholds.
 * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry} */ public final class BoundingBoxMetricsEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry) BoundingBoxMetricsEntryOrBuilder { private static final long serialVersionUID = 0L; // Use BoundingBoxMetricsEntry.newBuilder() to construct. private BoundingBoxMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BoundingBoxMetricsEntry() { confidenceMetricsEntries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingBoxMetricsEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BoundingBoxMetricsEntry( 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 13: { iouThreshold_ = input.readFloat(); break; } case 21: { meanAveragePrecision_ = input.readFloat(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { confidenceMetricsEntries_ = new java.util.ArrayList< com.google.cloud.automl.v1.BoundingBoxMetricsEntry .ConfidenceMetricsEntry>(); mutable_bitField0_ |= 0x00000001; } confidenceMetricsEntries_.add( input.readMessage( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry .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)) { confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class); } public interface ConfidenceMetricsEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) com.google.protobuf.MessageOrBuilder { /** * * *
     * Output only. The confidence threshold value used to compute the metrics.
     * 
* * float confidence_threshold = 1; * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** * * *
     * Output only. Recall under the given confidence threshold.
     * 
* * float recall = 2; * * @return The recall. */ float getRecall(); /** * * *
     * Output only. Precision under the given confidence threshold.
     * 
* * float precision = 3; * * @return The precision. */ float getPrecision(); /** * * *
     * Output only. The harmonic mean of recall and precision.
     * 
* * float f1_score = 4; * * @return The f1Score. */ float getF1Score(); } /** * * *
   * Metrics for a single confidence threshold.
   * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) ConfidenceMetricsEntryOrBuilder { private static final long serialVersionUID = 0L; // Use ConfidenceMetricsEntry.newBuilder() to construct. private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfidenceMetricsEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceMetricsEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfidenceMetricsEntry( 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 13: { confidenceThreshold_ = input.readFloat(); break; } case 21: { recall_ = input.readFloat(); break; } case 29: { precision_ = input.readFloat(); break; } case 37: { f1Score_ = input.readFloat(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder .class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; private float confidenceThreshold_; /** * * *
     * Output only. The confidence threshold value used to compute the metrics.
     * 
* * float confidence_threshold = 1; * * @return The confidenceThreshold. */ public float getConfidenceThreshold() { return confidenceThreshold_; } public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** * * *
     * Output only. Recall under the given confidence threshold.
     * 
* * float recall = 2; * * @return The recall. */ public float getRecall() { return recall_; } public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** * * *
     * Output only. Precision under the given confidence threshold.
     * 
* * float precision = 3; * * @return The precision. */ public float getPrecision() { return precision_; } public static final int F1_SCORE_FIELD_NUMBER = 4; private float f1Score_; /** * * *
     * Output only. The harmonic mean of recall and precision.
     * 
* * float f1_score = 4; * * @return The f1Score. */ public float getF1Score() { return f1Score_; } 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 (confidenceThreshold_ != 0F) { output.writeFloat(1, confidenceThreshold_); } if (recall_ != 0F) { output.writeFloat(2, recall_); } if (precision_ != 0F) { output.writeFloat(3, precision_); } if (f1Score_ != 0F) { output.writeFloat(4, f1Score_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (confidenceThreshold_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (recall_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (precision_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); } if (f1Score_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); } 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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { return super.equals(obj); } com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; if (java.lang.Float.floatToIntBits(getRecall()) != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) != java.lang.Float.floatToIntBits(other.getPrecision())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) != java.lang.Float.floatToIntBits(other.getF1Score())) 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) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); hash = (37 * hash) + RECALL_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry 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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry 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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry 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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry 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; } /** * * *
     * Metrics for a single confidence threshold.
     * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder .class); } // Construct using // com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.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(); confidenceThreshold_ = 0F; recall_ = 0F; precision_ = 0F; f1Score_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry .getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry build() { com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry buildPartial() { com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; result.f1Score_ = f1Score_; 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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) { return mergeFrom( (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) { if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry .getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } if (other.getRecall() != 0F) { setRecall(other.getRecall()); } if (other.getPrecision() != 0F) { setPrecision(other.getPrecision()); } if (other.getF1Score() != 0F) { setF1Score(other.getF1Score()); } 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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private float confidenceThreshold_; /** * * *
       * Output only. The confidence threshold value used to compute the metrics.
       * 
* * float confidence_threshold = 1; * * @return The confidenceThreshold. */ public float getConfidenceThreshold() { return confidenceThreshold_; } /** * * *
       * Output only. The confidence threshold value used to compute the metrics.
       * 
* * float confidence_threshold = 1; * * @param value The confidenceThreshold to set. * @return This builder for chaining. */ public Builder setConfidenceThreshold(float value) { confidenceThreshold_ = value; onChanged(); return this; } /** * * *
       * Output only. The confidence threshold value used to compute the metrics.
       * 
* * float confidence_threshold = 1; * * @return This builder for chaining. */ public Builder clearConfidenceThreshold() { confidenceThreshold_ = 0F; onChanged(); return this; } private float recall_; /** * * *
       * Output only. Recall under the given confidence threshold.
       * 
* * float recall = 2; * * @return The recall. */ public float getRecall() { return recall_; } /** * * *
       * Output only. Recall under the given confidence threshold.
       * 
* * float recall = 2; * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { recall_ = value; onChanged(); return this; } /** * * *
       * Output only. Recall under the given confidence threshold.
       * 
* * float recall = 2; * * @return This builder for chaining. */ public Builder clearRecall() { recall_ = 0F; onChanged(); return this; } private float precision_; /** * * *
       * Output only. Precision under the given confidence threshold.
       * 
* * float precision = 3; * * @return The precision. */ public float getPrecision() { return precision_; } /** * * *
       * Output only. Precision under the given confidence threshold.
       * 
* * float precision = 3; * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { precision_ = value; onChanged(); return this; } /** * * *
       * Output only. Precision under the given confidence threshold.
       * 
* * float precision = 3; * * @return This builder for chaining. */ public Builder clearPrecision() { precision_ = 0F; onChanged(); return this; } private float f1Score_; /** * * *
       * Output only. The harmonic mean of recall and precision.
       * 
* * float f1_score = 4; * * @return The f1Score. */ public float getF1Score() { return f1Score_; } /** * * *
       * Output only. The harmonic mean of recall and precision.
       * 
* * float f1_score = 4; * * @param value The f1Score to set. * @return This builder for chaining. */ public Builder setF1Score(float value) { f1Score_ = value; onChanged(); return this; } /** * * *
       * Output only. The harmonic mean of recall and precision.
       * 
* * float f1_score = 4; * * @return This builder for chaining. */ public Builder clearF1Score() { f1Score_ = 0F; 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:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfidenceMetricsEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfidenceMetricsEntry(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.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int IOU_THRESHOLD_FIELD_NUMBER = 1; private float iouThreshold_; /** * * *
   * Output only. The intersection-over-union threshold value used to compute
   * this metrics entry.
   * 
* * float iou_threshold = 1; * * @return The iouThreshold. */ public float getIouThreshold() { return iouThreshold_; } public static final int MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 2; private float meanAveragePrecision_; /** * * *
   * Output only. The mean average precision, most often close to au_prc.
   * 
* * float mean_average_precision = 2; * * @return The meanAveragePrecision. */ public float getMeanAveragePrecision() { return meanAveragePrecision_; } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; private java.util.List confidenceMetricsEntries_; /** * * *
   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public java.util.List getConfidenceMetricsEntriesList() { return confidenceMetricsEntries_; } /** * * *
   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public java.util.List< ? extends com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList() { return confidenceMetricsEntries_; } /** * * *
   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public int getConfidenceMetricsEntriesCount() { return confidenceMetricsEntries_.size(); } /** * * *
   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { return confidenceMetricsEntries_.get(index); } /** * * *
   * Output only. Metrics for each label-match confidence_threshold from
   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
   * derived from them.
   * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index) { return confidenceMetricsEntries_.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 (iouThreshold_ != 0F) { output.writeFloat(1, iouThreshold_); } if (meanAveragePrecision_ != 0F) { output.writeFloat(2, meanAveragePrecision_); } for (int i = 0; i < confidenceMetricsEntries_.size(); i++) { output.writeMessage(3, confidenceMetricsEntries_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (iouThreshold_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); } if (meanAveragePrecision_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAveragePrecision_); } for (int i = 0; i < confidenceMetricsEntries_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, confidenceMetricsEntries_.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.google.cloud.automl.v1.BoundingBoxMetricsEntry)) { return super.equals(obj); } com.google.cloud.automl.v1.BoundingBoxMetricsEntry other = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) obj; if (java.lang.Float.floatToIntBits(getIouThreshold()) != java.lang.Float.floatToIntBits(other.getIouThreshold())) return false; if (java.lang.Float.floatToIntBits(getMeanAveragePrecision()) != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false; if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) 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) + IOU_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold()); hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry 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.google.cloud.automl.v1.BoundingBoxMetricsEntry parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry 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.google.cloud.automl.v1.BoundingBoxMetricsEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry 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.google.cloud.automl.v1.BoundingBoxMetricsEntry 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; } /** * * *
   * Bounding box matching model metrics for a single intersection-over-union
   * threshold and multiple label match confidence thresholds.
   * 
* * Protobuf type {@code google.cloud.automl.v1.BoundingBoxMetricsEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1.BoundingBoxMetricsEntry) com.google.cloud.automl.v1.BoundingBoxMetricsEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.class, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.Builder.class); } // Construct using com.google.cloud.automl.v1.BoundingBoxMetricsEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfidenceMetricsEntriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); iouThreshold_ = 0F; meanAveragePrecision_ = 0F; if (confidenceMetricsEntriesBuilder_ == null) { confidenceMetricsEntries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { confidenceMetricsEntriesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.automl.v1.Detection .internal_static_google_cloud_automl_v1_BoundingBoxMetricsEntry_descriptor; } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInstanceForType() { return com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance(); } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry build() { com.google.cloud.automl.v1.BoundingBoxMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.automl.v1.BoundingBoxMetricsEntry buildPartial() { com.google.cloud.automl.v1.BoundingBoxMetricsEntry result = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(this); int from_bitField0_ = bitField0_; result.iouThreshold_ = iouThreshold_; result.meanAveragePrecision_ = meanAveragePrecision_; if (confidenceMetricsEntriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { confidenceMetricsEntries_ = java.util.Collections.unmodifiableList(confidenceMetricsEntries_); bitField0_ = (bitField0_ & ~0x00000001); } result.confidenceMetricsEntries_ = confidenceMetricsEntries_; } else { result.confidenceMetricsEntries_ = confidenceMetricsEntriesBuilder_.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.google.cloud.automl.v1.BoundingBoxMetricsEntry) { return mergeFrom((com.google.cloud.automl.v1.BoundingBoxMetricsEntry) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.automl.v1.BoundingBoxMetricsEntry other) { if (other == com.google.cloud.automl.v1.BoundingBoxMetricsEntry.getDefaultInstance()) return this; if (other.getIouThreshold() != 0F) { setIouThreshold(other.getIouThreshold()); } if (other.getMeanAveragePrecision() != 0F) { setMeanAveragePrecision(other.getMeanAveragePrecision()); } if (confidenceMetricsEntriesBuilder_ == null) { if (!other.confidenceMetricsEntries_.isEmpty()) { if (confidenceMetricsEntries_.isEmpty()) { confidenceMetricsEntries_ = other.confidenceMetricsEntries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.addAll(other.confidenceMetricsEntries_); } onChanged(); } } else { if (!other.confidenceMetricsEntries_.isEmpty()) { if (confidenceMetricsEntriesBuilder_.isEmpty()) { confidenceMetricsEntriesBuilder_.dispose(); confidenceMetricsEntriesBuilder_ = null; confidenceMetricsEntries_ = other.confidenceMetricsEntries_; bitField0_ = (bitField0_ & ~0x00000001); confidenceMetricsEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConfidenceMetricsEntriesFieldBuilder() : null; } else { confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); } } } 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.google.cloud.automl.v1.BoundingBoxMetricsEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.automl.v1.BoundingBoxMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private float iouThreshold_; /** * * *
     * Output only. The intersection-over-union threshold value used to compute
     * this metrics entry.
     * 
* * float iou_threshold = 1; * * @return The iouThreshold. */ public float getIouThreshold() { return iouThreshold_; } /** * * *
     * Output only. The intersection-over-union threshold value used to compute
     * this metrics entry.
     * 
* * float iou_threshold = 1; * * @param value The iouThreshold to set. * @return This builder for chaining. */ public Builder setIouThreshold(float value) { iouThreshold_ = value; onChanged(); return this; } /** * * *
     * Output only. The intersection-over-union threshold value used to compute
     * this metrics entry.
     * 
* * float iou_threshold = 1; * * @return This builder for chaining. */ public Builder clearIouThreshold() { iouThreshold_ = 0F; onChanged(); return this; } private float meanAveragePrecision_; /** * * *
     * Output only. The mean average precision, most often close to au_prc.
     * 
* * float mean_average_precision = 2; * * @return The meanAveragePrecision. */ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** * * *
     * Output only. The mean average precision, most often close to au_prc.
     * 
* * float mean_average_precision = 2; * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ public Builder setMeanAveragePrecision(float value) { meanAveragePrecision_ = value; onChanged(); return this; } /** * * *
     * Output only. The mean average precision, most often close to au_prc.
     * 
* * float mean_average_precision = 2; * * @return This builder for chaining. */ public Builder clearMeanAveragePrecision() { meanAveragePrecision_ = 0F; onChanged(); return this; } private java.util.List< com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> confidenceMetricsEntries_ = java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { confidenceMetricsEntries_ = new java.util.ArrayList< com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>( confidenceMetricsEntries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntriesBuilder_; /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public java.util.List getConfidenceMetricsEntriesList() { if (confidenceMetricsEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } else { return confidenceMetricsEntriesBuilder_.getMessageList(); } } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.size(); } else { return confidenceMetricsEntriesBuilder_.getCount(); } } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { return confidenceMetricsEntriesBuilder_.getMessage(index); } } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder setConfidenceMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, value); onChanged(); } else { confidenceMetricsEntriesBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder setConfidenceMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); onChanged(); } else { confidenceMetricsEntriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder addConfidenceMetricsEntries( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(value); onChanged(); } else { confidenceMetricsEntriesBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder addConfidenceMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, value); onChanged(); } else { confidenceMetricsEntriesBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder addConfidenceMetricsEntries( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); onChanged(); } else { confidenceMetricsEntriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder addConfidenceMetricsEntries( int index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); onChanged(); } else { confidenceMetricsEntriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder addAllConfidenceMetricsEntries( java.lang.Iterable< ? extends com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> values) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); onChanged(); } else { confidenceMetricsEntriesBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { confidenceMetricsEntries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { confidenceMetricsEntriesBuilder_.clear(); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.remove(index); onChanged(); } else { confidenceMetricsEntriesBuilder_.remove(index); } return this; } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder(int index) { return getConfidenceMetricsEntriesFieldBuilder().getBuilder(index); } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { return confidenceMetricsEntriesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public java.util.List< ? extends com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); } } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { return getConfidenceMetricsEntriesFieldBuilder() .addBuilder( com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry .getDefaultInstance()); } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder(int index) { return getConfidenceMetricsEntriesFieldBuilder() .addBuilder( index, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry .getDefaultInstance()); } /** * * *
     * Output only. Metrics for each label-match confidence_threshold from
     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
     * derived from them.
     * 
* * * repeated .google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; * */ public java.util.List< com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder> getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, com.google.cloud.automl.v1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); confidenceMetricsEntries_ = null; } return confidenceMetricsEntriesBuilder_; } @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:google.cloud.automl.v1.BoundingBoxMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.automl.v1.BoundingBoxMetricsEntry) private static final com.google.cloud.automl.v1.BoundingBoxMetricsEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.automl.v1.BoundingBoxMetricsEntry(); } public static com.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BoundingBoxMetricsEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BoundingBoxMetricsEntry(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.google.cloud.automl.v1.BoundingBoxMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy