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

com.google.cloud.documentai.v1beta3.EvaluationReference Maven / Gradle / Ivy

There is a newer version: 0.71.0
Show newest version
/*
 * Copyright 2024 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/documentai/v1beta3/evaluation.proto

// Protobuf Java Version: 3.25.2
package com.google.cloud.documentai.v1beta3;

/**
 *
 *
 * 
 * Gives a short summary of an evaluation, and links to the evaluation itself.
 * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluationReference} */ public final class EvaluationReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.EvaluationReference) EvaluationReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use EvaluationReference.newBuilder() to construct. private EvaluationReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EvaluationReference() { operation_ = ""; evaluation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EvaluationReference(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.documentai.v1beta3.EvaluationReference.class, com.google.cloud.documentai.v1beta3.EvaluationReference.Builder.class); } private int bitField0_; public static final int OPERATION_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** * * *
   * The resource name of the Long Running Operation for the evaluation.
   * 
* * string operation = 1; * * @return The operation. */ @java.lang.Override public java.lang.String getOperation() { java.lang.Object ref = operation_; 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(); operation_ = s; return s; } } /** * * *
   * The resource name of the Long Running Operation for the evaluation.
   * 
* * string operation = 1; * * @return The bytes for operation. */ @java.lang.Override public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EVALUATION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object evaluation_ = ""; /** * * *
   * The resource name of the evaluation.
   * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @return The evaluation. */ @java.lang.Override public java.lang.String getEvaluation() { java.lang.Object ref = evaluation_; 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(); evaluation_ = s; return s; } } /** * * *
   * The resource name of the evaluation.
   * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for evaluation. */ @java.lang.Override public com.google.protobuf.ByteString getEvaluationBytes() { java.lang.Object ref = evaluation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); evaluation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AGGREGATE_METRICS_FIELD_NUMBER = 4; private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetrics_; /** * * *
   * An aggregate of the statistics for the evaluation with fuzzy matching on.
   * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; * * @return Whether the aggregateMetrics field is set. */ @java.lang.Override public boolean hasAggregateMetrics() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * An aggregate of the statistics for the evaluation with fuzzy matching on.
   * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; * * @return The aggregateMetrics. */ @java.lang.Override public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetrics() { return aggregateMetrics_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetrics_; } /** * * *
   * An aggregate of the statistics for the evaluation with fuzzy matching on.
   * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ @java.lang.Override public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder getAggregateMetricsOrBuilder() { return aggregateMetrics_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetrics_; } public static final int AGGREGATE_METRICS_EXACT_FIELD_NUMBER = 5; private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetricsExact_; /** * * *
   * An aggregate of the statistics for the evaluation with fuzzy matching off.
   * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; * * @return Whether the aggregateMetricsExact field is set. */ @java.lang.Override public boolean hasAggregateMetricsExact() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * An aggregate of the statistics for the evaluation with fuzzy matching off.
   * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; * * @return The aggregateMetricsExact. */ @java.lang.Override public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetricsExact() { return aggregateMetricsExact_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetricsExact_; } /** * * *
   * An aggregate of the statistics for the evaluation with fuzzy matching off.
   * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ @java.lang.Override public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder getAggregateMetricsExactOrBuilder() { return aggregateMetricsExact_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetricsExact_; } 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(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, evaluation_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getAggregateMetrics()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getAggregateMetricsExact()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(evaluation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, evaluation_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAggregateMetrics()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAggregateMetricsExact()); } size += getUnknownFields().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.documentai.v1beta3.EvaluationReference)) { return super.equals(obj); } com.google.cloud.documentai.v1beta3.EvaluationReference other = (com.google.cloud.documentai.v1beta3.EvaluationReference) obj; if (!getOperation().equals(other.getOperation())) return false; if (!getEvaluation().equals(other.getEvaluation())) return false; if (hasAggregateMetrics() != other.hasAggregateMetrics()) return false; if (hasAggregateMetrics()) { if (!getAggregateMetrics().equals(other.getAggregateMetrics())) return false; } if (hasAggregateMetricsExact() != other.hasAggregateMetricsExact()) return false; if (hasAggregateMetricsExact()) { if (!getAggregateMetricsExact().equals(other.getAggregateMetricsExact())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + OPERATION_FIELD_NUMBER; hash = (53 * hash) + getOperation().hashCode(); hash = (37 * hash) + EVALUATION_FIELD_NUMBER; hash = (53 * hash) + getEvaluation().hashCode(); if (hasAggregateMetrics()) { hash = (37 * hash) + AGGREGATE_METRICS_FIELD_NUMBER; hash = (53 * hash) + getAggregateMetrics().hashCode(); } if (hasAggregateMetricsExact()) { hash = (37 * hash) + AGGREGATE_METRICS_EXACT_FIELD_NUMBER; hash = (53 * hash) + getAggregateMetricsExact().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.documentai.v1beta3.EvaluationReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.documentai.v1beta3.EvaluationReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.documentai.v1beta3.EvaluationReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.documentai.v1beta3.EvaluationReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.documentai.v1beta3.EvaluationReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.documentai.v1beta3.EvaluationReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.documentai.v1beta3.EvaluationReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.documentai.v1beta3.EvaluationReference 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.documentai.v1beta3.EvaluationReference 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; } /** * * *
   * Gives a short summary of an evaluation, and links to the evaluation itself.
   * 
* * Protobuf type {@code google.cloud.documentai.v1beta3.EvaluationReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.documentai.v1beta3.EvaluationReference) com.google.cloud.documentai.v1beta3.EvaluationReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.documentai.v1beta3.EvaluationReference.class, com.google.cloud.documentai.v1beta3.EvaluationReference.Builder.class); } // Construct using com.google.cloud.documentai.v1beta3.EvaluationReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAggregateMetricsFieldBuilder(); getAggregateMetricsExactFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; operation_ = ""; evaluation_ = ""; aggregateMetrics_ = null; if (aggregateMetricsBuilder_ != null) { aggregateMetricsBuilder_.dispose(); aggregateMetricsBuilder_ = null; } aggregateMetricsExact_ = null; if (aggregateMetricsExactBuilder_ != null) { aggregateMetricsExactBuilder_.dispose(); aggregateMetricsExactBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.documentai.v1beta3.DocumentAiEvaluation .internal_static_google_cloud_documentai_v1beta3_EvaluationReference_descriptor; } @java.lang.Override public com.google.cloud.documentai.v1beta3.EvaluationReference getDefaultInstanceForType() { return com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance(); } @java.lang.Override public com.google.cloud.documentai.v1beta3.EvaluationReference build() { com.google.cloud.documentai.v1beta3.EvaluationReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.documentai.v1beta3.EvaluationReference buildPartial() { com.google.cloud.documentai.v1beta3.EvaluationReference result = new com.google.cloud.documentai.v1beta3.EvaluationReference(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.documentai.v1beta3.EvaluationReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.operation_ = operation_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.evaluation_ = evaluation_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.aggregateMetrics_ = aggregateMetricsBuilder_ == null ? aggregateMetrics_ : aggregateMetricsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.aggregateMetricsExact_ = aggregateMetricsExactBuilder_ == null ? aggregateMetricsExact_ : aggregateMetricsExactBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.documentai.v1beta3.EvaluationReference) { return mergeFrom((com.google.cloud.documentai.v1beta3.EvaluationReference) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.documentai.v1beta3.EvaluationReference other) { if (other == com.google.cloud.documentai.v1beta3.EvaluationReference.getDefaultInstance()) return this; if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getEvaluation().isEmpty()) { evaluation_ = other.evaluation_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAggregateMetrics()) { mergeAggregateMetrics(other.getAggregateMetrics()); } if (other.hasAggregateMetricsExact()) { mergeAggregateMetricsExact(other.getAggregateMetricsExact()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { operation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { evaluation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage( getAggregateMetricsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getAggregateMetricsExactFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object operation_ = ""; /** * * *
     * The resource name of the Long Running Operation for the evaluation.
     * 
* * string operation = 1; * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The resource name of the Long Running Operation for the evaluation.
     * 
* * string operation = 1; * * @return The bytes for operation. */ public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The resource name of the Long Running Operation for the evaluation.
     * 
* * string operation = 1; * * @param value The operation to set. * @return This builder for chaining. */ public Builder setOperation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The resource name of the Long Running Operation for the evaluation.
     * 
* * string operation = 1; * * @return This builder for chaining. */ public Builder clearOperation() { operation_ = getDefaultInstance().getOperation(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The resource name of the Long Running Operation for the evaluation.
     * 
* * string operation = 1; * * @param value The bytes for operation to set. * @return This builder for chaining. */ public Builder setOperationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object evaluation_ = ""; /** * * *
     * The resource name of the evaluation.
     * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @return The evaluation. */ public java.lang.String getEvaluation() { java.lang.Object ref = evaluation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); evaluation_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The resource name of the evaluation.
     * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for evaluation. */ public com.google.protobuf.ByteString getEvaluationBytes() { java.lang.Object ref = evaluation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); evaluation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The resource name of the evaluation.
     * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @param value The evaluation to set. * @return This builder for chaining. */ public Builder setEvaluation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } evaluation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The resource name of the evaluation.
     * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearEvaluation() { evaluation_ = getDefaultInstance().getEvaluation(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The resource name of the evaluation.
     * 
* * string evaluation = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for evaluation to set. * @return This builder for chaining. */ public Builder setEvaluationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); evaluation_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetrics_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Evaluation.Metrics, com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> aggregateMetricsBuilder_; /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; * * @return Whether the aggregateMetrics field is set. */ public boolean hasAggregateMetrics() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; * * @return The aggregateMetrics. */ public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetrics() { if (aggregateMetricsBuilder_ == null) { return aggregateMetrics_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetrics_; } else { return aggregateMetricsBuilder_.getMessage(); } } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ public Builder setAggregateMetrics( com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { if (aggregateMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aggregateMetrics_ = value; } else { aggregateMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ public Builder setAggregateMetrics( com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder builderForValue) { if (aggregateMetricsBuilder_ == null) { aggregateMetrics_ = builderForValue.build(); } else { aggregateMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ public Builder mergeAggregateMetrics( com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { if (aggregateMetricsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && aggregateMetrics_ != null && aggregateMetrics_ != com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance()) { getAggregateMetricsBuilder().mergeFrom(value); } else { aggregateMetrics_ = value; } } else { aggregateMetricsBuilder_.mergeFrom(value); } if (aggregateMetrics_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ public Builder clearAggregateMetrics() { bitField0_ = (bitField0_ & ~0x00000004); aggregateMetrics_ = null; if (aggregateMetricsBuilder_ != null) { aggregateMetricsBuilder_.dispose(); aggregateMetricsBuilder_ = null; } onChanged(); return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ public com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder getAggregateMetricsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getAggregateMetricsFieldBuilder().getBuilder(); } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder getAggregateMetricsOrBuilder() { if (aggregateMetricsBuilder_ != null) { return aggregateMetricsBuilder_.getMessageOrBuilder(); } else { return aggregateMetrics_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetrics_; } } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Evaluation.Metrics, com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> getAggregateMetricsFieldBuilder() { if (aggregateMetricsBuilder_ == null) { aggregateMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Evaluation.Metrics, com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder>( getAggregateMetrics(), getParentForChildren(), isClean()); aggregateMetrics_ = null; } return aggregateMetricsBuilder_; } private com.google.cloud.documentai.v1beta3.Evaluation.Metrics aggregateMetricsExact_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Evaluation.Metrics, com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> aggregateMetricsExactBuilder_; /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; * * @return Whether the aggregateMetricsExact field is set. */ public boolean hasAggregateMetricsExact() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; * * @return The aggregateMetricsExact. */ public com.google.cloud.documentai.v1beta3.Evaluation.Metrics getAggregateMetricsExact() { if (aggregateMetricsExactBuilder_ == null) { return aggregateMetricsExact_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetricsExact_; } else { return aggregateMetricsExactBuilder_.getMessage(); } } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ public Builder setAggregateMetricsExact( com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { if (aggregateMetricsExactBuilder_ == null) { if (value == null) { throw new NullPointerException(); } aggregateMetricsExact_ = value; } else { aggregateMetricsExactBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ public Builder setAggregateMetricsExact( com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder builderForValue) { if (aggregateMetricsExactBuilder_ == null) { aggregateMetricsExact_ = builderForValue.build(); } else { aggregateMetricsExactBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ public Builder mergeAggregateMetricsExact( com.google.cloud.documentai.v1beta3.Evaluation.Metrics value) { if (aggregateMetricsExactBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && aggregateMetricsExact_ != null && aggregateMetricsExact_ != com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance()) { getAggregateMetricsExactBuilder().mergeFrom(value); } else { aggregateMetricsExact_ = value; } } else { aggregateMetricsExactBuilder_.mergeFrom(value); } if (aggregateMetricsExact_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ public Builder clearAggregateMetricsExact() { bitField0_ = (bitField0_ & ~0x00000008); aggregateMetricsExact_ = null; if (aggregateMetricsExactBuilder_ != null) { aggregateMetricsExactBuilder_.dispose(); aggregateMetricsExactBuilder_ = null; } onChanged(); return this; } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ public com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder getAggregateMetricsExactBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAggregateMetricsExactFieldBuilder().getBuilder(); } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ public com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder getAggregateMetricsExactOrBuilder() { if (aggregateMetricsExactBuilder_ != null) { return aggregateMetricsExactBuilder_.getMessageOrBuilder(); } else { return aggregateMetricsExact_ == null ? com.google.cloud.documentai.v1beta3.Evaluation.Metrics.getDefaultInstance() : aggregateMetricsExact_; } } /** * * *
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     * 
* * .google.cloud.documentai.v1beta3.Evaluation.Metrics aggregate_metrics_exact = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Evaluation.Metrics, com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder> getAggregateMetricsExactFieldBuilder() { if (aggregateMetricsExactBuilder_ == null) { aggregateMetricsExactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.documentai.v1beta3.Evaluation.Metrics, com.google.cloud.documentai.v1beta3.Evaluation.Metrics.Builder, com.google.cloud.documentai.v1beta3.Evaluation.MetricsOrBuilder>( getAggregateMetricsExact(), getParentForChildren(), isClean()); aggregateMetricsExact_ = null; } return aggregateMetricsExactBuilder_; } @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.documentai.v1beta3.EvaluationReference) } // @@protoc_insertion_point(class_scope:google.cloud.documentai.v1beta3.EvaluationReference) private static final com.google.cloud.documentai.v1beta3.EvaluationReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.documentai.v1beta3.EvaluationReference(); } public static com.google.cloud.documentai.v1beta3.EvaluationReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EvaluationReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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.documentai.v1beta3.EvaluationReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy