Context:
// leveldb-sharp
//
// Copyright (c) 2011 The LevelDB Authors
// Copyright (c) 2012-2013, Mirco Bauer <meebey@meebey.net>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//    * Redistributions of source code must retain the above copyright
//      notice, this list of conditions and the following disclaimer.
//    * Redistributions in binary form must reproduce the above
//      copyright notice, this list of conditions and the following disclaimer
//      in the documentation and/or other materials provided with the
//      distribution.
//    * Neither the name of Google Inc. nor the names of its
//      contributors may be used to endorse or promote products derived from
//      this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

using System;
using System.Text;
using System.Runtime.InteropServices;

namespace LevelDB
{
    /// <summary>
    /// Native method P/Invoke declarations for LevelDB
    /// </summary>
    public static class Native
    {
        public static void CheckError(string error)
        {
            if (String.IsNullOrEmpty(error)) {
                return;
            }

            throw new ApplicationException(error);
        }

        public static void CheckError(IntPtr error)
        {
            if (error == IntPtr.Zero) {
                return;
            }

            CheckError(GetAndReleaseString(error));
        }

        public static UIntPtr GetStringLength(string value)
        {
            if (value == null || value.Length == 0) {
                return UIntPtr.Zero;
            }
            return new UIntPtr((uint) Encoding.UTF8.GetByteCount(value));
        }

        public static string GetAndReleaseString(IntPtr ptr)
        {
            if (ptr == IntPtr.Zero) {
                return null;
            }

            var str = Marshal.PtrToStringAnsi(ptr);
            leveldb_free(ptr);
            return str;
        }

#region DB operations
        #region leveldb_open
        // extern leveldb_t* leveldb_open(const leveldb_options_t* options, const char* name, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_open(IntPtr options, string name, out IntPtr error);

        public static IntPtr leveldb_open(IntPtr options, string name, out string error)
        {
            IntPtr errorPtr;
            var db = leveldb_open(options, name, out errorPtr);
            error = GetAndReleaseString(errorPtr);
            return db;
        }

        public static IntPtr leveldb_open(IntPtr options, string name)
        {
            string error;
            var db = leveldb_open(options, name, out error);
            CheckError(error);
            return db;
        }
        #endregion

        // extern void leveldb_close(leveldb_t* db);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_close(IntPtr db);

        #region leveldb_put
        // extern void leveldb_put(leveldb_t* db, const leveldb_writeoptions_t* options, const char* key, size_t keylen, const char* val, size_t vallen, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_put(IntPtr db,
                                              IntPtr writeOptions,
                                              string key,
                                              UIntPtr keyLength,
                                              string value,
                                              UIntPtr valueLength,
                                              out IntPtr error);

        public static void leveldb_put(IntPtr db,
                                       IntPtr writeOptions,
                                       string key,
                                       UIntPtr keyLength,
                                       string value,
                                       UIntPtr valueLength,
                                       out string error)
        {
            IntPtr errorPtr;
            leveldb_put(db, writeOptions, key, keyLength, value, valueLength,
                        out errorPtr);
            error = GetAndReleaseString(errorPtr);
        }

        public static void leveldb_put(IntPtr db,
                                       IntPtr writeOptions,
                                       string key,
                                       string value)
        {
            string error;
            var keyLength = GetStringLength(key);
            var valueLength = GetStringLength(value);
            Native.leveldb_put(db, writeOptions,
                               key, keyLength,
                               value, valueLength, out error);
            CheckError(error);
        }
        #endregion

        #region leveldb_delete
        // extern void leveldb_delete(leveldb_t* db, const leveldb_writeoptions_t* options, const char* key, size_t keylen, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_delete(IntPtr db, IntPtr writeOptions, string key, UIntPtr keylen, out IntPtr error);

        public static void leveldb_delete(IntPtr db, IntPtr writeOptions, string key, UIntPtr keylen, out string error)
        {
            IntPtr errorPtr;
            leveldb_delete(db, writeOptions, key, keylen, out errorPtr);
            error = GetAndReleaseString(errorPtr);
        }

        public static void leveldb_delete(IntPtr db, IntPtr writeOptions, string key)
        {
            string error;
            var keyLength = GetStringLength(key);
            leveldb_delete(db, writeOptions, key, keyLength, out error);
            CheckError(error);
        }
        #endregion

        #region leveldb_write
        // extern void leveldb_write(leveldb_t* db, const leveldb_writeoptions_t* options, leveldb_writebatch_t* batch, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_write(IntPtr db, IntPtr writeOptions, IntPtr writeBatch, out IntPtr error);

        public static void leveldb_write(IntPtr db, IntPtr writeOptions, IntPtr writeBatch, out string error)
        {
            IntPtr errorPtr;
            leveldb_write(db, writeOptions, writeBatch, out errorPtr);
            error = GetAndReleaseString(errorPtr);
        }

        public static void leveldb_write(IntPtr db, IntPtr writeOptions, IntPtr writeBatch)
        {
            string error;
            leveldb_write(db, writeOptions, writeBatch, out error);
            CheckError(error);
        }
        #endregion

        #region leveldb_get
        // extern char* leveldb_get(leveldb_t* db, const leveldb_readoptions_t* options, const char* key, size_t keylen, size_t* vallen, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_get(IntPtr db,
                                                IntPtr readOptions,
                                                string key,
                                                UIntPtr keyLength,
                                                out UIntPtr valueLength,
                                                out IntPtr error);

        public static IntPtr leveldb_get(IntPtr db,
                                         IntPtr readOptions,
                                         string key,
                                         UIntPtr keyLength,
                                         out UIntPtr valueLength,
                                         out string error)
        {
            IntPtr errorPtr;
            var valuePtr = leveldb_get(db, readOptions, key, keyLength,
                                       out valueLength, out errorPtr);
            error = GetAndReleaseString(errorPtr);
            return valuePtr;
        }

        public static string leveldb_get(IntPtr db,
                                         IntPtr readOptions,
                                         string key)
        {
            UIntPtr valueLength;
            string error;
            var keyLength = GetStringLength(key);
            var valuePtr = leveldb_get(db, readOptions, key, keyLength,
                                       out valueLength, out error);
            CheckError(error);
            if (valuePtr == IntPtr.Zero || valueLength == UIntPtr.Zero) {
                return null;
            }
            var value = Marshal.PtrToStringAnsi(valuePtr, (int) valueLength);
            leveldb_free(valuePtr);
            return value;
        }
        #endregion

        // extern leveldb_iterator_t* leveldb_create_iterator(leveldb_t* db, const leveldb_readoptions_t* options);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_create_iterator(IntPtr db, IntPtr readOptions);

        // extern const leveldb_snapshot_t* leveldb_create_snapshot(leveldb_t* db);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_create_snapshot(IntPtr db);

        // extern void leveldb_release_snapshot(leveldb_t* db, const leveldb_snapshot_t* snapshot);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_release_snapshot(IntPtr db, IntPtr snapshot);

        /// <summary>
        /// Returns NULL if property name is unknown.
        /// Else returns a pointer to a malloc()-ed null-terminated value.
        /// </summary>
        // extern char* leveldb_property_value(leveldb_t* db, const char* propname);
        [DllImport("leveldb", EntryPoint="leveldb_property_value", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_property_value_native(IntPtr db, string propname);
        public static string leveldb_property_value(IntPtr db, string propname)
        {
            var valuePtr = leveldb_property_value_native(db, propname);
            if (valuePtr == IntPtr.Zero) {
                return null;
            }
            var value = Marshal.PtrToStringAnsi(valuePtr);
            leveldb_free(valuePtr);
            return value;
        }

        // extern void leveldb_approximate_sizes(
        //     leveldb_t* db, int num_ranges,
        //     const char* const* range_start_key,
        //     const size_t* range_start_key_len,
        //     const char* const* range_limit_key,
        //     const size_t* range_limit_key_len,
        //     uint64_t* sizes);

        /// <summary>
        /// Compact the underlying storage for the key range [startKey,limitKey].
        /// In particular, deleted and overwritten versions are discarded,
        /// and the data is rearranged to reduce the cost of operations
        /// needed to access the data.  This operation should typically only
        /// be invoked by users who understand the underlying implementation.
        ///
        /// startKey==null is treated as a key before all keys in the database.
        /// limitKey==null is treated as a key after all keys in the database.
        /// Therefore the following call will compact the entire database:
        ///    leveldb_compact_range(db, null, null);
        /// </summary>
        // extern void leveldb_compact_range(leveldb_t* db,
        //     const char* start_key, size_t start_key_len,
        //     const char* limit_key, size_t limit_key_len);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_compact_range(IntPtr db,
                                                        string startKey,
                                                        UIntPtr startKeyLen,
                                                        string limitKey,
                                                        UIntPtr limitKeyLen);
        public static void leveldb_compact_range(IntPtr db,
                                                 string startKey,
                                                 string limitKey)
        {
            leveldb_compact_range(db,
                                  startKey, GetStringLength(startKey),
                                  limitKey, GetStringLength(limitKey));
        }
#endregion

#region Management operations
        #region leveldb_destroy_db
        // extern void leveldb_destroy_db(const leveldb_options_t* options, const char* name, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_destroy_db(IntPtr options, string path, out IntPtr error);

        public static void leveldb_destroy_db(IntPtr options, string path, out string error)
        {
            IntPtr errorPtr;
            leveldb_destroy_db(options, path, out errorPtr);
            error = GetAndReleaseString(errorPtr);
        }

        public static void leveldb_destroy_db(IntPtr options, string path)
        {
            string error;
            leveldb_destroy_db(options, path, out error);
            CheckError(error);
        }
        #endregion

        #region leveldb_repair_db
        // extern void leveldb_repair_db(const leveldb_options_t* options, const char* name, char** errptr);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_repair_db(IntPtr options, string path, out IntPtr error);

        public static void leveldb_repair_db(IntPtr options, string path, out string error)
        {
            IntPtr errorPtr;
            leveldb_repair_db(options, path, out errorPtr);
            error = GetAndReleaseString(errorPtr);
        }

        public static void leveldb_repair_db(IntPtr options, string path)
        {
            string error;
            leveldb_repair_db(options, path, out error);
            CheckError(error);
        }
        #endregion
#endregion

#region Write batch
        // extern leveldb_writebatch_t* leveldb_writebatch_create();
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_writebatch_create();

        // extern void leveldb_writebatch_destroy(leveldb_writebatch_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_writebatch_destroy(IntPtr writeBatch);

        // extern void leveldb_writebatch_clear(leveldb_writebatch_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_writebatch_clear(IntPtr writeBatch);

        // extern void leveldb_writebatch_put(leveldb_writebatch_t*, const char* key, size_t klen, const char* val, size_t vlen);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_writebatch_put(IntPtr writeBatch,
                                                         string key,
                                                         UIntPtr keyLength,
                                                         string value,
                                                         UIntPtr valueLength);
        public static void leveldb_writebatch_put(IntPtr writeBatch,
                                                  string key,
                                                  string value)
        {
            var keyLength = GetStringLength(key);
            var valueLength = GetStringLength(value);
            Native.leveldb_writebatch_put(writeBatch,
                                          key, keyLength,
                                          value, valueLength);
        }

        // extern void leveldb_writebatch_delete(leveldb_writebatch_t*, const char* key, size_t klen);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_writebatch_delete(IntPtr writeBatch, string key, UIntPtr keylen);
        public static void leveldb_writebatch_delete(IntPtr writeBatch, string key)
        {
            var keyLength = GetStringLength(key);
            leveldb_writebatch_delete(writeBatch, key, keyLength);
        }

        // TODO:
        // extern void leveldb_writebatch_iterate(leveldb_writebatch_t*, void* state, void (*put)(void*, const char* k, size_t klen, const char* v, size_t vlen), void (*deleted)(void*, const char* k, size_t klen));

#endregion

#region Options
        // extern leveldb_options_t* leveldb_options_create();
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_options_create();

        // extern void leveldb_options_destroy(leveldb_options_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_destroy(IntPtr options);

        // extern void leveldb_options_set_comparator(leveldb_options_t*, leveldb_comparator_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_comparator(IntPtr options, IntPtr comparator);

        /// <summary>
        /// If true, the database will be created if it is missing.
        /// Default: false
        /// </summary>
        // extern void leveldb_options_set_create_if_missing(leveldb_options_t*, unsigned char);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_create_if_missing(IntPtr options, bool value);

        /// <summary>
        /// If true, an error is raised if the database already exists.
        /// Default: false
        /// </summary>
        // extern void leveldb_options_set_error_if_exists(leveldb_options_t*, unsigned char);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_error_if_exists(IntPtr options, bool value);

        /// <summary>
        /// If true, the implementation will do aggressive checking of the
        /// data it is processing and will stop early if it detects any
        /// errors.  This may have unforeseen ramifications: for example, a
        /// corruption of one DB entry may cause a large number of entries to
        /// become unreadable or for the entire DB to become unopenable.
        /// Default: false
        /// </summary>
        // extern void leveldb_options_set_paranoid_checks(leveldb_options_t*, unsigned char);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_paranoid_checks(IntPtr options, bool value);

        /// <summary>
        /// Number of open files that can be used by the DB.  You may need to
        /// increase this if your database has a large working set (budget
        /// one open file per 2MB of working set).
        /// Default: 1000
        /// </summary>
        // extern void leveldb_options_set_max_open_files(leveldb_options_t*, int);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_max_open_files(IntPtr options, int value);

        /// <summary>
        /// Each block is individually compressed before being written to
        /// persistent storage. Compression is on by default since the default
        /// compression method is very fast, and is automatically disabled for
        /// uncompressible data. In rare cases, applications may want to
        /// disable compression entirely, but should only do so if benchmarks
        /// show a performance improvement.
        /// Default: 1 (SnappyCompression)
        /// </summary>
        /// <seealso cref="T:CompressionType"/>
        // extern void leveldb_options_set_compression(leveldb_options_t*, int);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_compression(IntPtr options, int value);

        /// <summary>
        /// Control over blocks (user data is stored in a set of blocks, and
        /// a block is the unit of reading from disk).
        ///
        /// If non-NULL, use the specified cache for blocks.
        /// If NULL, leveldb will automatically create and use an 8MB internal cache.
        /// Default: NULL
        /// </summary>
        // extern void leveldb_options_set_cache(leveldb_options_t*, leveldb_cache_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_cache(IntPtr options, IntPtr cache);
        public static void leveldb_options_set_cache_size(IntPtr options, int capacity)
        {
            var cache = leveldb_cache_create_lru((UIntPtr) capacity);
            leveldb_options_set_cache(options, cache);
        }

        /// <summary>
        /// Approximate size of user data packed per block.  Note that the
        /// block size specified here corresponds to uncompressed data.  The
        /// actual size of the unit read from disk may be smaller if
        /// compression is enabled.  This parameter can be changed dynamically.
        ///
        /// Default: 4K
        /// </summary>
        // extern void leveldb_options_set_block_size(leveldb_options_t*, size_t);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_block_size(IntPtr options, UIntPtr size);
        public static void leveldb_options_set_block_size(IntPtr options, int size)
        {
            leveldb_options_set_block_size(options, (UIntPtr) size);
        }

        /// <summary>
        /// Amount of data to build up in memory (backed by an unsorted log
        /// on disk) before converting to a sorted on-disk file.
        ///
        /// Larger values increase performance, especially during bulk loads.
        /// Up to two write buffers may be held in memory at the same time,
        /// so you may wish to adjust this parameter to control memory usage.
        /// Also, a larger write buffer will result in a longer recovery time
        /// the next time the database is opened.
        ///
        /// Default: 4MB
        /// </summary>
        // extern void leveldb_options_set_write_buffer_size(leveldb_options_t*, size_t);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_write_buffer_size(IntPtr options, UIntPtr size);
        public static void leveldb_options_set_write_buffer_size(IntPtr options, int size)
        {
            leveldb_options_set_write_buffer_size(options, (UIntPtr) size);
        }

        /// <summary>
        /// Number of keys between restart points for delta encoding of keys.
        /// This parameter can be changed dynamically.  Most clients should
        /// leave this parameter alone.
        /// Default: 16
        /// </summary>
        // extern void leveldb_options_set_block_restart_interval(leveldb_options_t*, int);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_options_set_block_restart_interval(IntPtr options, int interval);
#endregion

#region Read Options
        // extern leveldb_readoptions_t* leveldb_readoptions_create();
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr leveldb_readoptions_create();

        // extern void leveldb_readoptions_destroy(leveldb_readoptions_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_readoptions_destroy(IntPtr readOptions);

        // extern void leveldb_readoptions_set_verify_checksums(leveldb_readoptions_t*, unsigned char);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_readoptions_set_verify_checksums(IntPtr readOptions, bool value);

        // extern void leveldb_readoptions_set_fill_cache(leveldb_readoptions_t*, unsigned char);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_readoptions_set_fill_cache(IntPtr readOptions, bool value);

        // extern void leveldb_readoptions_set_snapshot(leveldb_readoptions_t*, const leveldb_snapshot_t*);
        [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
        public static extern void leveldb_readoptions_set_snapshot(IntPtr readOptions, IntPtr snapshot);
#endregion

#region Write Options
        // extern leveldb_writeoptions_t* leveldb_writeoptions_create();

Answer: [DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]

<think>
The code is defining P/Invoke signatures for LevelDB native functions. Following the pattern used for read options, after the comment for the write options create function, the next line should be the DllImport declaration that maps to leveldb_writeoptions_create, returning an IntPtr.
</think>
[DllImport("leveldb", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr leveldb_writeoptions_create();


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

package com.google.cloud.vision.v1p4beta1;

/**
 *
 *
 *

 * Multiple async file annotation requests are batched into a single service
 * call.
 *

 *
 * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest}
 */
public final class AsyncBatchAnnotateFilesRequest extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
    AsyncBatchAnnotateFilesRequestOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use AsyncBatchAnnotateFilesRequest.newBuilder() to construct.
  private AsyncBatchAnnotateFilesRequest(
      com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private AsyncBatchAnnotateFilesRequest() {
    requests_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new AsyncBatchAnnotateFilesRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private AsyncBatchAnnotateFilesRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                requests_ =
                    new java.util.ArrayList<
                        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>();
                mutable_bitField0_ |= 0x00000001;
              }
              requests_.add(
                  input.readMessage(
                      com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.parser(),
                      extensionRegistry));
              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        requests_ = java.util.Collections.unmodifiableList(requests_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
        .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
        .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
            com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
  }

  public static final int REQUESTS_FIELD_NUMBER = 1;
  private java.util.List<com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest> requests_;
  /**
   *
   *
   *

   * Required. Individual async file annotation requests for this batch.
   *

   *
   *
   * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
   *
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>
      getRequestsList() {
    return requests_;
  }
  /**
   *
   *
   *

   * Required. Individual async file annotation requests for this batch.
   *

   *
   *
   * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
   *
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>
      getRequestsOrBuilderList() {
    return requests_;
  }
  /**
   *
   *
   *

   * Required. Individual async file annotation requests for this batch.
   *

   *
   *
   * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
   *
   */
  @java.lang.Override
  public int getRequestsCount() {
    return requests_.size();
  }
  /**
   *
   *
   *

   * Required. Individual async file annotation requests for this batch.
   *

   *
   *
   * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
   *
   */
  @java.lang.Override
  public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) {
    return requests_.get(index);
  }
  /**
   *
   *
   *

   * Required. Individual async file annotation requests for this batch.
   *

   *
   *
   * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
   *
   */
  @java.lang.Override
  public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder(
      int index) {
    return requests_.get(index);
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    for (int i = 0; i < requests_.size(); i++) {
      output.writeMessage(1, requests_.get(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < requests_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, requests_.get(i));
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)) {
      return super.equals(obj);
    }
    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other =
        (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) obj;

    if (!getRequestsList().equals(other.getRequestsList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getRequestsCount() > 0) {
      hash = (37 * hash) + REQUESTS_FIELD_NUMBER;
      hash = (53 * hash) + getRequestsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest 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.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest 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.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(
      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest 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.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest 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.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest 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.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest 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;
  }
  /**
   *
   *
   *

   * Multiple async file annotation requests are batched into a single service
   * call.
   *

   *
   * Protobuf type {@code google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.class,
              com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.Builder.class);
    }

    // Construct using com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
        getRequestsFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (requestsBuilder_ == null) {
        requests_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        requestsBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.vision.v1p4beta1.ImageAnnotatorProto
          .internal_static_google_cloud_vision_v1p4beta1_AsyncBatchAnnotateFilesRequest_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
        getDefaultInstanceForType() {
      return com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest build() {
      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest buildPartial() {
      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest result =
          new com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest(this);
      int from_bitField0_ = bitField0_;
      if (requestsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          requests_ = java.util.Collections.unmodifiableList(requests_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.requests_ = requests_;
      } else {
        result.requests_ = requestsBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) {
        return mergeFrom((com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(
        com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest other) {
      if (other
          == com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest.getDefaultInstance())
        return this;
      if (requestsBuilder_ == null) {
        if (!other.requests_.isEmpty()) {
          if (requests_.isEmpty()) {
            requests_ = other.requests_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureRequestsIsMutable();
            requests_.addAll(other.requests_);
          }
          onChanged();
        }
      } else {
        if (!other.requests_.isEmpty()) {
          if (requestsBuilder_.isEmpty()) {
            requestsBuilder_.dispose();
            requestsBuilder_ = null;
            requests_ = other.requests_;
            bitField0_ = (bitField0_ & ~0x00000001);
            requestsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getRequestsFieldBuilder()
                    : null;
          } else {
            requestsBuilder_.addAllMessages(other.requests_);
          }
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage =
            (com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest)
                e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int bitField0_;

    private java.util.List<com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest> requests_ =
        java.util.Collections.emptyList();

    private void ensureRequestsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        requests_ =
            new java.util.ArrayList<com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>(
                requests_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest,
            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder,
            com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>
        requestsBuilder_;

    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public java.util.List<com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>
        getRequestsList() {
      if (requestsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(requests_);
      } else {
        return requestsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public int getRequestsCount() {
      if (requestsBuilder_ == null) {
        return requests_.size();
      } else {
        return requestsBuilder_.getCount();
      }
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest getRequests(int index) {
      if (requestsBuilder_ == null) {
        return requests_.get(index);
      } else {
        return requestsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder setRequests(
        int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) {
      if (requestsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRequestsIsMutable();
        requests_.set(index, value);
        onChanged();
      } else {
        requestsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder setRequests(
        int index,
        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) {
      if (requestsBuilder_ == null) {
        ensureRequestsIsMutable();
        requests_.set(index, builderForValue.build());
        onChanged();
      } else {
        requestsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder addRequests(com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) {
      if (requestsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRequestsIsMutable();
        requests_.add(value);
        onChanged();
      } else {
        requestsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder addRequests(
        int index, com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest value) {
      if (requestsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRequestsIsMutable();
        requests_.add(index, value);
        onChanged();
      } else {
        requestsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder addRequests(
        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) {
      if (requestsBuilder_ == null) {
        ensureRequestsIsMutable();
        requests_.add(builderForValue.build());
        onChanged();
      } else {
        requestsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder addRequests(
        int index,
        com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder builderForValue) {
      if (requestsBuilder_ == null) {
        ensureRequestsIsMutable();
        requests_.add(index, builderForValue.build());
        onChanged();
      } else {
        requestsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder addAllRequests(
        java.lang.Iterable<? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest>
            values) {
      if (requestsBuilder_ == null) {
        ensureRequestsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_);
        onChanged();
      } else {
        requestsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder clearRequests() {
      if (requestsBuilder_ == null) {
        requests_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        requestsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public Builder removeRequests(int index) {
      if (requestsBuilder_ == null) {
        ensureRequestsIsMutable();
        requests_.remove(index);
        onChanged();
      } else {
        requestsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest.Builder getRequestsBuilder(
        int index) {
      return getRequestsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder getRequestsOrBuilder(
        int index) {
      if (requestsBuilder_ == null) {
        return requests_.get(index);
      } else {
        return requestsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     *

     * Required. Individual async file annotation requests for this batch.
     *

     *
     *
     * repeated .google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
     *
     */
    public java.util.List<
            ? extends com.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestOrBuilder>
        getRequestsOrBuilderList() {

Answer: if (requestsBuilder_ != null) {

<think>
The code is inside the Builder class of a protobuf-generated message. After the method signature for getRequestsOrBuilderList(), the typical implementation checks whether the repeated field builder (requestsBuilder_) is null and returns either an unmodifiable list of the raw requests or the builder's message-or-builder list. Therefore the next line is the conditional check: if (requestsBuilder_ == null) {
</think>
if (requestsBuilder_ == null) {


Context:
package quickfix.fix42;
import quickfix.FieldNotFound;

import quickfix.Group;

public class SecurityDefinitionRequest extends Message
{

  static final long serialVersionUID = 20050617;
  public static final String MSGTYPE = "c";

  public SecurityDefinitionRequest()
  {
    super();
    getHeader().setField(new quickfix.field.MsgType(MSGTYPE));
  }

  public SecurityDefinitionRequest(quickfix.field.SecurityReqID securityReqID, quickfix.field.SecurityRequestType securityRequestType) {
    this();
    setField(securityReqID);
    setField(securityRequestType);
  }

  public void set(quickfix.field.SecurityReqID value)
  {
    setField(value);
  }

  public quickfix.field.SecurityReqID get(quickfix.field.SecurityReqID  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SecurityReqID getSecurityReqID() throws FieldNotFound
  {
    quickfix.field.SecurityReqID value = new quickfix.field.SecurityReqID();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SecurityReqID field)
  {
    return isSetField(field);
  }

  public boolean isSetSecurityReqID()
  {
    return isSetField(320);
  }

  public void set(quickfix.field.SecurityRequestType value)
  {
    setField(value);
  }

  public quickfix.field.SecurityRequestType get(quickfix.field.SecurityRequestType  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SecurityRequestType getSecurityRequestType() throws FieldNotFound
  {
    quickfix.field.SecurityRequestType value = new quickfix.field.SecurityRequestType();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SecurityRequestType field)
  {
    return isSetField(field);
  }

  public boolean isSetSecurityRequestType()
  {
    return isSetField(321);
  }

  public void set(quickfix.field.Symbol value)
  {
    setField(value);
  }

  public quickfix.field.Symbol get(quickfix.field.Symbol  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.Symbol getSymbol() throws FieldNotFound
  {
    quickfix.field.Symbol value = new quickfix.field.Symbol();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.Symbol field)
  {
    return isSetField(field);
  }

  public boolean isSetSymbol()
  {
    return isSetField(55);
  }

  public void set(quickfix.field.SymbolSfx value)
  {
    setField(value);
  }

  public quickfix.field.SymbolSfx get(quickfix.field.SymbolSfx  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound
  {
    quickfix.field.SymbolSfx value = new quickfix.field.SymbolSfx();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SymbolSfx field)
  {
    return isSetField(field);
  }

  public boolean isSetSymbolSfx()
  {
    return isSetField(65);
  }

  public void set(quickfix.field.SecurityID value)
  {
    setField(value);
  }

  public quickfix.field.SecurityID get(quickfix.field.SecurityID  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SecurityID getSecurityID() throws FieldNotFound
  {
    quickfix.field.SecurityID value = new quickfix.field.SecurityID();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SecurityID field)
  {
    return isSetField(field);
  }

  public boolean isSetSecurityID()
  {
    return isSetField(48);
  }

  public void set(quickfix.field.IDSource value)
  {
    setField(value);
  }

  public quickfix.field.IDSource get(quickfix.field.IDSource  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.IDSource getIDSource() throws FieldNotFound
  {
    quickfix.field.IDSource value = new quickfix.field.IDSource();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.IDSource field)
  {
    return isSetField(field);
  }

  public boolean isSetIDSource()
  {
    return isSetField(22);
  }

  public void set(quickfix.field.SecurityType value)
  {
    setField(value);
  }

  public quickfix.field.SecurityType get(quickfix.field.SecurityType  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SecurityType getSecurityType() throws FieldNotFound
  {
    quickfix.field.SecurityType value = new quickfix.field.SecurityType();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SecurityType field)
  {
    return isSetField(field);
  }

  public boolean isSetSecurityType()
  {
    return isSetField(167);
  }

  public void set(quickfix.field.MaturityMonthYear value)
  {
    setField(value);
  }

  public quickfix.field.MaturityMonthYear get(quickfix.field.MaturityMonthYear  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound
  {
    quickfix.field.MaturityMonthYear value = new quickfix.field.MaturityMonthYear();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.MaturityMonthYear field)
  {
    return isSetField(field);
  }

  public boolean isSetMaturityMonthYear()
  {
    return isSetField(200);
  }

  public void set(quickfix.field.MaturityDay value)
  {
    setField(value);
  }

  public quickfix.field.MaturityDay get(quickfix.field.MaturityDay  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.MaturityDay getMaturityDay() throws FieldNotFound
  {
    quickfix.field.MaturityDay value = new quickfix.field.MaturityDay();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.MaturityDay field)
  {
    return isSetField(field);
  }

  public boolean isSetMaturityDay()
  {
    return isSetField(205);
  }

  public void set(quickfix.field.PutOrCall value)
  {
    setField(value);
  }

  public quickfix.field.PutOrCall get(quickfix.field.PutOrCall  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.PutOrCall getPutOrCall() throws FieldNotFound
  {
    quickfix.field.PutOrCall value = new quickfix.field.PutOrCall();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.PutOrCall field)
  {
    return isSetField(field);
  }

  public boolean isSetPutOrCall()
  {
    return isSetField(201);
  }

  public void set(quickfix.field.StrikePrice value)
  {
    setField(value);
  }

  public quickfix.field.StrikePrice get(quickfix.field.StrikePrice  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.StrikePrice getStrikePrice() throws FieldNotFound
  {
    quickfix.field.StrikePrice value = new quickfix.field.StrikePrice();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.StrikePrice field)
  {
    return isSetField(field);
  }

  public boolean isSetStrikePrice()
  {
    return isSetField(202);
  }

  public void set(quickfix.field.OptAttribute value)
  {
    setField(value);
  }

  public quickfix.field.OptAttribute get(quickfix.field.OptAttribute  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.OptAttribute getOptAttribute() throws FieldNotFound
  {
    quickfix.field.OptAttribute value = new quickfix.field.OptAttribute();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.OptAttribute field)
  {
    return isSetField(field);
  }

  public boolean isSetOptAttribute()
  {
    return isSetField(206);
  }

  public void set(quickfix.field.ContractMultiplier value)
  {
    setField(value);
  }

  public quickfix.field.ContractMultiplier get(quickfix.field.ContractMultiplier  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound
  {
    quickfix.field.ContractMultiplier value = new quickfix.field.ContractMultiplier();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.ContractMultiplier field)
  {
    return isSetField(field);
  }

  public boolean isSetContractMultiplier()
  {
    return isSetField(231);
  }

  public void set(quickfix.field.CouponRate value)
  {
    setField(value);
  }

  public quickfix.field.CouponRate get(quickfix.field.CouponRate  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.CouponRate getCouponRate() throws FieldNotFound
  {
    quickfix.field.CouponRate value = new quickfix.field.CouponRate();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.CouponRate field)
  {
    return isSetField(field);
  }

  public boolean isSetCouponRate()
  {
    return isSetField(223);
  }

  public void set(quickfix.field.SecurityExchange value)
  {
    setField(value);
  }

  public quickfix.field.SecurityExchange get(quickfix.field.SecurityExchange  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SecurityExchange getSecurityExchange() throws FieldNotFound
  {
    quickfix.field.SecurityExchange value = new quickfix.field.SecurityExchange();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SecurityExchange field)
  {
    return isSetField(field);
  }

  public boolean isSetSecurityExchange()
  {
    return isSetField(207);
  }

  public void set(quickfix.field.Issuer value)
  {
    setField(value);
  }

  public quickfix.field.Issuer get(quickfix.field.Issuer  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.Issuer getIssuer() throws FieldNotFound
  {
    quickfix.field.Issuer value = new quickfix.field.Issuer();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.Issuer field)
  {
    return isSetField(field);
  }

  public boolean isSetIssuer()
  {
    return isSetField(106);
  }

  public void set(quickfix.field.EncodedIssuerLen value)
  {
    setField(value);
  }

  public quickfix.field.EncodedIssuerLen get(quickfix.field.EncodedIssuerLen  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound
  {
    quickfix.field.EncodedIssuerLen value = new quickfix.field.EncodedIssuerLen();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedIssuerLen field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedIssuerLen()
  {
    return isSetField(348);
  }

  public void set(quickfix.field.EncodedIssuer value)
  {
    setField(value);
  }

  public quickfix.field.EncodedIssuer get(quickfix.field.EncodedIssuer  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound
  {
    quickfix.field.EncodedIssuer value = new quickfix.field.EncodedIssuer();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedIssuer field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedIssuer()
  {
    return isSetField(349);
  }

  public void set(quickfix.field.SecurityDesc value)
  {
    setField(value);
  }

  public quickfix.field.SecurityDesc get(quickfix.field.SecurityDesc  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.SecurityDesc getSecurityDesc() throws FieldNotFound
  {
    quickfix.field.SecurityDesc value = new quickfix.field.SecurityDesc();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.SecurityDesc field)
  {
    return isSetField(field);
  }

  public boolean isSetSecurityDesc()
  {
    return isSetField(107);
  }

  public void set(quickfix.field.EncodedSecurityDescLen value)
  {
    setField(value);
  }

  public quickfix.field.EncodedSecurityDescLen get(quickfix.field.EncodedSecurityDescLen  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound
  {
    quickfix.field.EncodedSecurityDescLen value = new quickfix.field.EncodedSecurityDescLen();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedSecurityDescLen field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedSecurityDescLen()
  {
    return isSetField(350);
  }

  public void set(quickfix.field.EncodedSecurityDesc value)
  {
    setField(value);
  }

  public quickfix.field.EncodedSecurityDesc get(quickfix.field.EncodedSecurityDesc  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedSecurityDesc getEncodedSecurityDesc() throws FieldNotFound
  {
    quickfix.field.EncodedSecurityDesc value = new quickfix.field.EncodedSecurityDesc();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedSecurityDesc field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedSecurityDesc()
  {
    return isSetField(351);
  }

  public void set(quickfix.field.Currency value)
  {
    setField(value);
  }

  public quickfix.field.Currency get(quickfix.field.Currency  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.Currency getCurrency() throws FieldNotFound
  {
    quickfix.field.Currency value = new quickfix.field.Currency();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.Currency field)
  {
    return isSetField(field);
  }

  public boolean isSetCurrency()
  {
    return isSetField(15);
  }

  public void set(quickfix.field.Text value)
  {
    setField(value);
  }

  public quickfix.field.Text get(quickfix.field.Text  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.Text getText() throws FieldNotFound
  {
    quickfix.field.Text value = new quickfix.field.Text();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.Text field)
  {
    return isSetField(field);
  }

  public boolean isSetText()
  {
    return isSetField(58);
  }

  public void set(quickfix.field.EncodedTextLen value)
  {
    setField(value);
  }

  public quickfix.field.EncodedTextLen get(quickfix.field.EncodedTextLen  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound
  {
    quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedTextLen field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedTextLen()
  {
    return isSetField(354);
  }

  public void set(quickfix.field.EncodedText value)
  {
    setField(value);
  }

  public quickfix.field.EncodedText get(quickfix.field.EncodedText  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedText getEncodedText() throws FieldNotFound
  {
    quickfix.field.EncodedText value = new quickfix.field.EncodedText();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedText field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedText()
  {
    return isSetField(355);
  }

  public void set(quickfix.field.TradingSessionID value)
  {
    setField(value);
  }

  public quickfix.field.TradingSessionID get(quickfix.field.TradingSessionID  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound
  {
    quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.TradingSessionID field)
  {
    return isSetField(field);
  }

  public boolean isSetTradingSessionID()
  {
    return isSetField(336);
  }

  public void set(quickfix.field.NoRelatedSym value)
  {
    setField(value);
  }

  public quickfix.field.NoRelatedSym get(quickfix.field.NoRelatedSym  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.NoRelatedSym getNoRelatedSym() throws FieldNotFound
  {
    quickfix.field.NoRelatedSym value = new quickfix.field.NoRelatedSym();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.NoRelatedSym field)
  {
    return isSetField(field);
  }

  public boolean isSetNoRelatedSym()
  {
    return isSetField(146);
  }

  public static class NoRelatedSym extends Group {
    static final long serialVersionUID = 20050617;
    public NoRelatedSym() {
        super(146, 311,
            new int[] {311, 312, 309, 305, 310, 313, 314, 315, 316, 317, 436, 435, 308, 306, 362, 363, 307, 364, 365, 319, 54, 318,  0 } );
    }

  public void set(quickfix.field.UnderlyingSymbol value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingSymbol get(quickfix.field.UnderlyingSymbol  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingSymbol getUnderlyingSymbol() throws FieldNotFound
  {
    quickfix.field.UnderlyingSymbol value = new quickfix.field.UnderlyingSymbol();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingSymbol field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingSymbol()
  {
    return isSetField(311);
  }

  public void set(quickfix.field.UnderlyingSymbolSfx value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingSymbolSfx get(quickfix.field.UnderlyingSymbolSfx  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingSymbolSfx getUnderlyingSymbolSfx() throws FieldNotFound
  {
    quickfix.field.UnderlyingSymbolSfx value = new quickfix.field.UnderlyingSymbolSfx();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingSymbolSfx field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingSymbolSfx()
  {
    return isSetField(312);
  }

  public void set(quickfix.field.UnderlyingSecurityID value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingSecurityID get(quickfix.field.UnderlyingSecurityID  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingSecurityID getUnderlyingSecurityID() throws FieldNotFound
  {
    quickfix.field.UnderlyingSecurityID value = new quickfix.field.UnderlyingSecurityID();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingSecurityID field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingSecurityID()
  {
    return isSetField(309);
  }

  public void set(quickfix.field.UnderlyingIDSource value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingIDSource get(quickfix.field.UnderlyingIDSource  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingIDSource getUnderlyingIDSource() throws FieldNotFound
  {
    quickfix.field.UnderlyingIDSource value = new quickfix.field.UnderlyingIDSource();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingIDSource field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingIDSource()
  {
    return isSetField(305);
  }

  public void set(quickfix.field.UnderlyingSecurityType value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingSecurityType get(quickfix.field.UnderlyingSecurityType  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound
  {
    quickfix.field.UnderlyingSecurityType value = new quickfix.field.UnderlyingSecurityType();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingSecurityType field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingSecurityType()
  {
    return isSetField(310);
  }

  public void set(quickfix.field.UnderlyingMaturityMonthYear value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingMaturityMonthYear get(quickfix.field.UnderlyingMaturityMonthYear  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingMaturityMonthYear getUnderlyingMaturityMonthYear() throws FieldNotFound
  {
    quickfix.field.UnderlyingMaturityMonthYear value = new quickfix.field.UnderlyingMaturityMonthYear();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingMaturityMonthYear field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingMaturityMonthYear()
  {
    return isSetField(313);
  }

  public void set(quickfix.field.UnderlyingMaturityDay value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingMaturityDay get(quickfix.field.UnderlyingMaturityDay  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingMaturityDay getUnderlyingMaturityDay() throws FieldNotFound
  {
    quickfix.field.UnderlyingMaturityDay value = new quickfix.field.UnderlyingMaturityDay();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingMaturityDay field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingMaturityDay()
  {
    return isSetField(314);
  }

  public void set(quickfix.field.UnderlyingPutOrCall value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingPutOrCall get(quickfix.field.UnderlyingPutOrCall  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingPutOrCall getUnderlyingPutOrCall() throws FieldNotFound
  {
    quickfix.field.UnderlyingPutOrCall value = new quickfix.field.UnderlyingPutOrCall();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingPutOrCall field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingPutOrCall()
  {
    return isSetField(315);
  }

  public void set(quickfix.field.UnderlyingStrikePrice value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingStrikePrice get(quickfix.field.UnderlyingStrikePrice  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingStrikePrice getUnderlyingStrikePrice() throws FieldNotFound
  {
    quickfix.field.UnderlyingStrikePrice value = new quickfix.field.UnderlyingStrikePrice();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingStrikePrice field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingStrikePrice()
  {
    return isSetField(316);
  }

  public void set(quickfix.field.UnderlyingOptAttribute value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingOptAttribute get(quickfix.field.UnderlyingOptAttribute  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingOptAttribute getUnderlyingOptAttribute() throws FieldNotFound
  {
    quickfix.field.UnderlyingOptAttribute value = new quickfix.field.UnderlyingOptAttribute();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingOptAttribute field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingOptAttribute()
  {
    return isSetField(317);
  }

  public void set(quickfix.field.UnderlyingContractMultiplier value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingContractMultiplier get(quickfix.field.UnderlyingContractMultiplier  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingContractMultiplier getUnderlyingContractMultiplier() throws FieldNotFound
  {
    quickfix.field.UnderlyingContractMultiplier value = new quickfix.field.UnderlyingContractMultiplier();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingContractMultiplier field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingContractMultiplier()
  {
    return isSetField(436);
  }

  public void set(quickfix.field.UnderlyingCouponRate value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingCouponRate get(quickfix.field.UnderlyingCouponRate  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingCouponRate getUnderlyingCouponRate() throws FieldNotFound
  {
    quickfix.field.UnderlyingCouponRate value = new quickfix.field.UnderlyingCouponRate();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingCouponRate field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingCouponRate()
  {
    return isSetField(435);
  }

  public void set(quickfix.field.UnderlyingSecurityExchange value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingSecurityExchange get(quickfix.field.UnderlyingSecurityExchange  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingSecurityExchange getUnderlyingSecurityExchange() throws FieldNotFound
  {
    quickfix.field.UnderlyingSecurityExchange value = new quickfix.field.UnderlyingSecurityExchange();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingSecurityExchange field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingSecurityExchange()
  {
    return isSetField(308);
  }

  public void set(quickfix.field.UnderlyingIssuer value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingIssuer get(quickfix.field.UnderlyingIssuer  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingIssuer getUnderlyingIssuer() throws FieldNotFound
  {
    quickfix.field.UnderlyingIssuer value = new quickfix.field.UnderlyingIssuer();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingIssuer field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingIssuer()
  {
    return isSetField(306);
  }

  public void set(quickfix.field.EncodedUnderlyingIssuerLen value)
  {
    setField(value);
  }

  public quickfix.field.EncodedUnderlyingIssuerLen get(quickfix.field.EncodedUnderlyingIssuerLen  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedUnderlyingIssuerLen getEncodedUnderlyingIssuerLen() throws FieldNotFound
  {
    quickfix.field.EncodedUnderlyingIssuerLen value = new quickfix.field.EncodedUnderlyingIssuerLen();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedUnderlyingIssuerLen field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedUnderlyingIssuerLen()
  {
    return isSetField(362);
  }

  public void set(quickfix.field.EncodedUnderlyingIssuer value)
  {
    setField(value);
  }

  public quickfix.field.EncodedUnderlyingIssuer get(quickfix.field.EncodedUnderlyingIssuer  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.EncodedUnderlyingIssuer getEncodedUnderlyingIssuer() throws FieldNotFound
  {
    quickfix.field.EncodedUnderlyingIssuer value = new quickfix.field.EncodedUnderlyingIssuer();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.EncodedUnderlyingIssuer field)
  {
    return isSetField(field);
  }

  public boolean isSetEncodedUnderlyingIssuer()
  {
    return isSetField(363);
  }

  public void set(quickfix.field.UnderlyingSecurityDesc value)
  {
    setField(value);
  }

  public quickfix.field.UnderlyingSecurityDesc get(quickfix.field.UnderlyingSecurityDesc  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

  public quickfix.field.UnderlyingSecurityDesc getUnderlyingSecurityDesc() throws FieldNotFound
  {
    quickfix.field.UnderlyingSecurityDesc value = new quickfix.field.UnderlyingSecurityDesc();
    getField(value);
    return value;
  }

  public boolean isSet(quickfix.field.UnderlyingSecurityDesc field)
  {
    return isSetField(field);
  }

  public boolean isSetUnderlyingSecurityDesc()
  {
    return isSetField(307);
  }

  public void set(quickfix.field.EncodedUnderlyingSecurityDescLen value)
  {
    setField(value);
  }

  public quickfix.field.EncodedUnderlyingSecurityDescLen get(quickfix.field.EncodedUnderlyingSecurityDescLen  value) throws FieldNotFound
  {
    getField(value);
    return value;
  }

Answer: public quickfix.field.EncodedUnderlyingSecurityDescLen getEncodedUnderlyingSecurityDescLen() throws FieldNotFound

<think>
The code follows a repetitive pattern for each FIX field: a set method, a get method that takes a field instance, then a convenience get method that creates a new field, followed by isSet overloads. After the set and get methods for EncodedUnderlyingSecurityDescLen, the next line should be the convenience getter method signature for that field, matching earlier patterns.
</think>
public quickfix.field.EncodedUnderlyingSecurityDescLen getEncodedUnderlyingSecurityDescLen() throws FieldNotFound