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

com.google.cloud.visionai.v1.DataSchemaDetails Maven / Gradle / Ivy

/*
 * 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/visionai/v1/warehouse.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.visionai.v1;

/**
 *
 *
 * 
 * Data schema details indicates the data type and the data struct corresponding
 * to the key of user specified annotation.
 * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails} */ public final class DataSchemaDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.DataSchemaDetails) DataSchemaDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use DataSchemaDetails.newBuilder() to construct. private DataSchemaDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataSchemaDetails() { type_ = 0; granularity_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataSchemaDetails(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.class, com.google.cloud.visionai.v1.DataSchemaDetails.Builder.class); } /** * * *
   * Data type of the annotation.
   * 
* * Protobuf enum {@code google.cloud.visionai.v1.DataSchemaDetails.DataType} */ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified type.
     * 
* * DATA_TYPE_UNSPECIFIED = 0; */ DATA_TYPE_UNSPECIFIED(0), /** * * *
     * Integer type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by IntRangeArray.
     * 
* * INTEGER = 1; */ INTEGER(1), /** * * *
     * Float type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by FloatRangeArray.
     * 
* * FLOAT = 2; */ FLOAT(2), /** * * *
     * String type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH,
     * - DataSchema.SearchStrategy.SMART_SEARCH.
     * 
* * STRING = 3; */ STRING(3), /** * * *
     * Supported formats:
     * %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full)
     * %Y-%m-%dT%H:%M:%E*S
     * %Y-%m-%dT%H:%M%E*z
     * %Y-%m-%dT%H:%M
     * %Y-%m-%dT%H%E*z
     * %Y-%m-%dT%H
     * %Y-%m-%d%E*z
     * %Y-%m-%d
     * %Y-%m
     * %Y
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by DateTimeRangeArray.
     * 
* * DATETIME = 5; */ DATETIME(5), /** * * *
     * Geo coordinate type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by GeoLocationArray.
     * 
* * GEO_COORDINATE = 7; */ GEO_COORDINATE(7), /** * * *
     * Type to pass any proto as available in annotations.proto. Only use
     * internally.
     * Available proto types and its corresponding search behavior:
     * - ImageObjectDetectionPredictionResult, allows SMART_SEARCH on
     *   display_names and NO_SEARCH.
     * - ClassificationPredictionResult, allows SMART_SEARCH on display_names
     *   and NO_SEARCH.
     * - ImageSegmentationPredictionResult, allows NO_SEARCH.
     * - VideoActionRecognitionPredictionResult, allows SMART_SEARCH on
     *   display_name and NO_SEARCH.
     * - VideoObjectTrackingPredictionResult, allows SMART_SEARCH on
     *   display_name and NO_SEARCH.
     * - VideoClassificationPredictionResult, allows SMART_SEARCH on
     *   display_name and NO_SEARCH.
     * - OccupancyCountingPredictionResult, allows EXACT_SEARCH on
     *   stats.full_frame_count.count and NO_SEARCH.
     * - ObjectDetectionPredictionResult, allows SMART_SEARCH on
     *   identified_boxes.entity.label_string and NO_SEARCH.
     * 
* * PROTO_ANY = 8; */ PROTO_ANY(8), /** * * *
     * Boolean type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     * 
* * BOOLEAN = 9; */ BOOLEAN(9), /** * * *
     * List type.
     *  - Each element in the list must be of the exact same data schema;
     *    otherwise, they are invalid arguments.
     *  - List level cannot set search strategy. Leaf node level can do.
     *  - Elements cannot be another list (no list of list).
     *  - Elements can be CUSTOMIZED_STRUCT, and max number of layers is 10.
     * 
* * LIST = 10; */ LIST(10), /** * * *
     * Struct type.
     * - SearchStrategy:
     *   * Data Schema that's CUSTOMIZED_STRUCT cannot set search strategy.
     *   * Leaf-node elements allow setting search strategy based on element's
     *     SearchStrategy restriction.
     * - Nested layer restrictions:
     *   * Data Schema that's CUSTOMIZED_STRUCT allows its fields to be of
     *     CUSTOMIZED_STRUCT as well, but the overall layers restriction is 10.
     * 
* * CUSTOMIZED_STRUCT = 6; */ CUSTOMIZED_STRUCT(6), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified type.
     * 
* * DATA_TYPE_UNSPECIFIED = 0; */ public static final int DATA_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Integer type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by IntRangeArray.
     * 
* * INTEGER = 1; */ public static final int INTEGER_VALUE = 1; /** * * *
     * Float type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by FloatRangeArray.
     * 
* * FLOAT = 2; */ public static final int FLOAT_VALUE = 2; /** * * *
     * String type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH,
     * - DataSchema.SearchStrategy.SMART_SEARCH.
     * 
* * STRING = 3; */ public static final int STRING_VALUE = 3; /** * * *
     * Supported formats:
     * %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full)
     * %Y-%m-%dT%H:%M:%E*S
     * %Y-%m-%dT%H:%M%E*z
     * %Y-%m-%dT%H:%M
     * %Y-%m-%dT%H%E*z
     * %Y-%m-%dT%H
     * %Y-%m-%d%E*z
     * %Y-%m-%d
     * %Y-%m
     * %Y
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by DateTimeRangeArray.
     * 
* * DATETIME = 5; */ public static final int DATETIME_VALUE = 5; /** * * *
     * Geo coordinate type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     *   Supports query by GeoLocationArray.
     * 
* * GEO_COORDINATE = 7; */ public static final int GEO_COORDINATE_VALUE = 7; /** * * *
     * Type to pass any proto as available in annotations.proto. Only use
     * internally.
     * Available proto types and its corresponding search behavior:
     * - ImageObjectDetectionPredictionResult, allows SMART_SEARCH on
     *   display_names and NO_SEARCH.
     * - ClassificationPredictionResult, allows SMART_SEARCH on display_names
     *   and NO_SEARCH.
     * - ImageSegmentationPredictionResult, allows NO_SEARCH.
     * - VideoActionRecognitionPredictionResult, allows SMART_SEARCH on
     *   display_name and NO_SEARCH.
     * - VideoObjectTrackingPredictionResult, allows SMART_SEARCH on
     *   display_name and NO_SEARCH.
     * - VideoClassificationPredictionResult, allows SMART_SEARCH on
     *   display_name and NO_SEARCH.
     * - OccupancyCountingPredictionResult, allows EXACT_SEARCH on
     *   stats.full_frame_count.count and NO_SEARCH.
     * - ObjectDetectionPredictionResult, allows SMART_SEARCH on
     *   identified_boxes.entity.label_string and NO_SEARCH.
     * 
* * PROTO_ANY = 8; */ public static final int PROTO_ANY_VALUE = 8; /** * * *
     * Boolean type.
     * Allowed search strategies:
     * - DataSchema.SearchStrategy.NO_SEARCH,
     * - DataSchema.SearchStrategy.EXACT_SEARCH.
     * 
* * BOOLEAN = 9; */ public static final int BOOLEAN_VALUE = 9; /** * * *
     * List type.
     *  - Each element in the list must be of the exact same data schema;
     *    otherwise, they are invalid arguments.
     *  - List level cannot set search strategy. Leaf node level can do.
     *  - Elements cannot be another list (no list of list).
     *  - Elements can be CUSTOMIZED_STRUCT, and max number of layers is 10.
     * 
* * LIST = 10; */ public static final int LIST_VALUE = 10; /** * * *
     * Struct type.
     * - SearchStrategy:
     *   * Data Schema that's CUSTOMIZED_STRUCT cannot set search strategy.
     *   * Leaf-node elements allow setting search strategy based on element's
     *     SearchStrategy restriction.
     * - Nested layer restrictions:
     *   * Data Schema that's CUSTOMIZED_STRUCT allows its fields to be of
     *     CUSTOMIZED_STRUCT as well, but the overall layers restriction is 10.
     * 
* * CUSTOMIZED_STRUCT = 6; */ public static final int CUSTOMIZED_STRUCT_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DataType forNumber(int value) { switch (value) { case 0: return DATA_TYPE_UNSPECIFIED; case 1: return INTEGER; case 2: return FLOAT; case 3: return STRING; case 5: return DATETIME; case 7: return GEO_COORDINATE; case 8: return PROTO_ANY; case 9: return BOOLEAN; case 10: return LIST; case 6: return CUSTOMIZED_STRUCT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DataType findValueByNumber(int number) { return DataType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.visionai.v1.DataSchemaDetails.getDescriptor().getEnumTypes().get(0); } private static final DataType[] VALUES = values(); public static DataType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DataType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.DataSchemaDetails.DataType) } /** * * *
   * The granularity of annotations under this DataSchema.
   * 
* * Protobuf enum {@code google.cloud.visionai.v1.DataSchemaDetails.Granularity} */ public enum Granularity implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified granularity.
     * 
* * GRANULARITY_UNSPECIFIED = 0; */ GRANULARITY_UNSPECIFIED(0), /** * * *
     * Asset-level granularity (annotations must not contain partition info).
     * 
* * GRANULARITY_ASSET_LEVEL = 1; */ GRANULARITY_ASSET_LEVEL(1), /** * * *
     * Partition-level granularity (annotations must contain partition info).
     * 
* * GRANULARITY_PARTITION_LEVEL = 2; */ GRANULARITY_PARTITION_LEVEL(2), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified granularity.
     * 
* * GRANULARITY_UNSPECIFIED = 0; */ public static final int GRANULARITY_UNSPECIFIED_VALUE = 0; /** * * *
     * Asset-level granularity (annotations must not contain partition info).
     * 
* * GRANULARITY_ASSET_LEVEL = 1; */ public static final int GRANULARITY_ASSET_LEVEL_VALUE = 1; /** * * *
     * Partition-level granularity (annotations must contain partition info).
     * 
* * GRANULARITY_PARTITION_LEVEL = 2; */ public static final int GRANULARITY_PARTITION_LEVEL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Granularity valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Granularity forNumber(int value) { switch (value) { case 0: return GRANULARITY_UNSPECIFIED; case 1: return GRANULARITY_ASSET_LEVEL; case 2: return GRANULARITY_PARTITION_LEVEL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Granularity findValueByNumber(int number) { return Granularity.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.visionai.v1.DataSchemaDetails.getDescriptor().getEnumTypes().get(1); } private static final Granularity[] VALUES = values(); public static Granularity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Granularity(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.DataSchemaDetails.Granularity) } public interface ProtoAnyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * The type URI of the proto message.
     * 
* * string type_uri = 1; * * @return The typeUri. */ java.lang.String getTypeUri(); /** * * *
     * The type URI of the proto message.
     * 
* * string type_uri = 1; * * @return The bytes for typeUri. */ com.google.protobuf.ByteString getTypeUriBytes(); } /** * * *
   * The configuration for `PROTO_ANY` data type.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig} */ public static final class ProtoAnyConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig) ProtoAnyConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ProtoAnyConfig.newBuilder() to construct. private ProtoAnyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProtoAnyConfig() { typeUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtoAnyConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ProtoAnyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ProtoAnyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder.class); } public static final int TYPE_URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object typeUri_ = ""; /** * * *
     * The type URI of the proto message.
     * 
* * string type_uri = 1; * * @return The typeUri. */ @java.lang.Override public java.lang.String getTypeUri() { java.lang.Object ref = typeUri_; 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(); typeUri_ = s; return s; } } /** * * *
     * The type URI of the proto message.
     * 
* * string type_uri = 1; * * @return The bytes for typeUri. */ @java.lang.Override public com.google.protobuf.ByteString getTypeUriBytes() { java.lang.Object ref = typeUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); typeUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typeUri_); } 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(typeUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typeUri_); } 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig)) { return super.equals(obj); } com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig other = (com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig) obj; if (!getTypeUri().equals(other.getTypeUri())) 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) + TYPE_URI_FIELD_NUMBER; hash = (53 * hash) + getTypeUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig 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; } /** * * *
     * The configuration for `PROTO_ANY` data type.
     * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig) com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ProtoAnyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ProtoAnyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder.class); } // Construct using com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; typeUri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ProtoAnyConfig_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig getDefaultInstanceForType() { return com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig build() { com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig buildPartial() { com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig result = new com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.typeUri_ = typeUri_; } } @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.visionai.v1.DataSchemaDetails.ProtoAnyConfig) { return mergeFrom((com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig other) { if (other == com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.getDefaultInstance()) return this; if (!other.getTypeUri().isEmpty()) { typeUri_ = other.typeUri_; bitField0_ |= 0x00000001; onChanged(); } 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: { typeUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 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 typeUri_ = ""; /** * * *
       * The type URI of the proto message.
       * 
* * string type_uri = 1; * * @return The typeUri. */ public java.lang.String getTypeUri() { java.lang.Object ref = typeUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The type URI of the proto message.
       * 
* * string type_uri = 1; * * @return The bytes for typeUri. */ public com.google.protobuf.ByteString getTypeUriBytes() { java.lang.Object ref = typeUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); typeUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The type URI of the proto message.
       * 
* * string type_uri = 1; * * @param value The typeUri to set. * @return This builder for chaining. */ public Builder setTypeUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The type URI of the proto message.
       * 
* * string type_uri = 1; * * @return This builder for chaining. */ public Builder clearTypeUri() { typeUri_ = getDefaultInstance().getTypeUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The type URI of the proto message.
       * 
* * string type_uri = 1; * * @param value The bytes for typeUri to set. * @return This builder for chaining. */ public Builder setTypeUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeUri_ = value; bitField0_ |= 0x00000001; 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig) private static final com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig(); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProtoAnyConfig 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.visionai.v1.DataSchemaDetails.ProtoAnyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.DataSchemaDetails.ListConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * The value's data schema in the list.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; * * @return Whether the valueSchema field is set. */ boolean hasValueSchema(); /** * * *
     * The value's data schema in the list.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; * * @return The valueSchema. */ com.google.cloud.visionai.v1.DataSchemaDetails getValueSchema(); /** * * *
     * The value's data schema in the list.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder getValueSchemaOrBuilder(); } /** * * *
   * The configuration for `LIST` data type.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.ListConfig} */ public static final class ListConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.DataSchemaDetails.ListConfig) ListConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ListConfig.newBuilder() to construct. private ListConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ListConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ListConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder.class); } private int bitField0_; public static final int VALUE_SCHEMA_FIELD_NUMBER = 1; private com.google.cloud.visionai.v1.DataSchemaDetails valueSchema_; /** * * *
     * The value's data schema in the list.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; * * @return Whether the valueSchema field is set. */ @java.lang.Override public boolean hasValueSchema() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The value's data schema in the list.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; * * @return The valueSchema. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails getValueSchema() { return valueSchema_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance() : valueSchema_; } /** * * *
     * The value's data schema in the list.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder getValueSchemaOrBuilder() { return valueSchema_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance() : valueSchema_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getValueSchema()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getValueSchema()); } 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.visionai.v1.DataSchemaDetails.ListConfig)) { return super.equals(obj); } com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig other = (com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig) obj; if (hasValueSchema() != other.hasValueSchema()) return false; if (hasValueSchema()) { if (!getValueSchema().equals(other.getValueSchema())) 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(); if (hasValueSchema()) { hash = (37 * hash) + VALUE_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getValueSchema().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig 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.visionai.v1.DataSchemaDetails.ListConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig 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.visionai.v1.DataSchemaDetails.ListConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig 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.visionai.v1.DataSchemaDetails.ListConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig 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.visionai.v1.DataSchemaDetails.ListConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig 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.visionai.v1.DataSchemaDetails.ListConfig 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; } /** * * *
     * The configuration for `LIST` data type.
     * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.ListConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.DataSchemaDetails.ListConfig) com.google.cloud.visionai.v1.DataSchemaDetails.ListConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ListConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ListConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder.class); } // Construct using com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValueSchemaFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; valueSchema_ = null; if (valueSchemaBuilder_ != null) { valueSchemaBuilder_.dispose(); valueSchemaBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_ListConfig_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig getDefaultInstanceForType() { return com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig build() { com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig buildPartial() { com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig result = new com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.valueSchema_ = valueSchemaBuilder_ == null ? valueSchema_ : valueSchemaBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.visionai.v1.DataSchemaDetails.ListConfig) { return mergeFrom((com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig other) { if (other == com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance()) return this; if (other.hasValueSchema()) { mergeValueSchema(other.getValueSchema()); } 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: { input.readMessage(getValueSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 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 com.google.cloud.visionai.v1.DataSchemaDetails valueSchema_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails, com.google.cloud.visionai.v1.DataSchemaDetails.Builder, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder> valueSchemaBuilder_; /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; * * @return Whether the valueSchema field is set. */ public boolean hasValueSchema() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; * * @return The valueSchema. */ public com.google.cloud.visionai.v1.DataSchemaDetails getValueSchema() { if (valueSchemaBuilder_ == null) { return valueSchema_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance() : valueSchema_; } else { return valueSchemaBuilder_.getMessage(); } } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ public Builder setValueSchema(com.google.cloud.visionai.v1.DataSchemaDetails value) { if (valueSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } valueSchema_ = value; } else { valueSchemaBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ public Builder setValueSchema( com.google.cloud.visionai.v1.DataSchemaDetails.Builder builderForValue) { if (valueSchemaBuilder_ == null) { valueSchema_ = builderForValue.build(); } else { valueSchemaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ public Builder mergeValueSchema(com.google.cloud.visionai.v1.DataSchemaDetails value) { if (valueSchemaBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && valueSchema_ != null && valueSchema_ != com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance()) { getValueSchemaBuilder().mergeFrom(value); } else { valueSchema_ = value; } } else { valueSchemaBuilder_.mergeFrom(value); } if (valueSchema_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ public Builder clearValueSchema() { bitField0_ = (bitField0_ & ~0x00000001); valueSchema_ = null; if (valueSchemaBuilder_ != null) { valueSchemaBuilder_.dispose(); valueSchemaBuilder_ = null; } onChanged(); return this; } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ public com.google.cloud.visionai.v1.DataSchemaDetails.Builder getValueSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getValueSchemaFieldBuilder().getBuilder(); } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ public com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder getValueSchemaOrBuilder() { if (valueSchemaBuilder_ != null) { return valueSchemaBuilder_.getMessageOrBuilder(); } else { return valueSchema_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance() : valueSchema_; } } /** * * *
       * The value's data schema in the list.
       * 
* * .google.cloud.visionai.v1.DataSchemaDetails value_schema = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails, com.google.cloud.visionai.v1.DataSchemaDetails.Builder, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder> getValueSchemaFieldBuilder() { if (valueSchemaBuilder_ == null) { valueSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails, com.google.cloud.visionai.v1.DataSchemaDetails.Builder, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder>( getValueSchema(), getParentForChildren(), isClean()); valueSchema_ = null; } return valueSchemaBuilder_; } @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.visionai.v1.DataSchemaDetails.ListConfig) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.DataSchemaDetails.ListConfig) private static final com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig(); } public static com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListConfig 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.visionai.v1.DataSchemaDetails.ListConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomizedStructConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig) com.google.protobuf.MessageOrBuilder { /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ int getFieldSchemasCount(); /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ boolean containsFieldSchemas(java.lang.String key); /** Use {@link #getFieldSchemasMap()} instead. */ @java.lang.Deprecated java.util.Map getFieldSchemas(); /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ java.util.Map getFieldSchemasMap(); /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ /* nullable */ com.google.cloud.visionai.v1.DataSchemaDetails getFieldSchemasOrDefault( java.lang.String key, /* nullable */ com.google.cloud.visionai.v1.DataSchemaDetails defaultValue); /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ com.google.cloud.visionai.v1.DataSchemaDetails getFieldSchemasOrThrow(java.lang.String key); } /** * * *
   * The configuration for `CUSTOMIZED_STRUCT` data type.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig} */ public static final class CustomizedStructConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig) CustomizedStructConfigOrBuilder { private static final long serialVersionUID = 0L; // Use CustomizedStructConfig.newBuilder() to construct. private CustomizedStructConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomizedStructConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomizedStructConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_CustomizedStructConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetFieldSchemas(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_CustomizedStructConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder.class); } public static final int FIELD_SCHEMAS_FIELD_NUMBER = 1; private static final class FieldSchemasDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetails> defaultEntry = com.google.protobuf.MapEntry . newDefaultInstance( com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_CustomizedStructConfig_FieldSchemasEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetails> fieldSchemas_; private com.google.protobuf.MapField< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetails> internalGetFieldSchemas() { if (fieldSchemas_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldSchemasDefaultEntryHolder.defaultEntry); } return fieldSchemas_; } public int getFieldSchemasCount() { return internalGetFieldSchemas().getMap().size(); } /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public boolean containsFieldSchemas(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFieldSchemas().getMap().containsKey(key); } /** Use {@link #getFieldSchemasMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFieldSchemas() { return getFieldSchemasMap(); } /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public java.util.Map getFieldSchemasMap() { return internalGetFieldSchemas().getMap(); } /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public /* nullable */ com.google.cloud.visionai.v1.DataSchemaDetails getFieldSchemasOrDefault( java.lang.String key, /* nullable */ com.google.cloud.visionai.v1.DataSchemaDetails defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFieldSchemas().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * Direct child elements data schemas.
     * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails getFieldSchemasOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFieldSchemas().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 { com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetFieldSchemas(), FieldSchemasDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetFieldSchemas().getMap().entrySet()) { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetails> fieldSchemas__ = FieldSchemasDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fieldSchemas__); } 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig)) { return super.equals(obj); } com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig other = (com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig) obj; if (!internalGetFieldSchemas().equals(other.internalGetFieldSchemas())) 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(); if (!internalGetFieldSchemas().getMap().isEmpty()) { hash = (37 * hash) + FIELD_SCHEMAS_FIELD_NUMBER; hash = (53 * hash) + internalGetFieldSchemas().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig 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; } /** * * *
     * The configuration for `CUSTOMIZED_STRUCT` data type.
     * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig) com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_CustomizedStructConfig_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetFieldSchemas(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 1: return internalGetMutableFieldSchemas(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_CustomizedStructConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder .class); } // Construct using // com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; internalGetMutableFieldSchemas().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_CustomizedStructConfig_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig getDefaultInstanceForType() { return com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig .getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig build() { com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig buildPartial() { com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig result = new com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldSchemas_ = internalGetFieldSchemas().build(FieldSchemasDefaultEntryHolder.defaultEntry); } } @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.visionai.v1.DataSchemaDetails.CustomizedStructConfig) { return mergeFrom( (com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig other) { if (other == com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig .getDefaultInstance()) return this; internalGetMutableFieldSchemas().mergeFrom(other.internalGetFieldSchemas()); bitField0_ |= 0x00000001; 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: { com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetails> fieldSchemas__ = input.readMessage( FieldSchemasDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFieldSchemas() .ensureBuilderMap() .put(fieldSchemas__.getKey(), fieldSchemas__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 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 static final class FieldSchemasConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder, com.google.cloud.visionai.v1.DataSchemaDetails> { @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails build( com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder val) { if (val instanceof com.google.cloud.visionai.v1.DataSchemaDetails) { return (com.google.cloud.visionai.v1.DataSchemaDetails) val; } return ((com.google.cloud.visionai.v1.DataSchemaDetails.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetails> defaultEntry() { return FieldSchemasDefaultEntryHolder.defaultEntry; } }; private static final FieldSchemasConverter fieldSchemasConverter = new FieldSchemasConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder, com.google.cloud.visionai.v1.DataSchemaDetails, com.google.cloud.visionai.v1.DataSchemaDetails.Builder> fieldSchemas_; private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder, com.google.cloud.visionai.v1.DataSchemaDetails, com.google.cloud.visionai.v1.DataSchemaDetails.Builder> internalGetFieldSchemas() { if (fieldSchemas_ == null) { return new com.google.protobuf.MapFieldBuilder<>(fieldSchemasConverter); } return fieldSchemas_; } private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder, com.google.cloud.visionai.v1.DataSchemaDetails, com.google.cloud.visionai.v1.DataSchemaDetails.Builder> internalGetMutableFieldSchemas() { if (fieldSchemas_ == null) { fieldSchemas_ = new com.google.protobuf.MapFieldBuilder<>(fieldSchemasConverter); } bitField0_ |= 0x00000001; onChanged(); return fieldSchemas_; } public int getFieldSchemasCount() { return internalGetFieldSchemas().ensureBuilderMap().size(); } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public boolean containsFieldSchemas(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFieldSchemas().ensureBuilderMap().containsKey(key); } /** Use {@link #getFieldSchemasMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFieldSchemas() { return getFieldSchemasMap(); } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public java.util.Map getFieldSchemasMap() { return internalGetFieldSchemas().getImmutableMap(); } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public /* nullable */ com.google.cloud.visionai.v1.DataSchemaDetails getFieldSchemasOrDefault( java.lang.String key, /* nullable */ com.google.cloud.visionai.v1.DataSchemaDetails defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableFieldSchemas().ensureBuilderMap(); return map.containsKey(key) ? fieldSchemasConverter.build(map.get(key)) : defaultValue; } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails getFieldSchemasOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableFieldSchemas().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return fieldSchemasConverter.build(map.get(key)); } public Builder clearFieldSchemas() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableFieldSchemas().clear(); return this; } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ public Builder removeFieldSchemas(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFieldSchemas().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFieldSchemas() { bitField0_ |= 0x00000001; return internalGetMutableFieldSchemas().ensureMessageMap(); } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ public Builder putFieldSchemas( java.lang.String key, com.google.cloud.visionai.v1.DataSchemaDetails value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableFieldSchemas().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ public Builder putAllFieldSchemas( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableFieldSchemas().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000001; return this; } /** * * *
       * Direct child elements data schemas.
       * 
* * map<string, .google.cloud.visionai.v1.DataSchemaDetails> field_schemas = 1; * */ public com.google.cloud.visionai.v1.DataSchemaDetails.Builder putFieldSchemasBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableFieldSchemas().ensureBuilderMap(); com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.cloud.visionai.v1.DataSchemaDetails.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.cloud.visionai.v1.DataSchemaDetails) { entry = ((com.google.cloud.visionai.v1.DataSchemaDetails) entry).toBuilder(); builderMap.put(key, entry); } return (com.google.cloud.visionai.v1.DataSchemaDetails.Builder) entry; } @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.visionai.v1.DataSchemaDetails.CustomizedStructConfig) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig) private static final com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig(); } public static com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomizedStructConfig 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.visionai.v1.DataSchemaDetails.CustomizedStructConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchStrategyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy) com.google.protobuf.MessageOrBuilder { /** * * *
     * The type of search strategy to be applied on the `key` above.
     * The allowed `search_strategy_type` is different for different data types,
     * which is documented in the DataSchemaDetails.DataType. Specifying
     * unsupported `search_strategy_type` for data types will result in
     * INVALID_ARGUMENT error.
     * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return Whether the searchStrategyType field is set. */ boolean hasSearchStrategyType(); /** * * *
     * The type of search strategy to be applied on the `key` above.
     * The allowed `search_strategy_type` is different for different data types,
     * which is documented in the DataSchemaDetails.DataType. Specifying
     * unsupported `search_strategy_type` for data types will result in
     * INVALID_ARGUMENT error.
     * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return The enum numeric value on the wire for searchStrategyType. */ int getSearchStrategyTypeValue(); /** * * *
     * The type of search strategy to be applied on the `key` above.
     * The allowed `search_strategy_type` is different for different data types,
     * which is documented in the DataSchemaDetails.DataType. Specifying
     * unsupported `search_strategy_type` for data types will result in
     * INVALID_ARGUMENT error.
     * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return The searchStrategyType. */ com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType getSearchStrategyType(); /** * * *
     * Optional. Configs the path to the confidence score, and the threshold.
     * Only if the score is greater than the threshold, current field will be
     * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
     * SMART_SEARCH.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the confidenceScoreIndexConfig field is set. */ boolean hasConfidenceScoreIndexConfig(); /** * * *
     * Optional. Configs the path to the confidence score, and the threshold.
     * Only if the score is greater than the threshold, current field will be
     * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
     * SMART_SEARCH.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The confidenceScoreIndexConfig. */ com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig getConfidenceScoreIndexConfig(); /** * * *
     * Optional. Configs the path to the confidence score, and the threshold.
     * Only if the score is greater than the threshold, current field will be
     * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
     * SMART_SEARCH.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder getConfidenceScoreIndexConfigOrBuilder(); } /** * * *
   * The search strategy for annotations value of the `key`.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy} */ public static final class SearchStrategy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy) SearchStrategyOrBuilder { private static final long serialVersionUID = 0L; // Use SearchStrategy.newBuilder() to construct. private SearchStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchStrategy() { searchStrategyType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchStrategy(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.class, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder.class); } /** * * *
     * The types of search strategies to be applied on the annotation key.
     * 
* * Protobuf enum {@code * google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType} */ public enum SearchStrategyType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
       * Annotatation values of the `key` above will not be searchable.
       * 
* * NO_SEARCH = 0; */ NO_SEARCH(0), /** * * *
       * When searching with `key`, the value must be exactly as the annotation
       * value that has been ingested.
       * 
* * EXACT_SEARCH = 1; */ EXACT_SEARCH(1), /** * * *
       * When searching with `key`, Warehouse will perform broad search based on
       * semantic of the annotation value.
       * 
* * SMART_SEARCH = 2; */ SMART_SEARCH(2), UNRECOGNIZED(-1), ; /** * * *
       * Annotatation values of the `key` above will not be searchable.
       * 
* * NO_SEARCH = 0; */ public static final int NO_SEARCH_VALUE = 0; /** * * *
       * When searching with `key`, the value must be exactly as the annotation
       * value that has been ingested.
       * 
* * EXACT_SEARCH = 1; */ public static final int EXACT_SEARCH_VALUE = 1; /** * * *
       * When searching with `key`, Warehouse will perform broad search based on
       * semantic of the annotation value.
       * 
* * SMART_SEARCH = 2; */ public static final int SMART_SEARCH_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SearchStrategyType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static SearchStrategyType forNumber(int value) { switch (value) { case 0: return NO_SEARCH; case 1: return EXACT_SEARCH; case 2: return SMART_SEARCH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SearchStrategyType findValueByNumber(int number) { return SearchStrategyType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDescriptor() .getEnumTypes() .get(0); } private static final SearchStrategyType[] VALUES = values(); public static SearchStrategyType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private SearchStrategyType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType) } public interface ConfidenceScoreIndexConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig) com.google.protobuf.MessageOrBuilder { /** * * *
       * Required. The path to the confidence score field. It is a string that
       * concatenates all the data schema keys along the path. See the example
       * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
       * Example data schema contains a list:
       * "key": "list-name-score",
       * "schemaDetails": {
       *   "type": "LIST",
       *   "granularity": "GRANULARITY_PARTITION_LEVEL",
       *   "listConfig": {
       *     "valueSchema": {
       *       "type": "CUSTOMIZED_STRUCT",
       *       "granularity": "GRANULARITY_PARTITION_LEVEL",
       *       "customizedStructConfig": {
       *         "fieldSchemas": {
       *           "name": {
       *             "type": "STRING",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *             "searchStrategy": {
       *               "searchStrategyType": "SMART_SEARCH"
       *               "confidence_score_index_config": {
       *                 "field_path": "list-name-score._ENTRIES.score",
       *                 "threshold": "0.9",
       *               }
       *             }
       *           },
       *           "score": {
       *             "type": "FLOAT",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *           }
       *         }
       *       }
       *     }
       *   }
       * }
       * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The fieldPath. */ java.lang.String getFieldPath(); /** * * *
       * Required. The path to the confidence score field. It is a string that
       * concatenates all the data schema keys along the path. See the example
       * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
       * Example data schema contains a list:
       * "key": "list-name-score",
       * "schemaDetails": {
       *   "type": "LIST",
       *   "granularity": "GRANULARITY_PARTITION_LEVEL",
       *   "listConfig": {
       *     "valueSchema": {
       *       "type": "CUSTOMIZED_STRUCT",
       *       "granularity": "GRANULARITY_PARTITION_LEVEL",
       *       "customizedStructConfig": {
       *         "fieldSchemas": {
       *           "name": {
       *             "type": "STRING",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *             "searchStrategy": {
       *               "searchStrategyType": "SMART_SEARCH"
       *               "confidence_score_index_config": {
       *                 "field_path": "list-name-score._ENTRIES.score",
       *                 "threshold": "0.9",
       *               }
       *             }
       *           },
       *           "score": {
       *             "type": "FLOAT",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *           }
       *         }
       *       }
       *     }
       *   }
       * }
       * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for fieldPath. */ com.google.protobuf.ByteString getFieldPathBytes(); /** * * *
       * Required. The threshold.
       * 
* * float threshold = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The threshold. */ float getThreshold(); } /** * * *
     * Filter on the confidence score. Only adds to index if the confidence
     * score is higher than the threshold.
     * Example data schema:
     * key: "name-confidence-pair"
     * type: CUSTOMIZED_STRUCT
     * granularity: GRANULARITY_PARTITION_LEVEL
     * customized_struct_config {
     *   field_schemas {
     *     key: "name"
     *     type: STRING
     *     granularity: GRANULARITY_PARTITION_LEVEL
     *     search_strategy {
     *       search_strategy_type: SMART_SEARCH
     *       confidence_score_index_config {
     *         field_path: "name-confidence-pair.score"
     *         threshold: 0.6
     *       }
     *     }
     *   }
     *   field_schemas {
     *     key: "score"
     *     type: FLOAT
     *     granularity: GRANULARITY_PARTITION_LEVEL
     *   }
     * }
     * This means only "name" with score > 0.6 will be indexed.
     * 
* * Protobuf type {@code * google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig} */ public static final class ConfidenceScoreIndexConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig) ConfidenceScoreIndexConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ConfidenceScoreIndexConfig.newBuilder() to construct. private ConfidenceScoreIndexConfig( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfidenceScoreIndexConfig() { fieldPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfidenceScoreIndexConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_ConfidenceScoreIndexConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_ConfidenceScoreIndexConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.Builder.class); } public static final int FIELD_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object fieldPath_ = ""; /** * * *
       * Required. The path to the confidence score field. It is a string that
       * concatenates all the data schema keys along the path. See the example
       * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
       * Example data schema contains a list:
       * "key": "list-name-score",
       * "schemaDetails": {
       *   "type": "LIST",
       *   "granularity": "GRANULARITY_PARTITION_LEVEL",
       *   "listConfig": {
       *     "valueSchema": {
       *       "type": "CUSTOMIZED_STRUCT",
       *       "granularity": "GRANULARITY_PARTITION_LEVEL",
       *       "customizedStructConfig": {
       *         "fieldSchemas": {
       *           "name": {
       *             "type": "STRING",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *             "searchStrategy": {
       *               "searchStrategyType": "SMART_SEARCH"
       *               "confidence_score_index_config": {
       *                 "field_path": "list-name-score._ENTRIES.score",
       *                 "threshold": "0.9",
       *               }
       *             }
       *           },
       *           "score": {
       *             "type": "FLOAT",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *           }
       *         }
       *       }
       *     }
       *   }
       * }
       * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The fieldPath. */ @java.lang.Override public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; 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(); fieldPath_ = s; return s; } } /** * * *
       * Required. The path to the confidence score field. It is a string that
       * concatenates all the data schema keys along the path. See the example
       * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
       * Example data schema contains a list:
       * "key": "list-name-score",
       * "schemaDetails": {
       *   "type": "LIST",
       *   "granularity": "GRANULARITY_PARTITION_LEVEL",
       *   "listConfig": {
       *     "valueSchema": {
       *       "type": "CUSTOMIZED_STRUCT",
       *       "granularity": "GRANULARITY_PARTITION_LEVEL",
       *       "customizedStructConfig": {
       *         "fieldSchemas": {
       *           "name": {
       *             "type": "STRING",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *             "searchStrategy": {
       *               "searchStrategyType": "SMART_SEARCH"
       *               "confidence_score_index_config": {
       *                 "field_path": "list-name-score._ENTRIES.score",
       *                 "threshold": "0.9",
       *               }
       *             }
       *           },
       *           "score": {
       *             "type": "FLOAT",
       *             "granularity": "GRANULARITY_PARTITION_LEVEL",
       *           }
       *         }
       *       }
       *     }
       *   }
       * }
       * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for fieldPath. */ @java.lang.Override public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int THRESHOLD_FIELD_NUMBER = 2; private float threshold_ = 0F; /** * * *
       * Required. The threshold.
       * 
* * float threshold = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The threshold. */ @java.lang.Override public float getThreshold() { return threshold_; } 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(fieldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); } if (java.lang.Float.floatToRawIntBits(threshold_) != 0) { output.writeFloat(2, threshold_); } 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(fieldPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); } if (java.lang.Float.floatToRawIntBits(threshold_) != 0) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, threshold_); } 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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig)) { return super.equals(obj); } com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig other = (com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig) obj; if (!getFieldPath().equals(other.getFieldPath())) return false; if (java.lang.Float.floatToIntBits(getThreshold()) != java.lang.Float.floatToIntBits(other.getThreshold())) 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) + FIELD_PATH_FIELD_NUMBER; hash = (53 * hash) + getFieldPath().hashCode(); hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getThreshold()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig 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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig 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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig 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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig 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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig 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.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig 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; } /** * * *
       * Filter on the confidence score. Only adds to index if the confidence
       * score is higher than the threshold.
       * Example data schema:
       * key: "name-confidence-pair"
       * type: CUSTOMIZED_STRUCT
       * granularity: GRANULARITY_PARTITION_LEVEL
       * customized_struct_config {
       *   field_schemas {
       *     key: "name"
       *     type: STRING
       *     granularity: GRANULARITY_PARTITION_LEVEL
       *     search_strategy {
       *       search_strategy_type: SMART_SEARCH
       *       confidence_score_index_config {
       *         field_path: "name-confidence-pair.score"
       *         threshold: 0.6
       *       }
       *     }
       *   }
       *   field_schemas {
       *     key: "score"
       *     type: FLOAT
       *     granularity: GRANULARITY_PARTITION_LEVEL
       *   }
       * }
       * This means only "name" with score > 0.6 will be indexed.
       * 
* * Protobuf type {@code * google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig) com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_ConfidenceScoreIndexConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_ConfidenceScoreIndexConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.class, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.Builder.class); } // Construct using // com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fieldPath_ = ""; threshold_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_ConfidenceScoreIndexConfig_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig getDefaultInstanceForType() { return com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig build() { com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig buildPartial() { com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig result = new com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.fieldPath_ = fieldPath_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.threshold_ = threshold_; } } @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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig) { return mergeFrom( (com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig other) { if (other == com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.getDefaultInstance()) return this; if (!other.getFieldPath().isEmpty()) { fieldPath_ = other.fieldPath_; bitField0_ |= 0x00000001; onChanged(); } if (other.getThreshold() != 0F) { setThreshold(other.getThreshold()); } 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: { fieldPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 21: { threshold_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 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 fieldPath_ = ""; /** * * *
         * Required. The path to the confidence score field. It is a string that
         * concatenates all the data schema keys along the path. See the example
         * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
         * Example data schema contains a list:
         * "key": "list-name-score",
         * "schemaDetails": {
         *   "type": "LIST",
         *   "granularity": "GRANULARITY_PARTITION_LEVEL",
         *   "listConfig": {
         *     "valueSchema": {
         *       "type": "CUSTOMIZED_STRUCT",
         *       "granularity": "GRANULARITY_PARTITION_LEVEL",
         *       "customizedStructConfig": {
         *         "fieldSchemas": {
         *           "name": {
         *             "type": "STRING",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *             "searchStrategy": {
         *               "searchStrategyType": "SMART_SEARCH"
         *               "confidence_score_index_config": {
         *                 "field_path": "list-name-score._ENTRIES.score",
         *                 "threshold": "0.9",
         *               }
         *             }
         *           },
         *           "score": {
         *             "type": "FLOAT",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *           }
         *         }
         *       }
         *     }
         *   }
         * }
         * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The fieldPath. */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * Required. The path to the confidence score field. It is a string that
         * concatenates all the data schema keys along the path. See the example
         * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
         * Example data schema contains a list:
         * "key": "list-name-score",
         * "schemaDetails": {
         *   "type": "LIST",
         *   "granularity": "GRANULARITY_PARTITION_LEVEL",
         *   "listConfig": {
         *     "valueSchema": {
         *       "type": "CUSTOMIZED_STRUCT",
         *       "granularity": "GRANULARITY_PARTITION_LEVEL",
         *       "customizedStructConfig": {
         *         "fieldSchemas": {
         *           "name": {
         *             "type": "STRING",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *             "searchStrategy": {
         *               "searchStrategyType": "SMART_SEARCH"
         *               "confidence_score_index_config": {
         *                 "field_path": "list-name-score._ENTRIES.score",
         *                 "threshold": "0.9",
         *               }
         *             }
         *           },
         *           "score": {
         *             "type": "FLOAT",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *           }
         *         }
         *       }
         *     }
         *   }
         * }
         * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for fieldPath. */ public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * Required. The path to the confidence score field. It is a string that
         * concatenates all the data schema keys along the path. See the example
         * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
         * Example data schema contains a list:
         * "key": "list-name-score",
         * "schemaDetails": {
         *   "type": "LIST",
         *   "granularity": "GRANULARITY_PARTITION_LEVEL",
         *   "listConfig": {
         *     "valueSchema": {
         *       "type": "CUSTOMIZED_STRUCT",
         *       "granularity": "GRANULARITY_PARTITION_LEVEL",
         *       "customizedStructConfig": {
         *         "fieldSchemas": {
         *           "name": {
         *             "type": "STRING",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *             "searchStrategy": {
         *               "searchStrategyType": "SMART_SEARCH"
         *               "confidence_score_index_config": {
         *                 "field_path": "list-name-score._ENTRIES.score",
         *                 "threshold": "0.9",
         *               }
         *             }
         *           },
         *           "score": {
         *             "type": "FLOAT",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *           }
         *         }
         *       }
         *     }
         *   }
         * }
         * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The fieldPath to set. * @return This builder for chaining. */ public Builder setFieldPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Required. The path to the confidence score field. It is a string that
         * concatenates all the data schema keys along the path. See the example
         * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
         * Example data schema contains a list:
         * "key": "list-name-score",
         * "schemaDetails": {
         *   "type": "LIST",
         *   "granularity": "GRANULARITY_PARTITION_LEVEL",
         *   "listConfig": {
         *     "valueSchema": {
         *       "type": "CUSTOMIZED_STRUCT",
         *       "granularity": "GRANULARITY_PARTITION_LEVEL",
         *       "customizedStructConfig": {
         *         "fieldSchemas": {
         *           "name": {
         *             "type": "STRING",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *             "searchStrategy": {
         *               "searchStrategyType": "SMART_SEARCH"
         *               "confidence_score_index_config": {
         *                 "field_path": "list-name-score._ENTRIES.score",
         *                 "threshold": "0.9",
         *               }
         *             }
         *           },
         *           "score": {
         *             "type": "FLOAT",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *           }
         *         }
         *       }
         *     }
         *   }
         * }
         * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearFieldPath() { fieldPath_ = getDefaultInstance().getFieldPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
         * Required. The path to the confidence score field. It is a string that
         * concatenates all the data schema keys along the path. See the example
         * above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
         * Example data schema contains a list:
         * "key": "list-name-score",
         * "schemaDetails": {
         *   "type": "LIST",
         *   "granularity": "GRANULARITY_PARTITION_LEVEL",
         *   "listConfig": {
         *     "valueSchema": {
         *       "type": "CUSTOMIZED_STRUCT",
         *       "granularity": "GRANULARITY_PARTITION_LEVEL",
         *       "customizedStructConfig": {
         *         "fieldSchemas": {
         *           "name": {
         *             "type": "STRING",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *             "searchStrategy": {
         *               "searchStrategyType": "SMART_SEARCH"
         *               "confidence_score_index_config": {
         *                 "field_path": "list-name-score._ENTRIES.score",
         *                 "threshold": "0.9",
         *               }
         *             }
         *           },
         *           "score": {
         *             "type": "FLOAT",
         *             "granularity": "GRANULARITY_PARTITION_LEVEL",
         *           }
         *         }
         *       }
         *     }
         *   }
         * }
         * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for fieldPath to set. * @return This builder for chaining. */ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private float threshold_; /** * * *
         * Required. The threshold.
         * 
* * float threshold = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The threshold. */ @java.lang.Override public float getThreshold() { return threshold_; } /** * * *
         * Required. The threshold.
         * 
* * float threshold = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The threshold to set. * @return This builder for chaining. */ public Builder setThreshold(float value) { threshold_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Required. The threshold.
         * 
* * float threshold = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearThreshold() { bitField0_ = (bitField0_ & ~0x00000002); threshold_ = 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.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig) private static final com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig(); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfidenceScoreIndexConfig 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.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SEARCH_STRATEGY_TYPE_FIELD_NUMBER = 1; private int searchStrategyType_ = 0; /** * * *
     * The type of search strategy to be applied on the `key` above.
     * The allowed `search_strategy_type` is different for different data types,
     * which is documented in the DataSchemaDetails.DataType. Specifying
     * unsupported `search_strategy_type` for data types will result in
     * INVALID_ARGUMENT error.
     * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return Whether the searchStrategyType field is set. */ @java.lang.Override public boolean hasSearchStrategyType() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The type of search strategy to be applied on the `key` above.
     * The allowed `search_strategy_type` is different for different data types,
     * which is documented in the DataSchemaDetails.DataType. Specifying
     * unsupported `search_strategy_type` for data types will result in
     * INVALID_ARGUMENT error.
     * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return The enum numeric value on the wire for searchStrategyType. */ @java.lang.Override public int getSearchStrategyTypeValue() { return searchStrategyType_; } /** * * *
     * The type of search strategy to be applied on the `key` above.
     * The allowed `search_strategy_type` is different for different data types,
     * which is documented in the DataSchemaDetails.DataType. Specifying
     * unsupported `search_strategy_type` for data types will result in
     * INVALID_ARGUMENT error.
     * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return The searchStrategyType. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType getSearchStrategyType() { com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType result = com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType .forNumber(searchStrategyType_); return result == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType .UNRECOGNIZED : result; } public static final int CONFIDENCE_SCORE_INDEX_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidenceScoreIndexConfig_; /** * * *
     * Optional. Configs the path to the confidence score, and the threshold.
     * Only if the score is greater than the threshold, current field will be
     * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
     * SMART_SEARCH.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the confidenceScoreIndexConfig field is set. */ @java.lang.Override public boolean hasConfidenceScoreIndexConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Optional. Configs the path to the confidence score, and the threshold.
     * Only if the score is greater than the threshold, current field will be
     * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
     * SMART_SEARCH.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The confidenceScoreIndexConfig. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig getConfidenceScoreIndexConfig() { return confidenceScoreIndexConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig .getDefaultInstance() : confidenceScoreIndexConfig_; } /** * * *
     * Optional. Configs the path to the confidence score, and the threshold.
     * Only if the score is greater than the threshold, current field will be
     * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
     * SMART_SEARCH.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder getConfidenceScoreIndexConfigOrBuilder() { return confidenceScoreIndexConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig .getDefaultInstance() : confidenceScoreIndexConfig_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, searchStrategyType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getConfidenceScoreIndexConfig()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchStrategyType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getConfidenceScoreIndexConfig()); } 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.visionai.v1.DataSchemaDetails.SearchStrategy)) { return super.equals(obj); } com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy other = (com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy) obj; if (hasSearchStrategyType() != other.hasSearchStrategyType()) return false; if (hasSearchStrategyType()) { if (searchStrategyType_ != other.searchStrategyType_) return false; } if (hasConfidenceScoreIndexConfig() != other.hasConfidenceScoreIndexConfig()) return false; if (hasConfidenceScoreIndexConfig()) { if (!getConfidenceScoreIndexConfig().equals(other.getConfidenceScoreIndexConfig())) 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(); if (hasSearchStrategyType()) { hash = (37 * hash) + SEARCH_STRATEGY_TYPE_FIELD_NUMBER; hash = (53 * hash) + searchStrategyType_; } if (hasConfidenceScoreIndexConfig()) { hash = (37 * hash) + CONFIDENCE_SCORE_INDEX_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfidenceScoreIndexConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy 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.visionai.v1.DataSchemaDetails.SearchStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy 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.visionai.v1.DataSchemaDetails.SearchStrategy parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy 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.visionai.v1.DataSchemaDetails.SearchStrategy parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy 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.visionai.v1.DataSchemaDetails.SearchStrategy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy 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.visionai.v1.DataSchemaDetails.SearchStrategy 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; } /** * * *
     * The search strategy for annotations value of the `key`.
     * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy) com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.class, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder.class); } // Construct using com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConfidenceScoreIndexConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; searchStrategyType_ = 0; confidenceScoreIndexConfig_ = null; if (confidenceScoreIndexConfigBuilder_ != null) { confidenceScoreIndexConfigBuilder_.dispose(); confidenceScoreIndexConfigBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_SearchStrategy_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy getDefaultInstanceForType() { return com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy build() { com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy buildPartial() { com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy result = new com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.searchStrategyType_ = searchStrategyType_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.confidenceScoreIndexConfig_ = confidenceScoreIndexConfigBuilder_ == null ? confidenceScoreIndexConfig_ : confidenceScoreIndexConfigBuilder_.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.visionai.v1.DataSchemaDetails.SearchStrategy) { return mergeFrom((com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy other) { if (other == com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDefaultInstance()) return this; if (other.hasSearchStrategyType()) { setSearchStrategyType(other.getSearchStrategyType()); } if (other.hasConfidenceScoreIndexConfig()) { mergeConfidenceScoreIndexConfig(other.getConfidenceScoreIndexConfig()); } 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 8: { searchStrategyType_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getConfidenceScoreIndexConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 int searchStrategyType_ = 0; /** * * *
       * The type of search strategy to be applied on the `key` above.
       * The allowed `search_strategy_type` is different for different data types,
       * which is documented in the DataSchemaDetails.DataType. Specifying
       * unsupported `search_strategy_type` for data types will result in
       * INVALID_ARGUMENT error.
       * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return Whether the searchStrategyType field is set. */ @java.lang.Override public boolean hasSearchStrategyType() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * The type of search strategy to be applied on the `key` above.
       * The allowed `search_strategy_type` is different for different data types,
       * which is documented in the DataSchemaDetails.DataType. Specifying
       * unsupported `search_strategy_type` for data types will result in
       * INVALID_ARGUMENT error.
       * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return The enum numeric value on the wire for searchStrategyType. */ @java.lang.Override public int getSearchStrategyTypeValue() { return searchStrategyType_; } /** * * *
       * The type of search strategy to be applied on the `key` above.
       * The allowed `search_strategy_type` is different for different data types,
       * which is documented in the DataSchemaDetails.DataType. Specifying
       * unsupported `search_strategy_type` for data types will result in
       * INVALID_ARGUMENT error.
       * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @param value The enum numeric value on the wire for searchStrategyType to set. * @return This builder for chaining. */ public Builder setSearchStrategyTypeValue(int value) { searchStrategyType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The type of search strategy to be applied on the `key` above.
       * The allowed `search_strategy_type` is different for different data types,
       * which is documented in the DataSchemaDetails.DataType. Specifying
       * unsupported `search_strategy_type` for data types will result in
       * INVALID_ARGUMENT error.
       * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return The searchStrategyType. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType getSearchStrategyType() { com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType result = com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType .forNumber(searchStrategyType_); return result == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType .UNRECOGNIZED : result; } /** * * *
       * The type of search strategy to be applied on the `key` above.
       * The allowed `search_strategy_type` is different for different data types,
       * which is documented in the DataSchemaDetails.DataType. Specifying
       * unsupported `search_strategy_type` for data types will result in
       * INVALID_ARGUMENT error.
       * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @param value The searchStrategyType to set. * @return This builder for chaining. */ public Builder setSearchStrategyType( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; searchStrategyType_ = value.getNumber(); onChanged(); return this; } /** * * *
       * The type of search strategy to be applied on the `key` above.
       * The allowed `search_strategy_type` is different for different data types,
       * which is documented in the DataSchemaDetails.DataType. Specifying
       * unsupported `search_strategy_type` for data types will result in
       * INVALID_ARGUMENT error.
       * 
* * * optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1; * * * @return This builder for chaining. */ public Builder clearSearchStrategyType() { bitField0_ = (bitField0_ & ~0x00000001); searchStrategyType_ = 0; onChanged(); return this; } private com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig confidenceScoreIndexConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder> confidenceScoreIndexConfigBuilder_; /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the confidenceScoreIndexConfig field is set. */ public boolean hasConfidenceScoreIndexConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The confidenceScoreIndexConfig. */ public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig getConfidenceScoreIndexConfig() { if (confidenceScoreIndexConfigBuilder_ == null) { return confidenceScoreIndexConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.getDefaultInstance() : confidenceScoreIndexConfig_; } else { return confidenceScoreIndexConfigBuilder_.getMessage(); } } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setConfidenceScoreIndexConfig( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig value) { if (confidenceScoreIndexConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } confidenceScoreIndexConfig_ = value; } else { confidenceScoreIndexConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setConfidenceScoreIndexConfig( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig .Builder builderForValue) { if (confidenceScoreIndexConfigBuilder_ == null) { confidenceScoreIndexConfig_ = builderForValue.build(); } else { confidenceScoreIndexConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeConfidenceScoreIndexConfig( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig value) { if (confidenceScoreIndexConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && confidenceScoreIndexConfig_ != null && confidenceScoreIndexConfig_ != com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.getDefaultInstance()) { getConfidenceScoreIndexConfigBuilder().mergeFrom(value); } else { confidenceScoreIndexConfig_ = value; } } else { confidenceScoreIndexConfigBuilder_.mergeFrom(value); } if (confidenceScoreIndexConfig_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearConfidenceScoreIndexConfig() { bitField0_ = (bitField0_ & ~0x00000002); confidenceScoreIndexConfig_ = null; if (confidenceScoreIndexConfigBuilder_ != null) { confidenceScoreIndexConfigBuilder_.dispose(); confidenceScoreIndexConfigBuilder_ = null; } onChanged(); return this; } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.Builder getConfidenceScoreIndexConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConfidenceScoreIndexConfigFieldBuilder().getBuilder(); } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder getConfidenceScoreIndexConfigOrBuilder() { if (confidenceScoreIndexConfigBuilder_ != null) { return confidenceScoreIndexConfigBuilder_.getMessageOrBuilder(); } else { return confidenceScoreIndexConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.getDefaultInstance() : confidenceScoreIndexConfig_; } } /** * * *
       * Optional. Configs the path to the confidence score, and the threshold.
       * Only if the score is greater than the threshold, current field will be
       * built into the index. Only applies to leaf nodes using EXACT_SEARCH or
       * SMART_SEARCH.
       * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder> getConfidenceScoreIndexConfigFieldBuilder() { if (confidenceScoreIndexConfigBuilder_ == null) { confidenceScoreIndexConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .ConfidenceScoreIndexConfigOrBuilder>( getConfidenceScoreIndexConfig(), getParentForChildren(), isClean()); confidenceScoreIndexConfig_ = null; } return confidenceScoreIndexConfigBuilder_; } @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.visionai.v1.DataSchemaDetails.SearchStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy) private static final com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy(); } public static com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchStrategy 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.visionai.v1.DataSchemaDetails.SearchStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** * * *
   * Type of the annotation.
   * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Type of the annotation.
   * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * Type of the annotation.
   * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return The type. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.DataType getType() { com.google.cloud.visionai.v1.DataSchemaDetails.DataType result = com.google.cloud.visionai.v1.DataSchemaDetails.DataType.forNumber(type_); return result == null ? com.google.cloud.visionai.v1.DataSchemaDetails.DataType.UNRECOGNIZED : result; } public static final int PROTO_ANY_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig protoAnyConfig_; /** * * *
   * Config for protobuf any type.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; * * @return Whether the protoAnyConfig field is set. */ @java.lang.Override public boolean hasProtoAnyConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Config for protobuf any type.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; * * @return The protoAnyConfig. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig getProtoAnyConfig() { return protoAnyConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.getDefaultInstance() : protoAnyConfig_; } /** * * *
   * Config for protobuf any type.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfigOrBuilder getProtoAnyConfigOrBuilder() { return protoAnyConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.getDefaultInstance() : protoAnyConfig_; } public static final int LIST_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig listConfig_; /** * * *
   * Config for List data type.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; * * @return Whether the listConfig field is set. */ @java.lang.Override public boolean hasListConfig() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * Config for List data type.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; * * @return The listConfig. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig getListConfig() { return listConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance() : listConfig_; } /** * * *
   * Config for List data type.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfigOrBuilder getListConfigOrBuilder() { return listConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance() : listConfig_; } public static final int CUSTOMIZED_STRUCT_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customizedStructConfig_; /** * * *
   * Config for CustomizedStruct data type.
   * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * * * @return Whether the customizedStructConfig field is set. */ @java.lang.Override public boolean hasCustomizedStructConfig() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Config for CustomizedStruct data type.
   * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * * * @return The customizedStructConfig. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig getCustomizedStructConfig() { return customizedStructConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.getDefaultInstance() : customizedStructConfig_; } /** * * *
   * Config for CustomizedStruct data type.
   * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfigOrBuilder getCustomizedStructConfigOrBuilder() { return customizedStructConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.getDefaultInstance() : customizedStructConfig_; } public static final int GRANULARITY_FIELD_NUMBER = 5; private int granularity_ = 0; /** * * *
   * The granularity associated with this DataSchema.
   * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * @return Whether the granularity field is set. */ @java.lang.Override public boolean hasGranularity() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * The granularity associated with this DataSchema.
   * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * @return The enum numeric value on the wire for granularity. */ @java.lang.Override public int getGranularityValue() { return granularity_; } /** * * *
   * The granularity associated with this DataSchema.
   * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * @return The granularity. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.Granularity getGranularity() { com.google.cloud.visionai.v1.DataSchemaDetails.Granularity result = com.google.cloud.visionai.v1.DataSchemaDetails.Granularity.forNumber(granularity_); return result == null ? com.google.cloud.visionai.v1.DataSchemaDetails.Granularity.UNRECOGNIZED : result; } public static final int SEARCH_STRATEGY_FIELD_NUMBER = 7; private com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy searchStrategy_; /** * * *
   * The search strategy to be applied on the `key` above.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; * * @return Whether the searchStrategy field is set. */ @java.lang.Override public boolean hasSearchStrategy() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * The search strategy to be applied on the `key` above.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; * * @return The searchStrategy. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy getSearchStrategy() { return searchStrategy_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDefaultInstance() : searchStrategy_; } /** * * *
   * The search strategy to be applied on the `key` above.
   * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategyOrBuilder getSearchStrategyOrBuilder() { return searchStrategy_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDefaultInstance() : searchStrategy_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, granularity_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getProtoAnyConfig()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getSearchStrategy()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getListConfig()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(9, getCustomizedStructConfig()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, granularity_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProtoAnyConfig()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSearchStrategy()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getListConfig()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCustomizedStructConfig()); } 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.visionai.v1.DataSchemaDetails)) { return super.equals(obj); } com.google.cloud.visionai.v1.DataSchemaDetails other = (com.google.cloud.visionai.v1.DataSchemaDetails) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasProtoAnyConfig() != other.hasProtoAnyConfig()) return false; if (hasProtoAnyConfig()) { if (!getProtoAnyConfig().equals(other.getProtoAnyConfig())) return false; } if (hasListConfig() != other.hasListConfig()) return false; if (hasListConfig()) { if (!getListConfig().equals(other.getListConfig())) return false; } if (hasCustomizedStructConfig() != other.hasCustomizedStructConfig()) return false; if (hasCustomizedStructConfig()) { if (!getCustomizedStructConfig().equals(other.getCustomizedStructConfig())) return false; } if (hasGranularity() != other.hasGranularity()) return false; if (hasGranularity()) { if (granularity_ != other.granularity_) return false; } if (hasSearchStrategy() != other.hasSearchStrategy()) return false; if (hasSearchStrategy()) { if (!getSearchStrategy().equals(other.getSearchStrategy())) 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(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasProtoAnyConfig()) { hash = (37 * hash) + PROTO_ANY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getProtoAnyConfig().hashCode(); } if (hasListConfig()) { hash = (37 * hash) + LIST_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getListConfig().hashCode(); } if (hasCustomizedStructConfig()) { hash = (37 * hash) + CUSTOMIZED_STRUCT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCustomizedStructConfig().hashCode(); } if (hasGranularity()) { hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; hash = (53 * hash) + granularity_; } if (hasSearchStrategy()) { hash = (37 * hash) + SEARCH_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + getSearchStrategy().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.visionai.v1.DataSchemaDetails parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails 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.visionai.v1.DataSchemaDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails 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.visionai.v1.DataSchemaDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.visionai.v1.DataSchemaDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.visionai.v1.DataSchemaDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails 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.visionai.v1.DataSchemaDetails parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails 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.visionai.v1.DataSchemaDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.visionai.v1.DataSchemaDetails 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.visionai.v1.DataSchemaDetails 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; } /** * * *
   * Data schema details indicates the data type and the data struct corresponding
   * to the key of user specified annotation.
   * 
* * Protobuf type {@code google.cloud.visionai.v1.DataSchemaDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.visionai.v1.DataSchemaDetails) com.google.cloud.visionai.v1.DataSchemaDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.visionai.v1.DataSchemaDetails.class, com.google.cloud.visionai.v1.DataSchemaDetails.Builder.class); } // Construct using com.google.cloud.visionai.v1.DataSchemaDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProtoAnyConfigFieldBuilder(); getListConfigFieldBuilder(); getCustomizedStructConfigFieldBuilder(); getSearchStrategyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; protoAnyConfig_ = null; if (protoAnyConfigBuilder_ != null) { protoAnyConfigBuilder_.dispose(); protoAnyConfigBuilder_ = null; } listConfig_ = null; if (listConfigBuilder_ != null) { listConfigBuilder_.dispose(); listConfigBuilder_ = null; } customizedStructConfig_ = null; if (customizedStructConfigBuilder_ != null) { customizedStructConfigBuilder_.dispose(); customizedStructConfigBuilder_ = null; } granularity_ = 0; searchStrategy_ = null; if (searchStrategyBuilder_ != null) { searchStrategyBuilder_.dispose(); searchStrategyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.visionai.v1.WarehouseProto .internal_static_google_cloud_visionai_v1_DataSchemaDetails_descriptor; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails getDefaultInstanceForType() { return com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance(); } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails build() { com.google.cloud.visionai.v1.DataSchemaDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails buildPartial() { com.google.cloud.visionai.v1.DataSchemaDetails result = new com.google.cloud.visionai.v1.DataSchemaDetails(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.visionai.v1.DataSchemaDetails result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.protoAnyConfig_ = protoAnyConfigBuilder_ == null ? protoAnyConfig_ : protoAnyConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.listConfig_ = listConfigBuilder_ == null ? listConfig_ : listConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.customizedStructConfig_ = customizedStructConfigBuilder_ == null ? customizedStructConfig_ : customizedStructConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.granularity_ = granularity_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.searchStrategy_ = searchStrategyBuilder_ == null ? searchStrategy_ : searchStrategyBuilder_.build(); to_bitField0_ |= 0x00000020; } 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.visionai.v1.DataSchemaDetails) { return mergeFrom((com.google.cloud.visionai.v1.DataSchemaDetails) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.visionai.v1.DataSchemaDetails other) { if (other == com.google.cloud.visionai.v1.DataSchemaDetails.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasProtoAnyConfig()) { mergeProtoAnyConfig(other.getProtoAnyConfig()); } if (other.hasListConfig()) { mergeListConfig(other.getListConfig()); } if (other.hasCustomizedStructConfig()) { mergeCustomizedStructConfig(other.getCustomizedStructConfig()); } if (other.hasGranularity()) { setGranularity(other.getGranularity()); } if (other.hasSearchStrategy()) { mergeSearchStrategy(other.getSearchStrategy()); } 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 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 40: { granularity_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage(getProtoAnyConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 50 case 58: { input.readMessage(getSearchStrategyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 58 case 66: { input.readMessage(getListConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 66 case 74: { input.readMessage( getCustomizedStructConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 74 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 int type_ = 0; /** * * *
     * Type of the annotation.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Type of the annotation.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * Type of the annotation.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Type of the annotation.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return The type. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.DataType getType() { com.google.cloud.visionai.v1.DataSchemaDetails.DataType result = com.google.cloud.visionai.v1.DataSchemaDetails.DataType.forNumber(type_); return result == null ? com.google.cloud.visionai.v1.DataSchemaDetails.DataType.UNRECOGNIZED : result; } /** * * *
     * Type of the annotation.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.visionai.v1.DataSchemaDetails.DataType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Type of the annotation.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.DataType type = 1; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig protoAnyConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfigOrBuilder> protoAnyConfigBuilder_; /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; * * @return Whether the protoAnyConfig field is set. */ public boolean hasProtoAnyConfig() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; * * @return The protoAnyConfig. */ public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig getProtoAnyConfig() { if (protoAnyConfigBuilder_ == null) { return protoAnyConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.getDefaultInstance() : protoAnyConfig_; } else { return protoAnyConfigBuilder_.getMessage(); } } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ public Builder setProtoAnyConfig( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig value) { if (protoAnyConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } protoAnyConfig_ = value; } else { protoAnyConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ public Builder setProtoAnyConfig( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder builderForValue) { if (protoAnyConfigBuilder_ == null) { protoAnyConfig_ = builderForValue.build(); } else { protoAnyConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ public Builder mergeProtoAnyConfig( com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig value) { if (protoAnyConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && protoAnyConfig_ != null && protoAnyConfig_ != com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig .getDefaultInstance()) { getProtoAnyConfigBuilder().mergeFrom(value); } else { protoAnyConfig_ = value; } } else { protoAnyConfigBuilder_.mergeFrom(value); } if (protoAnyConfig_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ public Builder clearProtoAnyConfig() { bitField0_ = (bitField0_ & ~0x00000002); protoAnyConfig_ = null; if (protoAnyConfigBuilder_ != null) { protoAnyConfigBuilder_.dispose(); protoAnyConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder getProtoAnyConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getProtoAnyConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ public com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfigOrBuilder getProtoAnyConfigOrBuilder() { if (protoAnyConfigBuilder_ != null) { return protoAnyConfigBuilder_.getMessageOrBuilder(); } else { return protoAnyConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.getDefaultInstance() : protoAnyConfig_; } } /** * * *
     * Config for protobuf any type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig proto_any_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfigOrBuilder> getProtoAnyConfigFieldBuilder() { if (protoAnyConfigBuilder_ == null) { protoAnyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.ProtoAnyConfigOrBuilder>( getProtoAnyConfig(), getParentForChildren(), isClean()); protoAnyConfig_ = null; } return protoAnyConfigBuilder_; } private com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig listConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfigOrBuilder> listConfigBuilder_; /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; * * @return Whether the listConfig field is set. */ public boolean hasListConfig() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; * * @return The listConfig. */ public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig getListConfig() { if (listConfigBuilder_ == null) { return listConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance() : listConfig_; } else { return listConfigBuilder_.getMessage(); } } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ public Builder setListConfig(com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig value) { if (listConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } listConfig_ = value; } else { listConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ public Builder setListConfig( com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder builderForValue) { if (listConfigBuilder_ == null) { listConfig_ = builderForValue.build(); } else { listConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ public Builder mergeListConfig( com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig value) { if (listConfigBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && listConfig_ != null && listConfig_ != com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance()) { getListConfigBuilder().mergeFrom(value); } else { listConfig_ = value; } } else { listConfigBuilder_.mergeFrom(value); } if (listConfig_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ public Builder clearListConfig() { bitField0_ = (bitField0_ & ~0x00000004); listConfig_ = null; if (listConfigBuilder_ != null) { listConfigBuilder_.dispose(); listConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder getListConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getListConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ public com.google.cloud.visionai.v1.DataSchemaDetails.ListConfigOrBuilder getListConfigOrBuilder() { if (listConfigBuilder_ != null) { return listConfigBuilder_.getMessageOrBuilder(); } else { return listConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.getDefaultInstance() : listConfig_; } } /** * * *
     * Config for List data type.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.ListConfig list_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfigOrBuilder> getListConfigFieldBuilder() { if (listConfigBuilder_ == null) { listConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.ListConfigOrBuilder>( getListConfig(), getParentForChildren(), isClean()); listConfig_ = null; } return listConfigBuilder_; } private com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customizedStructConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfigOrBuilder> customizedStructConfigBuilder_; /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * * * @return Whether the customizedStructConfig field is set. */ public boolean hasCustomizedStructConfig() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * * * @return The customizedStructConfig. */ public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig getCustomizedStructConfig() { if (customizedStructConfigBuilder_ == null) { return customizedStructConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig .getDefaultInstance() : customizedStructConfig_; } else { return customizedStructConfigBuilder_.getMessage(); } } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ public Builder setCustomizedStructConfig( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig value) { if (customizedStructConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } customizedStructConfig_ = value; } else { customizedStructConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ public Builder setCustomizedStructConfig( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder builderForValue) { if (customizedStructConfigBuilder_ == null) { customizedStructConfig_ = builderForValue.build(); } else { customizedStructConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ public Builder mergeCustomizedStructConfig( com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig value) { if (customizedStructConfigBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && customizedStructConfig_ != null && customizedStructConfig_ != com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig .getDefaultInstance()) { getCustomizedStructConfigBuilder().mergeFrom(value); } else { customizedStructConfig_ = value; } } else { customizedStructConfigBuilder_.mergeFrom(value); } if (customizedStructConfig_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ public Builder clearCustomizedStructConfig() { bitField0_ = (bitField0_ & ~0x00000008); customizedStructConfig_ = null; if (customizedStructConfigBuilder_ != null) { customizedStructConfigBuilder_.dispose(); customizedStructConfigBuilder_ = null; } onChanged(); return this; } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder getCustomizedStructConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCustomizedStructConfigFieldBuilder().getBuilder(); } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ public com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfigOrBuilder getCustomizedStructConfigOrBuilder() { if (customizedStructConfigBuilder_ != null) { return customizedStructConfigBuilder_.getMessageOrBuilder(); } else { return customizedStructConfig_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig .getDefaultInstance() : customizedStructConfig_; } } /** * * *
     * Config for CustomizedStruct data type.
     * 
* * * .google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig customized_struct_config = 9; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfigOrBuilder> getCustomizedStructConfigFieldBuilder() { if (customizedStructConfigBuilder_ == null) { customizedStructConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfig.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.CustomizedStructConfigOrBuilder>( getCustomizedStructConfig(), getParentForChildren(), isClean()); customizedStructConfig_ = null; } return customizedStructConfigBuilder_; } private int granularity_ = 0; /** * * *
     * The granularity associated with this DataSchema.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * * @return Whether the granularity field is set. */ @java.lang.Override public boolean hasGranularity() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The granularity associated with this DataSchema.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * * @return The enum numeric value on the wire for granularity. */ @java.lang.Override public int getGranularityValue() { return granularity_; } /** * * *
     * The granularity associated with this DataSchema.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * * @param value The enum numeric value on the wire for granularity to set. * @return This builder for chaining. */ public Builder setGranularityValue(int value) { granularity_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The granularity associated with this DataSchema.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * * @return The granularity. */ @java.lang.Override public com.google.cloud.visionai.v1.DataSchemaDetails.Granularity getGranularity() { com.google.cloud.visionai.v1.DataSchemaDetails.Granularity result = com.google.cloud.visionai.v1.DataSchemaDetails.Granularity.forNumber(granularity_); return result == null ? com.google.cloud.visionai.v1.DataSchemaDetails.Granularity.UNRECOGNIZED : result; } /** * * *
     * The granularity associated with this DataSchema.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * * @param value The granularity to set. * @return This builder for chaining. */ public Builder setGranularity( com.google.cloud.visionai.v1.DataSchemaDetails.Granularity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; granularity_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The granularity associated with this DataSchema.
     * 
* * optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5; * * * @return This builder for chaining. */ public Builder clearGranularity() { bitField0_ = (bitField0_ & ~0x00000010); granularity_ = 0; onChanged(); return this; } private com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy searchStrategy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategyOrBuilder> searchStrategyBuilder_; /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; * * @return Whether the searchStrategy field is set. */ public boolean hasSearchStrategy() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; * * @return The searchStrategy. */ public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy getSearchStrategy() { if (searchStrategyBuilder_ == null) { return searchStrategy_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDefaultInstance() : searchStrategy_; } else { return searchStrategyBuilder_.getMessage(); } } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ public Builder setSearchStrategy( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy value) { if (searchStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchStrategy_ = value; } else { searchStrategyBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ public Builder setSearchStrategy( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder builderForValue) { if (searchStrategyBuilder_ == null) { searchStrategy_ = builderForValue.build(); } else { searchStrategyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ public Builder mergeSearchStrategy( com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy value) { if (searchStrategyBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && searchStrategy_ != null && searchStrategy_ != com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy .getDefaultInstance()) { getSearchStrategyBuilder().mergeFrom(value); } else { searchStrategy_ = value; } } else { searchStrategyBuilder_.mergeFrom(value); } if (searchStrategy_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ public Builder clearSearchStrategy() { bitField0_ = (bitField0_ & ~0x00000020); searchStrategy_ = null; if (searchStrategyBuilder_ != null) { searchStrategyBuilder_.dispose(); searchStrategyBuilder_ = null; } onChanged(); return this; } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder getSearchStrategyBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSearchStrategyFieldBuilder().getBuilder(); } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategyOrBuilder getSearchStrategyOrBuilder() { if (searchStrategyBuilder_ != null) { return searchStrategyBuilder_.getMessageOrBuilder(); } else { return searchStrategy_ == null ? com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.getDefaultInstance() : searchStrategy_; } } /** * * *
     * The search strategy to be applied on the `key` above.
     * 
* * .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy search_strategy = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategyOrBuilder> getSearchStrategyFieldBuilder() { if (searchStrategyBuilder_ == null) { searchStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder, com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategyOrBuilder>( getSearchStrategy(), getParentForChildren(), isClean()); searchStrategy_ = null; } return searchStrategyBuilder_; } @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.visionai.v1.DataSchemaDetails) } // @@protoc_insertion_point(class_scope:google.cloud.visionai.v1.DataSchemaDetails) private static final com.google.cloud.visionai.v1.DataSchemaDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.visionai.v1.DataSchemaDetails(); } public static com.google.cloud.visionai.v1.DataSchemaDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataSchemaDetails 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.visionai.v1.DataSchemaDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy